:root {
  --navy: #071a47;
  --navy-2: #10275b;
  --blue: #1672f9;
  --blue-2: #3b8cff;
  --sky: #dcecff;
  --ice: #f4f9ff;
  --white: #ffffff;
  --text: #0b1b3f;
  --muted: #6b7892;
  --line: #dce7f5;
  --soft-line: rgba(22, 114, 249, .12);
  --shadow: 0 22px 70px rgba(35, 75, 139, .12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--ice);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--ice);
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  right: 12px;
  padding: 10px 15px;
  color: white;
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }
.scroll-progress {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  direction: ltr;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 14px;
  right: 24px;
  left: 24px;
  height: var(--header-h);
  transition: box-shadow .3s ease, background .3s ease, transform .3s ease;
}
.header-inner {
  height: 100%;
  width: min(1500px, 100%);
  margin-inline: auto;
  padding: 0 27px;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 24px;
  box-shadow: 0 12px 42px rgba(36, 83, 146, .08);
  backdrop-filter: blur(18px);
}
.site-header.scrolled .header-inner { box-shadow: 0 13px 48px rgba(36, 83, 146, .15); }
.brand {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-text {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-text b { color: var(--blue); }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: white;
  background: var(--blue);
  border-radius: 11px;
  font: 800 12px/1 ui-monospace, monospace;
  box-shadow: 0 9px 22px rgba(22, 114, 249, .22);
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  margin-inline: auto;
}
.main-nav a {
  position: relative;
  padding: 31px 0 27px;
  color: #45516c;
  font-size: 14px;
  font-weight: 700;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 17px;
  width: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 5px;
  transform: translateX(50%);
  transition: width .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { width: 26px; }
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 11px 28px rgba(22, 114, 249, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(22, 114, 249, .28); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.screen-nav {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 31px;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}
.screen-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #8491a8;
  font: 700 9px/1 Arial, sans-serif;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.screen-nav a::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #b7c9df;
  border-radius: 50%;
  transition: transform .25s ease, background .25s ease;
}
.screen-nav a span { opacity: 0; transition: opacity .25s ease; }
.screen-nav a.active {
  color: var(--blue);
  border-color: rgba(22, 114, 249, .22);
  background: rgba(255, 255, 255, .76);
  transform: scale(1.08);
}
.screen-nav a.active::before { transform: scale(0); }
.screen-nav a.active span { opacity: 1; }

.screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}
.screen-inner {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 118px));
  height: 100%;
  min-height: 100svh;
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 38px;
}
.hero-screen { background: #f5f9ff; }
.services-screen { background: #ffffff; }
.portfolio-screen { background: #f2f7ff; }
.process-screen { background: #ffffff; }
.contact-screen { background: #edf5ff; }
.ambient {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.ambient-a { width: 420px; height: 420px; top: 80px; right: -210px; background: #deecff; opacity: .75; }
.ambient-b { width: 280px; height: 280px; bottom: -130px; left: -90px; background: #cfe5ff; opacity: .8; }
.ambient-c { width: 390px; height: 390px; top: 18%; left: -210px; background: #e4f0ff; }
.ambient-d { width: 350px; height: 350px; bottom: -190px; right: 4%; background: #dcecff; }
.ambient-e { width: 300px; height: 300px; top: -150px; left: 10%; background: #e2efff; }
.ambient-f { width: 430px; height: 430px; top: 12%; right: -260px; background: #d5e9ff; }

.hero-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(16px, 2vh, 26px);
}
.hero-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  min-height: 0;
}
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(22, 114, 249, .09);
  animation: pulse 2.4s ease infinite;
}
.hero-copy h1, .section-copy h2, .process-heading h2, .contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(43px, 4.4vw, 75px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.045em;
}
.hero-copy h1 em, .section-copy h2 em, .process-heading h2 em, .contact-copy h2 em {
  color: var(--blue);
  font-style: normal;
}
.hero-lead {
  max-width: 590px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.95;
}
.hero-actions { display: flex; gap: 13px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 53px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 13px 32px rgba(22, 114, 249, .22);
}
.button-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 114, 249, .3); }
.button-ghost { color: var(--navy); background: rgba(255,255,255,.8); border-color: #cfdcf0; }
.button-ghost:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.hero-points {
  display: flex;
  gap: 20px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  color: #67748e;
  font-size: 11px;
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--blue);
  background: #e1eeff;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  perspective: 1200px;
}
.hero-art > img {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  filter: drop-shadow(0 26px 28px rgba(47, 90, 152, .14));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
  animation: heroFloat 6s ease-in-out infinite;
}
.art-orbit, .visual-ring {
  position: absolute;
  border: 1px solid rgba(22, 114, 249, .18);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.art-orbit::after, .visual-ring::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 12%;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border: 5px solid #eaf3ff;
  border-radius: 50%;
  box-sizing: content-box;
}
.orbit-one { width: 70%; aspect-ratio: 1; }
.orbit-two { width: 48%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 18s; }
.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--navy);
  background: rgba(255,255,255,.91);
  border: 1px solid white;
  border-radius: 13px;
  box-shadow: 0 15px 35px rgba(41, 80, 139, .14);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  animation: noteFloat 4s ease-in-out infinite;
}
.floating-note b {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  color: white;
  background: var(--blue);
  border-radius: 7px;
  font: 700 10px/1 Arial, sans-serif;
}
.note-code { top: 23%; right: 1%; }
.note-ready { bottom: 16%; left: 2%; animation-delay: -2s; }

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gateway-card {
  position: relative;
  min-height: clamp(132px, 17vh, 170px);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(174, 199, 231, .5);
  border-radius: 21px;
  box-shadow: 0 15px 45px rgba(41, 80, 139, .08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gateway-card:hover {
  transform: translateY(-7px);
  border-color: rgba(22, 114, 249, .35);
  box-shadow: 0 22px 54px rgba(41, 80, 139, .15);
}
.gateway-number {
  position: absolute;
  top: 13px;
  left: 15px;
  color: #adc0db;
  font: 700 9px/1 Arial, sans-serif;
}
.gateway-icon { grid-column: 2; grid-row: 1; display: grid; place-items: center; height: 100px; }
.gateway-icon img { max-height: 116px; width: auto; transition: transform .4s ease; }
.gateway-card:nth-child(3) .gateway-icon img { width: 126px; max-width: none; }
.gateway-card:hover .gateway-icon img { transform: translateY(-6px) rotate(-2deg) scale(1.05); }
.gateway-content { grid-column: 1; grid-row: 1; align-self: center; }
.gateway-content strong { display: block; color: var(--navy); font-size: 18px; font-weight: 900; }
.gateway-content small { display: block; max-width: 180px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.gateway-arrow {
  position: absolute;
  right: 19px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--blue);
  border: 1px solid #cddcf0;
  border-radius: 50%;
  font-size: 13px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.gateway-card:hover .gateway-arrow { color: white; background: var(--blue); transform: translateX(-4px); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 13px;
  right: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8390a8;
  font-size: 9px;
  transform: translateX(50%);
}
.scroll-cue span {
  width: 6px;
  height: 11px;
  border: 1px solid #91a1bb;
  border-radius: 6px;
}

.section-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
}
.section-copy { position: relative; z-index: 2; }
.section-kicker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  background: #e4f0ff;
  border-radius: 50%;
  font: 800 9px/1 Arial, sans-serif;
}
.section-copy h2, .process-heading h2, .contact-copy h2 { font-size: clamp(38px, 3.8vw, 64px); }
.section-copy > p:not(.section-kicker), .process-heading > p, .contact-copy > p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.section-visual {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
}
.section-visual > img {
  position: relative;
  z-index: 2;
  width: min(92%, 690px);
  filter: drop-shadow(0 28px 32px rgba(43, 88, 149, .11));
  animation: heroFloat 6.5s ease-in-out infinite;
}
.visual-ring { z-index: 0; width: 63%; aspect-ratio: 1; }
.ring-b { width: 43%; animation-direction: reverse; animation-duration: 17s; }
.detail-card {
  position: absolute;
  z-index: 4;
  left: 2%;
  bottom: 12%;
  width: min(280px, 46%);
  padding: 19px;
  background: rgba(255,255,255,.9);
  border: 1px solid white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}
.detail-card span { color: var(--blue); font: 800 8px/1.4 ui-monospace, monospace; letter-spacing: .08em; }
.detail-card strong { display: block; margin-top: 7px; color: var(--navy); font-size: 17px; }
.detail-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.service-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.service-tab {
  position: relative;
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: 31px 1fr 20px;
  gap: 9px;
  align-items: center;
  text-align: right;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.service-tab:hover, .service-tab.active {
  transform: translateY(-3px);
  background: white;
  border-color: rgba(22,114,249,.34);
  box-shadow: 0 13px 30px rgba(39, 80, 138, .09);
}
.tab-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  background: #e6f1ff;
  border-radius: 9px;
  font: 800 9px/1 Arial, sans-serif;
}
.service-tab strong { display: block; color: var(--navy); font-size: 13px; }
.service-tab small { display: block; margin-top: 4px; color: #7c889f; font-size: 9px; line-height: 1.45; }
.service-tab i { color: #a8b8cc; font-style: normal; transition: transform .25s ease, color .25s ease; }
.service-tab.active i { color: var(--blue); transform: translateX(-4px); }

.portfolio-layout { grid-template-columns: 1.18fr .82fr; }
.portfolio-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 34px;
  box-shadow: 0 25px 75px rgba(41,80,139,.08);
}
.portfolio-stage::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(22,114,249,.13);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}
.portfolio-stage img {
  position: relative;
  z-index: 2;
  width: min(93%, 720px);
  filter: drop-shadow(0 28px 30px rgba(43,88,149,.12));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.portfolio-stage.changing img { transform: translateY(-8px) scale(.98); }
.stage-label {
  position: absolute;
  z-index: 3;
  top: 25px;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.stage-label span { color: var(--muted); }
.stage-label b { color: var(--blue); }
.stage-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  background: rgba(255,255,255,.9);
  border: 1px solid white;
  border-radius: 12px;
  box-shadow: 0 13px 32px rgba(41,80,139,.11);
  font-size: 10px;
  font-weight: 700;
}
.stage-chip b { color: var(--blue); }
.chip-performance { right: 5%; bottom: 13%; }
.chip-responsive { left: 5%; top: 20%; }
.work-list { display: grid; gap: 8px; margin-top: 29px; }
.work-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 16px;
  text-align: right;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(199,216,239,.75);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work-item:hover, .work-item.active {
  transform: translateX(-5px);
  background: white;
  border-color: rgba(22,114,249,.35);
  box-shadow: 0 12px 30px rgba(40,80,140,.08);
}
.work-item span { color: #99a9bf; font: 800 10px/1 Arial, sans-serif; }
.work-item strong { font-size: 13px; }
.work-item i {
  padding: 5px 8px;
  color: #76849d;
  background: #edf4fd;
  border-radius: 7px;
  font-size: 8px;
  font-style: normal;
}
.work-item.active span, .work-item.active strong { color: var(--blue); }
.selected-work { margin-top: 17px; padding-right: 15px; border-right: 3px solid var(--blue); }
.selected-work > span { color: #9aa7ba; font-size: 8px; }
.selected-work strong { display: block; margin-top: 4px; color: var(--navy); font-size: 16px; }
.selected-work p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.process-inner {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  align-content: center;
  gap: 12px;
}
.process-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
}
.process-heading .section-kicker { margin-bottom: 12px; }
.process-heading h2 { font-size: clamp(35px, 3.2vw, 55px); }
.process-heading > p { width: min(430px, 40%); margin-bottom: 7px; }
.process-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
}
.process-visual img {
  position: relative;
  z-index: 2;
  max-height: 410px;
  width: min(92%, 1100px);
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(41,80,139,.1));
  animation: heroFloat 7s ease-in-out infinite;
}
.process-path {
  position: absolute;
  width: 76%;
  height: 1px;
  background: #bdd8ff;
  transform-origin: right;
  animation: pathDraw 2s ease both;
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: stages; }
.process-steps li {
  position: relative;
  min-height: 128px;
  padding: 17px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.process-steps li:hover { transform: translateY(-5px); background: white; box-shadow: 0 14px 32px rgba(41,80,139,.09); }
.process-steps li > span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--blue);
  background: #e4f0ff;
  border-radius: 9px;
  font: 800 9px/1 Arial, sans-serif;
}
.process-steps strong { display: block; margin-top: 11px; font-size: 14px; }
.process-steps p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  padding-bottom: 104px;
}
.contact-copy > p { max-width: 520px; }
.contact-promise { display: grid; gap: 10px; margin-top: 29px; }
.contact-promise > div {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 470px;
  padding: 11px 13px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 13px;
}
.contact-promise > div > b {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  color: var(--blue);
  background: white;
  border-radius: 10px;
  font: 800 9px/1 Arial, sans-serif;
}
.contact-promise strong { display: block; font-size: 12px; }
.contact-promise small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.contact-card {
  width: min(100%, 690px);
  padding: clamp(25px, 3vw, 40px);
  background: rgba(255,255,255,.9);
  border: 1px solid white;
  border-radius: 27px;
  box-shadow: var(--shadow);
}
.form-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.form-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: var(--blue);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(22,114,249,.2);
}
.form-heading strong { display: block; font-size: 18px; }
.form-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card label { display: block; margin-bottom: 13px; color: #40506e; font-size: 10px; font-weight: 700; }
.contact-card .form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-card input, .contact-card select, .contact-card textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--navy);
  background: #f7faff;
  border: 1px solid #dce6f4;
  border-radius: 11px;
  outline: 0;
  font-size: 11px;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus {
  background: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22,114,249,.09);
}
.contact-card input.input-error, .contact-card select.input-error, .contact-card textarea.input-error {
  border-color: #df4759;
  box-shadow: 0 0 0 4px rgba(223, 71, 89, .09);
}
.contact-card input::placeholder, .contact-card textarea::placeholder { color: #a1adc0; }
.form-submit { width: 100%; border: 0; }
.form-submit:disabled { cursor: wait; opacity: .72; transform: none; box-shadow: none; }
.form-submit[aria-busy="true"] svg { animation: spin 1s linear infinite; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 11px 0 0; color: #8693a8; font-size: 8px; }
.form-note svg { color: var(--blue); }
.site-footer {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 16px;
  width: min(1420px, calc(100% - 118px));
  min-height: 64px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(103,137,183,.2);
  transform: translateX(50%);
  color: #6f7d94;
  font-size: 9px;
}
.footer-brand .brand-text { font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer > div { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--blue); }

.toast {
  position: fixed;
  z-index: 200;
  left: 24px;
  bottom: 24px;
  width: min(380px, calc(100% - 48px));
  padding: 14px;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 11px;
  align-items: center;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(21,57,112,.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast > span { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--blue); border-radius: 11px; font-weight: 900; }
.toast.error { border-color: rgba(223, 71, 89, .28); }
.toast.error > span { background: #df4759; }
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.toast button { border: 0; background: transparent; color: #95a2b5; cursor: pointer; font-size: 22px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(22,114,249,0); } }
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  50% { transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}
@keyframes noteFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pathDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Desktop artwork is constrained by both width and viewport height.
   This keeps every section's supporting cards visible on laptop screens. */
@media (min-width: 881px) {
  .hero-art { min-height: 350px; }
  .hero-art > img {
    width: auto;
    max-width: min(86%, 650px);
    max-height: min(45svh, 430px);
  }
  .section-visual { min-height: 455px; }
  .section-visual > img {
    width: auto;
    max-width: min(80%, 560px);
    max-height: min(45svh, 420px);
  }
  .portfolio-stage { min-height: 510px; }
  .portfolio-stage img {
    width: auto;
    max-width: min(82%, 590px);
    max-height: min(49svh, 470px);
  }
  .process-visual { min-height: 265px; }
  .process-visual img {
    width: auto;
    max-width: min(76%, 900px);
    max-height: min(34svh, 300px);
  }
}

@media (max-width: 1180px) {
  :root { --header-h: 78px; }
  .site-header { right: 14px; left: 14px; }
  .header-inner { padding: 0 18px; gap: 20px; }
  .brand-symbol { display: none; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 12px; }
  .screen-inner, .site-footer { width: min(100% - 70px, 1200px); }
  .hero-layout { gap: 30px; }
  .hero-art { min-height: 320px; }
  .gateway-card { grid-template-columns: 1fr 88px; padding: 14px; }
  .gateway-icon { height: 82px; }
  .section-layout { gap: 40px; }
  .section-visual { min-height: 410px; }
  .portfolio-stage { min-height: 470px; }
  .process-visual { min-height: 235px; }
}

@media (max-width: 880px) {
  html { scroll-snap-type: none; }
  .site-header { top: 10px; right: 10px; left: 10px; }
  .header-inner { border-radius: 18px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-right: auto; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: 96px;
    right: 10px;
    left: 10px;
    display: grid;
    gap: 0;
    padding: 8px;
    background: rgba(255,255,255,.97);
    border: 1px solid white;
    border-radius: 17px;
    box-shadow: var(--shadow);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px; border-bottom: 1px solid #edf2f8; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .screen-nav { display: none; }
  .screen { min-height: auto; overflow: clip; }
  .screen-inner { width: min(100% - 34px, 720px); min-height: auto; padding-top: 118px; padding-bottom: 70px; }
  .hero-inner { display: block; }
  .hero-layout, .section-layout, .portfolio-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { text-align: center; }
  .eyebrow { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-art { order: -1; min-height: 390px; margin-bottom: 20px; }
  .note-code { right: 5%; }
  .note-ready { left: 5%; }
  .gateway-grid { grid-template-columns: 1fr; margin-top: 35px; }
  .gateway-card { min-height: 132px; grid-template-columns: 1fr 130px; }
  .scroll-cue { display: none; }
  .section-copy { order: 1; }
  .section-visual, .portfolio-stage { order: 2; min-height: 500px; margin-top: 30px; }
  .portfolio-stage { min-height: 520px; }
  .portfolio-copy { order: 1; }
  .process-heading { display: block; }
  .process-heading > p { width: auto; }
  .process-inner { display: block; }
  .process-visual { margin: 30px 0; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { padding-bottom: 160px; }
  .contact-card { margin-inline: auto; }
  .site-footer { width: calc(100% - 34px); grid-template-columns: 1fr 1fr; gap: 10px; text-align: right; }
}

@media (max-width: 560px) {
  .brand-text { font-size: 18px; }
  .hero-copy h1 { font-size: clamp(37px, 12vw, 54px); }
  .hero-art { min-height: 300px; }
  .hero-art > img { width: 113%; max-width: none; }
  .floating-note { padding: 8px; font-size: 9px; }
  .gateway-card { grid-template-columns: 1fr 98px; }
  .service-tabs { grid-template-columns: 1fr; }
  .section-copy h2, .process-heading h2, .contact-copy h2 { font-size: 38px; }
  .section-visual { min-height: 390px; }
  .detail-card { left: 0; bottom: 3%; width: 60%; }
  .portfolio-stage { min-height: 420px; }
  .stage-chip { font-size: 8px; }
  .process-visual { min-height: 220px; }
  .process-visual img { width: 120%; max-width: none; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-points { flex-wrap: wrap; }
  .contact-layout { padding-bottom: 200px; }
  .site-footer { min-height: 130px; grid-template-columns: 1fr; align-content: center; text-align: center; }
  .site-footer > div { justify-content: center; }
}

@media (max-height: 900px) and (min-width: 881px) {
  :root { --header-h: 70px; }
  .site-header { top: 9px; }
  .header-inner { border-radius: 18px; }
  .main-nav a { padding-block: 24px 20px; }
  .screen-inner { padding-top: 91px; padding-bottom: 18px; }
  .hero-copy h1 { font-size: clamp(38px, 3.7vw, 55px); }
  .hero-lead { margin-top: 15px; font-size: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-points { margin-top: 16px; }
  .hero-art { min-height: 255px; }
  .hero-art > img { max-width: 74%; max-height: 310px; }
  .gateway-grid { gap: 10px; }
  .gateway-card { min-height: 100px; padding-block: 12px; }
  .gateway-icon { height: 65px; }
  .gateway-icon img { max-height: 79px; }
  .section-copy h2 { font-size: clamp(35px, 3.2vw, 48px); }
  .section-copy > p:not(.section-kicker) { margin-top: 13px; font-size: 13px; }
  .section-visual { min-height: 330px; }
  .section-visual > img { max-width: 68%; max-height: 300px; }
  .detail-card { bottom: 3%; width: min(240px, 42%); padding: 14px; }
  .portfolio-stage { min-height: 370px; }
  .portfolio-stage img { max-width: 68%; max-height: 330px; }
  .service-tabs { margin-top: 19px; }
  .service-tab { min-height: 70px; padding: 11px; }
  .work-list { margin-top: 18px; }
  .work-item { padding: 12px; }
  .selected-work { margin-top: 11px; }
  .process-inner { grid-template-rows: auto minmax(165px, 1fr) auto; gap: 8px; }
  .process-heading h2 { font-size: 36px; }
  .process-heading > p { margin-top: 10px; font-size: 13px; }
  .process-visual { min-height: 165px; }
  .process-visual img { max-width: 64%; max-height: 205px; }
  .process-steps li { min-height: 88px; padding: 12px; }
  .process-steps li > span { width: 27px; height: 27px; }
  .process-steps strong { margin-top: 7px; font-size: 12px; }
  .process-steps p { margin-top: 4px; }
  .contact-card { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
