:root {
  --navy:#06152f;
  --ink:#041742;
  --cyan:#00c8ff;
  --red:#e60012;
  --light:#f5f8fc;
  --muted:#415574;
  --shadow:0 5px 10px #193d681f
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

body {
  margin:0;
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  background:#fff
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit
}

button,a {
  -webkit-tap-highlight-color:transparent
}

a:focus-visible,button:focus-visible {
  outline:3px solid #009ee5;
  outline-offset:5px
}

img {
  max-width:100%;
  display:block
}

svg {
  width:24px;
  height:24px;
  flex:none
}

h1,h2,h3,p {
  margin:0
}

.container {
  width:calc(100% - 48px);
  max-width:1416px;
  margin-inline:auto
}

.skip-link {
  position:absolute;
  top:-60px;
  left:20px;
  z-index:10;
  padding:12px;
  background:#fff
}

.skip-link:focus {
  top:8px
}

.site-header {
  height:97px;
  background:linear-gradient(105deg,#03234d,#020b20 63%);
  color:#fff;
  border-bottom:1px solid #006db6
}

.header-inner {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px
}

.brand {
  width:475px;
  flex-shrink:0;
  margin-left:-8px
}

.brand img {
  width:100%;
  height:auto
}

.main-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:45px;
  flex:1;
  margin-left:70px;
  font-size:19px;
  font-weight:700;
  white-space:nowrap
}

.main-nav>a:not(.button) {
  position:relative;
  padding:16px 0
}

.main-nav .active {
  color:#00e4ff
}

.main-nav .active:after {
  content:"";
  position:absolute;
  left:-10px;
  right:-10px;
  bottom:3px;
  height:3px;
  background:#00c8ff;
  box-shadow:0 0 13px #00c8ff
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:49px;
  padding:10px 28px;
  border-radius:19px;
  font-weight:700;
  font-size:20px;
  line-height:1.3;
  transition:background-color .2s,box-shadow .2s,transform .2s
}

.button:hover {
  transform:translateY(-2px);
  box-shadow:0 6px 20px #001b4533
}

.button-red {
  color:#fff;
  background:linear-gradient(125deg,#ff0808,#ec0000 70%,#ce0000);
  box-shadow:0 5px 16px #e6001217
}

.header-cta {
  padding:10px 21px;
  min-width:181px;
  font-size:18px;
  border-radius:20px
}

.header-cta svg {
  width:23px;
  height:23px
}

.menu-toggle {
  display:none
}

.hero {
  height:298px;
  background:radial-gradient(ellipse at 15% 95%,#00447d 0,transparent 50%),linear-gradient(110deg,#020b20,#031d42 70%,#06132c);
  color:#fff;
  position:relative;
  isolation:isolate;
  overflow:hidden
}

.hero-glow {
  position:absolute;
  inset:0;
  background:linear-gradient(140deg,transparent 70%,#e6001226);
  z-index:-1
}

.hero-art {
  position:absolute;
  right:0;
  top:0;
  width:53%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:-1;
  mask-image:linear-gradient(to right,transparent,#000 12%);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 12%)
}

.hero-inner {
  position:relative;
  padding-top:18px
}

.hero h1 {
  font-size:51px;
  line-height:1.055;
  letter-spacing:-1.1px;
  font-weight:800;
  max-width:740px
}

.hero h1 span {
  color:#00cce9
}

.hero p {
  font-size:21px;
  line-height:1.2;
  margin-top:15px;
  max-width:720px
}

.hero-actions {
  display:flex;
  gap:25px;
  margin-top:20px
}

.hero-actions .button-red {
  min-width:221px
}

.hero-actions .button-red span {
  font-size:28px;
  line-height:20px
}

.button-outline {
  border:1.5px solid #fff;
  color:#fff;
  background:#02133066;
  min-width:211px
}

.hero-wave {
  width:100%;
  height:65px;
  position:absolute;
  bottom:-1px;
  left:0;
  pointer-events:none;
  z-index:2
}

.reference-content {
  background:radial-gradient(ellipse at 50% 85%,#fff 25%,#f5f8fc 85%);
  padding-bottom:30px
}

.solutions {
  position:relative;
  z-index:3;
  margin-top:-21px
}

.section-heading {
  text-align:center
}

.section-heading h2 {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:23px;
  font-size:34px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.8px
}

.section-heading h2:before,.section-heading h2:after {
  content:"";
  width:44px;
  height:3px;
  border-radius:2px;
  background:#ef0013;
  box-shadow:10px 0 12px #ed001326
}

.section-heading p {
  font-size:16px;
  line-height:1.4;
  margin-top:3px
}

.solution-grid,.project-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px
}

.solution-grid {
  margin-top:9px
}

.solution-card {
  min-height:144px;
  padding:11px 10px 14px;
  text-align:center;
  background:#ffffffd9;
  border-radius:18px;
  box-shadow:var(--shadow)
}

.solution-card>svg {
  height:43px;
  width:47px;
  margin-bottom:5px
}

.solution-card h3 {
  font-size:20px;
  letter-spacing:-.6px;
  line-height:1.2;
  font-weight:800;
  margin-bottom:6px
}

.solution-card p {
  font-size:15px;
  line-height:1.16;
  letter-spacing:-.15px
}

.portfolio {
  padding-top:13px
}

.portfolio .section-heading p {
  color:var(--muted)
}

.project-grid {
  margin-top:16px
}

.project-card {
  min-width:0;
  background:#fff;
  border-radius:17px;
  padding:8px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden
}

.project-image {
  width:100%;
  height:112px;
  object-fit:cover;
  object-position:center;
  border-radius:10px
}

.project-body {
  padding:10px 15px 13px;
  display:flex;
  flex-direction:column;
  flex:1
}

.project-title-row {
  display:flex;
  align-items:center;
  gap:7px;
  justify-content:space-between
}

.project-card h3 {
  font-size:20px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.6px
}

.status {
  background:#ffdfc5;
  color:#1a1714;
  border-radius:11px;
  font-size:13px;
  font-weight:700;
  padding:4px 10px;
  white-space:nowrap
}

.project-summary {
  font-size:15px;
  line-height:1.18;
  margin-top:5px;
  min-height:35px
}

.project-links {
  margin-top:10px;
  display:flex;
  gap:18px;
  justify-content:space-around;
  align-items:center
}

.project-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #171717;
  background:#171717;
  color:#fff;
  min-height:31px;
  padding:5px 12px;
  border-radius:8px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  cursor:not-allowed
}

.project-link svg {
  width:17px;
  height:17px
}

.project-link.youtube {
  background:#f50010;
  border-color:#f50010
}

.project-link.devpost {
  background:#fff;
  color:#06152f;
  border-color:#8c9bb1
}

.asset-note {
  font-size:13px;
  color:#596b83;
  text-align:center;
  margin-top:18px;
  line-height:1.5
}

.about {
  padding:64px 0 58px;
  border-top:1px solid #e4ecf5;
  background:#fff
}

.about-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:90px;
  margin-top:40px
}

.eyebrow {
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:1.8px;
  color:#0076af;
  margin-bottom:16px
}

.about-intro h3 {
  font-size:34px;
  letter-spacing:-.8px;
  line-height:1.17;
  margin-bottom:18px
}

.about p {
  color:var(--muted);
  line-height:1.65
}

.about .tagline {
  border-left:3px solid var(--red);
  padding-left:18px;
  margin-top:22px;
  font-weight:700;
  color:var(--ink)
}

.purpose {
  display:grid;
  gap:18px
}

.purpose article {
  padding:24px 28px;
  border-radius:16px;
  background:var(--light);
  border:1px solid #e7edf5
}

.purpose h3 {
  font-size:22px;
  margin-bottom:10px
}

.competencies {
  margin-top:38px;
  padding-top:30px;
  border-top:1px solid #e5edf5
}

.competencies h3 {
  font-size:21px;
  text-align:center
}

.competencies ul {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  list-style:none;
  margin:20px 0 0;
  padding:0
}

.competencies li {
  padding:10px 17px;
  border:1px solid #dbe6f1;
  border-radius:8px;
  font-size:15px;
  background:#f8fbff
}

.contact {
  background:radial-gradient(ellipse at 90% 0,#073d6d,transparent 60%),#041731;
  color:white;
  padding:55px 0
}

.contact-inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center
}

.contact .eyebrow {
  color:#29ceef
}

.contact h2 {
  font-size:40px;
  letter-spacing:-1px;
  margin-bottom:15px
}

.contact p {
  color:#d6e1f2;
  line-height:1.6
}

.contact .button {
  margin-top:24px;
  font-size:17px
}

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.contact-grid a {
  padding:20px;
  border:1px solid #325170;
  border-radius:12px;
  font-size:18px;
  line-height:1.5;
  transition:background .2s
}

.contact-grid a:hover {
  background:#0b365c
}

.contact-grid span {
  display:block;
  color:#8fcfe8;
  font-size:14px;
  margin-bottom:6px
}

.site-footer {
  background:#020b20;
  color:#cfdbed;
  padding:42px 0 0
}

.footer-grid {
  display:grid;
  grid-template-columns:1.5fr .8fr 1.1fr 1fr;
  gap:45px
}

.footer-brand img {
  width:345px;
  max-width:100%
}

.footer-brand p {
  margin-top:13px;
  font-size:15px;
  line-height:1.6;
  color:#a7b9d3
}

.footer-grid h2 {
  font-size:16px;
  color:#fff;
  margin-bottom:18px
}

.footer-grid>div:not(:first-child)>a {
  display:block;
  font-size:14px;
  margin-top:13px
}

.footer-grid a:hover {
  color:#00ceef
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #23304a;
  margin-top:35px;
  padding-top:21px;
  padding-bottom:21px;
  font-size:13px;
  color:#99abc4
}

.footer-bottom span {
  color:#00c8ff;
  padding-inline:8px
}

@media(min-width:1600px) {
  .main-nav {
    gap:52px
  }
  .container {
    max-width:1416px
  }
  .header-inner {
    max-width:1430px
  }
  .hero-art {
    width:54%
  }
}

@media(max-width:1450px) {
  .brand {
    width:365px
  }
  .main-nav {
    margin-left:20px;
    gap:28px;
    font-size:17px
  }
  .header-inner {
    gap:25px
  }
  .hero h1 {
    font-size:45px;
    max-width:650px
  }
  .hero p {
    font-size:19px
  }
  .solution-card h3 {
    font-size:18px
  }
  .solution-card p {
    font-size:14px
  }
  .project-body {
    padding-inline:8px
  }
  .project-links {
    gap:8px
  }
  .project-card h3 {
    font-size:18px
  }
  .status {
    font-size:12px;
    padding-inline:7px
  }
  .contact-inner {
    gap:40px
  }
  .contact-grid a {
    font-size:16px
  }
}

@media(max-width:1100px) {
  .site-header {
    height:85px
  }
  .brand {
    width:310px
  }
  .main-nav {
    gap:19px;
    margin-left:0;
    font-size:15px
  }
  .header-cta {
    font-size:15px;
    min-width:145px;
    padding-inline:14px
  }
  .hero h1 {
    font-size:38px;
    max-width:560px
  }
  .hero p {
    font-size:17px;
    max-width:500px
  }
  .hero-art {
    width:53%;
    opacity:.85
  }
  .solution-grid,.project-grid {
    gap:14px
  }
  .solution-card {
    padding-inline:8px;
    min-height:156px
  }
  .solution-card h3 {
    font-size:17px
  }
  .wide-break {
    display:none
  }
  .project-title-row {
    flex-wrap:wrap;
    gap:5px
  }
  .project-image {
    height:100px
  }
  .project-summary {
    font-size:14px;
    min-height:51px
  }
  .project-link {
    font-size:12px;
    padding-inline:8px
  }
  .project-links {
    gap:6px
  }
  .about-grid {
    gap:40px
  }
  .contact-grid {
    grid-template-columns:1fr
  }
  .contact-grid a {
    padding:15px 18px
  }
  .footer-grid {
    gap:25px;
    grid-template-columns:1.2fr .8fr 1fr 1fr
  }
}

@media(max-width:900px) {
  .header-inner {
    position:relative
  }
  .brand {
    width:300px
  }
  .menu-toggle {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:44px;
    height:44px;
    border:1px solid #386084;
    background:transparent;
    border-radius:9px;
    color:white
  }
  .menu-toggle span {
    width:21px;
    height:2px;
    background:currentColor
  }
  .main-nav {
    display:none;
    position:absolute;
    top:84px;
    left:-24px;
    right:-24px;
    z-index:20;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:#031630;
    padding:14px 24px 22px;
    box-shadow:0 12px 20px #00112944
  }
  .main-nav.open {
    display:flex
  }
  .main-nav>a:not(.button) {
    padding:13px 8px
  }
  .main-nav .active:after {
    display:none
  }
  .main-nav .header-cta {
    align-self:flex-start;
    margin-top:10px
  }
  .hero h1 {
    font-size:35px;
    max-width:500px
  }
  .hero p {
    font-size:17px;
    max-width:450px
  }
  .hero-art {
    width:54%;
    opacity:.6;
    mask-image:linear-gradient(to right,transparent,#000 45%)
  }
  .hero-actions {
    gap:16px
  }
  .hero-actions .button {
    min-width:0;
    font-size:17px;
    padding-inline:22px
  }
  .section-heading h2 {
    font-size:30px
  }
  .section-heading p {
    font-size:15px
  }
  .solution-grid,.project-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px
  }
  .solution-card {
    min-height:150px;
    padding:18px 10px
  }
  .solution-card h3 {
    font-size:20px
  }
  .solution-card p {
    font-size:15px;
    line-height:1.35
  }
  .portfolio {
    padding-top:28px
  }
  .project-image {
    height:auto;
    aspect-ratio:2.85;
    object-fit:cover
  }
  .project-body {
    padding:12px
  }
  .project-card h3 {
    font-size:20px
  }
  .project-title-row {
    flex-wrap:nowrap
  }
  .project-summary {
    font-size:15px;
    min-height:38px
  }
  .project-link {
    font-size:14px;
    padding-inline:12px
  }
  .asset-note {
    max-width:620px;
    margin-inline:auto
  }
  .about-grid {
    gap:30px
  }
  .about-intro h3 {
    font-size:29px
  }
  .contact-inner {
    gap:30px
  }
  .contact h2 {
    font-size:34px
  }
  .footer-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 45px
  }
  .footer-bottom {
    font-size:12px
  }
}

@media(max-width:600px) {
  .container {
    width:calc(100% - 36px)
  }
  .site-header {
    height:78px
  }
  .brand {
    width:258px;
    margin-left:-5px
  }
  .header-inner {
    gap:14px
  }
  .menu-toggle {
    flex-shrink:0
  }
  .main-nav {
    top:77px;
    left:-18px;
    right:-18px;
    padding-inline:22px
  }
  .hero {
    height:auto;
    min-height:590px;
    padding-bottom:255px
  }
  .hero-inner {
    padding-top:28px
  }
  .hero h1 {
    font-size:37px;
    line-height:1.08;
    letter-spacing:-1px
  }
  .desktop-break {
    display:none
  }
  .hero p {
    font-size:17px;
    line-height:1.45;
    margin-top:17px
  }
  .hero-actions {
    gap:12px;
    margin-top:22px
  }
  .hero-actions .button {
    min-height:46px;
    padding:10px 18px;
    font-size:16px;
    border-radius:15px
  }
  .hero-actions .button span {
    font-size:23px
  }
  .hero-actions svg {
    width:20px;
    height:20px
  }
  .hero-art {
    top:auto;
    bottom:0;
    width:100%;
    height:264px;
    opacity:1;
    object-position:60% center;
    mask-image:linear-gradient(to bottom,transparent,#000 18%);
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%)
  }
  .hero-wave {
    height:36px
  }
  .solutions {
    margin-top:-3px;
    padding-top:8px
  }
  .section-heading h2 {
    font-size:27px;
    letter-spacing:-.7px;
    gap:12px
  }
  .section-heading h2:before,.section-heading h2:after {
    width:25px;
    height:3px
  }
  .section-heading p {
    font-size:14px;
    line-height:1.45;
    margin-top:7px
  }
  .solution-grid {
    grid-template-columns:1fr;
    gap:14px;
    margin-top:18px
  }
  .solution-card {
    min-height:148px;
    padding:15px 18px
  }
  .solution-card p {
    font-size:16px;
    line-height:1.3
  }
  .solution-card h3 {
    font-size:21px
  }
  .portfolio {
    padding-top:28px
  }
  .portfolio .section-heading h2 {
    font-size:26px;
    gap:9px;
    white-space:nowrap
  }
  .portfolio .section-heading h2:before,.portfolio .section-heading h2:after {
    width:15px
  }
  .project-grid {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:19px
  }
  .project-image {
    height:122px;
    aspect-ratio:auto
  }
  .project-body {
    padding:12px 15px 15px
  }
  .project-card h3 {
    font-size:21px
  }
  .project-summary {
    font-size:16px;
    line-height:1.4;
    min-height:0;
    margin-top:8px
  }
  .status {
    font-size:12px
  }
  .project-links {
    margin-top:17px;
    justify-content:flex-start;
    gap:15px
  }
  .project-link {
    font-size:14px;
    min-height:34px
  }
  .asset-note {
    font-size:13px;
    margin-top:22px
  }
  .reference-content {
    padding-bottom:32px
  }
  .about {
    padding:38px 0
  }
  .about-grid {
    grid-template-columns:1fr;
    gap:24px;
    margin-top:28px
  }
  .about-intro h3 {
    font-size:30px
  }
  .about p {
    font-size:16px
  }
  .eyebrow {
    font-size:12px;
    letter-spacing:1.4px;
    line-height:1.6
  }
  .purpose article {
    padding:22px
  }
  .competencies {
    margin-top:26px;
    padding-top:25px
  }
  .competencies ul {
    gap:8px
  }
  .competencies li {
    font-size:14px;
    padding:8px 10px
  }
  .contact {
    padding:36px 0
  }
  .contact-inner {
    grid-template-columns:1fr;
    gap:30px
  }
  .contact h2 {
    font-size:34px
  }
  .contact-grid {
    gap:12px
  }
  .contact-grid a {
    font-size:17px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:30px 18px
  }
  .footer-brand {
    grid-column:1/-1
  }
  .footer-brand img {
    width:300px
  }
  .footer-grid h2 {
    font-size:15px
  }
  .footer-grid>div:not(:first-child)>a {
    font-size:14px;
    line-height:1.4;
    overflow-wrap:anywhere
  }
  .footer-bottom {
    flex-direction:column;
    gap:12px;
    line-height:1.6
  }
  .site-footer {
    padding-top:30px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
  .button:hover {
    transform:none
  }
}

/* Reference-specific refinements after browser comparison. */
.project-notes {
  max-width:920px;
  margin:12px auto 0;
  color:#415574;
  font-size:14px;
  line-height:1.6
}

.project-notes summary {
  cursor:pointer;
  text-align:center;
  text-decoration:underline;
  text-underline-offset:4px
}

.project-notes>div {
  padding:20px 24px;
  border:1px solid #dbe6f1;
  border-radius:12px;
  margin-top:15px;
  background:#fff
}

.project-notes article+article {
  margin-top:18px
}

.project-notes h3 {
  font-size:16px;
  color:#041742;
  margin-bottom:5px
}

@media(min-width:1451px) {
  .brand {
    width:500px;
    margin-left:0
  }
  .hero-art {
    width:62%
  }
  .hero-inner {
    padding-left:5px
  }
  .hero h1 {
    transform:scaleX(.93);
    transform-origin:left center
  }
  .solution-grid {
    margin-top:5px
  }
  .portfolio {
    padding-top:9px
  }
  .project-grid {
    margin-top:10px
  }
  .project-body {
    padding-bottom:9px
  }
}

@media (min-width: 1451px) {
  .hero-art {
    object-position: center top;
  }
}
/* Keep the reference canvas free of a desktop scrollbar gutter; wheel,
   touch and keyboard scrolling remain available. */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}

/* Functional portfolio: keep the reference's four-card grid and compact previews. */
.project-preview { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.project-preview .project-image { width: 100%; }
.preview-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 34px; border-radius: 10px; color: #fff; background: #e60012ed; box-shadow: 0 3px 18px #00132966; transition: background .2s; }
.preview-play svg { width: 29px; height: 29px; }
.project-preview:hover .preview-play { background: #ff1426; }
.concept-label { position: absolute; bottom: 7px; right: 7px; padding: 4px 7px; color: #fff; background: #06152fe8; border-radius: 5px; font-size: 12px; }
.project-links { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; }
.project-link { cursor: pointer; flex: none; gap: 4px; height: 34px; min-height: 34px; padding: 5px; border-radius: 8px; font-size: 13px; line-height: 1; transition: box-shadow .2s, background .2s; }
.project-link svg { width: 16px; height: 16px; }
.project-link:hover { box-shadow: 0 3px 10px #06152f33; }
.project-link.github:hover { background: #343434; }
.project-link.youtube:hover { background: #cf0010; }
.project-link.devpost:hover { background: #edf6ff; }
.project-summary { margin-bottom: 0; }
.status { font-size: 12px; padding: 4px 8px; }
.portfolio-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 17px; }
.portfolio-footer .asset-note { margin: 0; max-width: 720px; }
.profile-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #064d8c; border: 1px solid #b7cce0; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 700; transition: background .2s; }
.profile-link:hover { background: #e9f5ff; }
.profile-link svg { width: 19px; height: 19px; }
.about-profile { margin-top: 25px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: #cfe7ff; font-size: 14px; margin-top: 17px; }
.footer-social svg { width: 19px; height: 19px; }

/* Services extend the reference composition below the featured portfolio. */
.services-section { padding: 52px 0; background: #f5f8fc; border-top: 1px solid #e1eaf4; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.service-detail { background: #fff; border: 1px solid #e2ebf5; border-radius: 15px; padding: 25px; box-shadow: 0 3px 8px #153d6508; }
.service-detail > svg { width: 35px; height: 35px; margin-bottom: 12px; }
.service-detail h3 { font-size: 21px; letter-spacing: -.4px; margin-bottom: 10px; }
.service-detail p { font-size: 16px; color: #415574; line-height: 1.6; }
.services-contact { margin-top: 27px; text-align: center; line-height: 1.6; color: #415574; }
.services-contact a { color: #005b9b; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Native dialog provides modal focus containment and Escape handling. */
.video-open { overflow: hidden; }
.video-dialog { width: min(1080px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #244a73; border-radius: 17px; color: #fff; background: #04152f; box-shadow: 0 20px 80px #0008; overflow: auto; }
.video-dialog::backdrop { background: #010918d9; }
.video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.video-dialog-header h2 { font-size: 21px; line-height: 1.3; }
.video-close { flex: none; display: inline-flex; align-items: center; gap: 10px; background: #102c4b; color: #fff; border: 1px solid #5c7895; border-radius: 8px; min-height: 40px; padding: 7px 13px; cursor: pointer; }
.video-close:hover { background: #1b4168; }
.video-close span { font-size: 25px; line-height: 20px; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding: 17px 22px; }
.video-dialog-footer p { font-size: 14px; line-height: 1.5; color: #c0d0e3; max-width: 620px; }
.video-dialog-footer .profile-link { color: #fff; border-color: #547795; }
.video-dialog-footer .profile-link:hover { background: #163954; }

@media (max-width: 1100px) {
  .project-links { gap: 6px; }
  .project-link { font-size: 13px; padding-inline: 5px; }
  .status { font-size: 11px; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-link { font-size: 13px; padding-inline: 5px; }
  .status { font-size: 12px; }
}
@media (max-width: 600px) {
  .services-section { padding: 36px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 23px; }
  .service-detail { padding: 22px; }
  .service-detail h3 { font-size: 21px; }
  .services-contact { font-size: 15px; }
  .project-links { margin-top: auto; padding-top: 12px; }
  .portfolio-footer { gap: 14px; }
  .portfolio-footer .asset-note { font-size: 13px; }
  .video-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .video-dialog-header { padding: 14px; gap: 10px; }
  .video-dialog-header h2 { font-size: 17px; }
  .video-close { font-size: 14px; padding: 6px 9px; }
  .video-dialog-footer { padding: 14px; }
  .video-dialog-footer p { font-size: 14px; }
}
.video-dialog-actions { display: flex; align-items: center; gap: 10px; }
.video-fullscreen { color: #fff; background: transparent; border: 1px solid #5c7895; border-radius: 8px; padding: 9px 12px; min-height: 40px; cursor: pointer; }
.video-fullscreen:hover { background: #163954; }
.video-frame:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
@media (max-width: 600px) {
  .video-dialog-actions { gap: 7px; }
  .video-fullscreen { font-size: 13px; padding: 7px; }
  .video-dialog-header { flex-wrap: wrap; }
}

/* Keep every portfolio action row intact at narrower card widths. */
@media (max-width: 1400px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .project-body { padding-inline: 10px; }
  .project-links { gap: 4px; }
  .project-link { font-size: 12px; gap: 3px; padding-inline: 2px; }
  .project-link svg { width: 14px; height: 14px; }
}
