:root {
  --ink: #10233f;
  --ink-soft: #294566;
  --paper: #f7faff;
  --paper-bright: #ffffff;
  --accent: #3568d4;
  --accent-soft: #e8f0ff;
  --muted: #73849a;
  --line: rgba(38, 78, 128, 0.16);
  --line-light: rgba(255, 255, 255, 0.24);
  --display: Inter, "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max: 1440px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.brand b { font-weight: 750; }

.nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.nav > a { font-size: 0.9rem; font-weight: 650; }
.nav > a:not(.nav-cta) { position: relative; }
.nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav > a:not(.nav-cta):hover::after,
.nav > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}

.nav-cta span { color: #a9c5ff; transition: transform 180ms ease; }
.nav-cta:hover span { transform: translate(3px, -3px); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 80px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 64px) 30px;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 0.77fr);
  grid-template-rows: 1fr auto;
  gap: 70px clamp(40px, 7vw, 110px);
  align-items: center;
}

.eyebrow,
.section-index {
  margin: 0 0 28px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 1px; background: var(--ink); }

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8.2vw, 8.3rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 em,
.contact h2 em {
  color: transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.055em;
  -webkit-text-stroke: 2px var(--ink);
  text-transform: none;
}

.hero-lead {
  max-width: 650px;
  margin: 36px 0 0;
  color: #4b6079;
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions { display: flex; margin-top: 38px; align-items: center; gap: 28px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 12px 28px rgba(79, 127, 232, 0.22); }
.button-primary:hover { background: var(--ink); color: white; }
.button-primary span { font-size: 1.2rem; }

.text-link { font-size: 0.9rem; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(3px); }

.hero-visual { position: relative; width: 100%; }
.browser-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-bright); box-shadow: 0 28px 65px rgba(31, 69, 119, 0.18); transform: rotate(0.6deg); }
.browser-top { display: flex; height: 50px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); color: #667a94; font-size: 0.7rem; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 7px; height: 7px; border: 1px solid #91a4bc; border-radius: 50%; }
.browser-status { display: flex; align-items: center; gap: 6px; }
.browser-status i { width: 6px; height: 6px; border-radius: 50%; background: #43b66b; }
.browser-body { position: relative; min-height: 440px; padding: 24px; background: linear-gradient(145deg, #edf4ff 0%, #dbe8fb 100%); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; font-size: 0.64rem; }
.mock-nav b { letter-spacing: 0.08em; }
.mock-nav span { color: #60748e; }
.mock-content { padding-top: 90px; }
.mock-content p { margin: 0 0 14px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; }
.mock-content h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 400; letter-spacing: -0.07em; line-height: 0.95; }
.mock-button { display: inline-flex; margin-top: 34px; padding: 12px 15px; border-radius: 9px; background: var(--ink); color: white; font-size: 0.65rem; font-weight: 700; }
.mock-stamp { position: absolute; right: 22px; bottom: 22px; display: grid; width: 94px; height: 94px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.58rem; font-weight: 800; line-height: 1.4; text-align: center; transform: rotate(9deg); }
.floating-note { position: absolute; display: flex; min-height: 43px; align-items: center; gap: 10px; padding: 0 14px 0 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.94); box-shadow: 0 12px 30px rgba(31, 69, 119, 0.16); font-size: 0.72rem; font-weight: 750; }
.floating-note span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 0.62rem; }
.note-one { top: 26%; left: -38px; transform: rotate(-4deg); }
.note-two { right: -30px; bottom: 20%; transform: rotate(4deg); }

.hero-bottom { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; color: #687b93; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-bottom p { margin: 0; }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint span { position: relative; display: block; width: 24px; height: 36px; border: 1px solid #777; border-radius: 20px; }
.scroll-hint span::after { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 4px; background: var(--ink); content: ""; transform: translateX(-50%); animation: scroll 1.7s ease-in-out infinite; }

.section-dark { background: #102f55; color: white; }
.statement { overflow: hidden; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
.statement-track { display: flex; width: max-content; align-items: center; gap: 34px; animation: marquee 25s linear infinite; }
.statement-track span { font-family: var(--display); font-size: clamp(2rem, 4vw, 4.7rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.statement-track i { color: #a9c5ff; font-size: 1.1rem; font-style: normal; }

.services,
.process,
.principles {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) clamp(20px, 4vw, 64px);
}

.section-heading { display: grid; grid-template-columns: 0.35fr 1fr; gap: 40px; align-items: start; margin-bottom: 70px; }
.section-heading h2,
.benefits-intro h2,
.contact h2,
.principles h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-transform: uppercase;
}

.service-grid { display: grid; grid-template-columns: 1.18fr 0.91fr 0.91fr; gap: 14px; }
.service-card { position: relative; display: flex; min-height: 480px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-bright); box-shadow: 0 10px 34px rgba(31, 69, 119, 0.07); transition: transform 200ms ease, box-shadow 200ms ease; }
.service-card:hover { z-index: 2; transform: translateY(-6px); box-shadow: 0 20px 46px rgba(31, 69, 119, 0.12); }
.service-featured { background: var(--accent-soft); }
.card-number { position: absolute; top: 24px; right: 25px; color: #657a94; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; }
.service-icon { display: grid; width: 72px; height: 72px; margin-bottom: auto; place-items: center; border-radius: 50%; background: var(--accent-soft); }
.service-featured .service-icon { background: rgba(255, 255, 255, 0.78); }
.service-icon svg { width: 50px; height: 50px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 54px 0 14px; font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2.6rem); letter-spacing: -0.045em; line-height: 1.02; }
.service-card p { margin: 0; color: #52677f; line-height: 1.65; }
.service-card ul { display: grid; margin: 25px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(17,17,17,0.25); gap: 8px; list-style: none; }
.service-card li { position: relative; padding-left: 18px; font-size: 0.84rem; font-weight: 650; }
.service-card li::before { position: absolute; top: 0.55em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); content: ""; }

.benefits { display: grid; padding: clamp(90px, 11vw, 170px) max(clamp(20px, 4vw, 64px), calc((100vw - var(--max)) / 2 + 64px)); grid-template-columns: 0.8fr 1.2fr; gap: clamp(60px, 10vw, 150px); }
.section-index.light { color: #a9c5ff; }
.benefits-intro { position: sticky; top: 130px; align-self: start; }
.benefits-intro h2 { max-width: 650px; }
.benefits-intro > p:last-child { max-width: 520px; margin: 34px 0 0; color: #bababa; font-size: 1.08rem; line-height: 1.7; }
.benefit-list { border-top: 1px solid var(--line-light); }
.benefit-row { display: grid; min-height: 165px; align-items: center; border-bottom: 1px solid var(--line-light); grid-template-columns: 0.18fr 0.48fr 1fr; gap: 24px; }
.benefit-row > span { color: #a9c5ff; font-size: 0.72rem; font-weight: 750; }
.benefit-row h3 { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 2.4rem); letter-spacing: -0.04em; line-height: 1; }
.benefit-row p { margin: 0; color: #aaa; line-height: 1.6; }

.responsive-showcase {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) clamp(20px, 4vw, 64px);
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}
.responsive-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.2vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-transform: uppercase;
}
.responsive-copy h2 em { color: var(--accent); font-family: var(--serif); font-weight: 400; font-style: italic; text-transform: none; }
.responsive-lead { max-width: 610px; margin: 34px 0 0; color: #52677f; font-size: 1.08rem; line-height: 1.75; }
.responsive-points { display: grid; margin-top: 42px; border-top: 1px solid var(--line); }
.responsive-points article { display: grid; padding: 24px 0; border-bottom: 1px solid var(--line); grid-template-columns: 48px 1fr; gap: 18px; }
.responsive-points article > span { color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.responsive-points h3 { margin: -4px 0 7px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.035em; }
.responsive-points p { margin: 0; color: #60738a; line-height: 1.65; }
.device-stage { position: relative; display: flex; min-height: 660px; overflow: hidden; padding: 24px; border: 1px solid rgba(53, 104, 212, 0.2); border-radius: 28px; background: linear-gradient(145deg, #f9fbff 0%, #e8f0ff 52%, #d8e6ff 100%); box-shadow: 0 28px 70px rgba(31, 69, 119, 0.14); flex-direction: column; isolation: isolate; }
.device-stage::before { position: absolute; top: 12%; right: 5%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(53, 104, 212, 0.18); content: ""; filter: blur(60px); }
.device-switch { position: relative; z-index: 2; display: inline-flex; align-self: center; padding: 5px; border: 1px solid rgba(38, 78, 128, 0.18); border-radius: 100px; background: rgba(255,255,255,0.72); box-shadow: 0 10px 30px rgba(31,69,119,0.09); backdrop-filter: blur(10px); }
.device-tab { min-height: 42px; padding: 0 20px; border: 0; border-radius: 100px; background: transparent; color: #536980; cursor: pointer; font-size: 0.82rem; font-weight: 800; transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.device-tab.is-active { background: var(--ink); color: white; box-shadow: 0 8px 18px rgba(16,35,63,0.2); }
.device-slider { position: relative; z-index: 1; min-height: 510px; flex: 1; overflow: hidden; cursor: grab; touch-action: pan-y; }
.device-slider:active { cursor: grabbing; }
.device-track { display: flex; width: 200%; height: 100%; transform: translateX(0); transition: transform 560ms cubic-bezier(.22,.75,.22,1); }
.device-stage[data-active="phone"] .device-track { transform: translateX(-50%); }
.device-slide { display: grid; width: 50%; height: 100%; flex: 0 0 50%; margin: 0; padding: 18px 34px 0; align-items: center; justify-items: center; grid-template-rows: minmax(0, 1fr) auto; }
.device-slide img { display: block; max-width: 100%; max-height: 470px; object-fit: contain; user-select: none; filter: drop-shadow(0 22px 28px rgba(16, 47, 85, 0.2)); }
#device-slide-desktop img { width: min(100%, 760px); }
#device-slide-phone img { width: min(55%, 285px); }
.device-slide figcaption { margin-top: 2px; color: #52677f; font-size: 0.78rem; font-weight: 700; text-align: center; }
.device-hint { position: relative; z-index: 2; display: flex; margin: 12px 0 0; align-items: center; justify-content: center; gap: 10px; color: #60738a; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.device-hint span { color: var(--accent); font-size: 1rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-step { min-height: 390px; padding: 28px 26px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(31, 69, 119, 0.06); }
.process-step:last-child { border: 1px solid var(--line); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.72rem; font-weight: 800; }
.step-top i { font-size: 1.3rem; font-style: normal; }
.process-step h3 { margin: 130px 0 18px; font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.04em; line-height: 1.05; }
.process-step p { margin: 0; color: #52677f; font-size: 0.94rem; line-height: 1.65; }

.principles { padding-top: 0; }
.principles-panel { position: relative; display: grid; overflow: hidden; padding: clamp(38px, 6vw, 88px); border: 1px solid rgba(53, 104, 212, 0.15); border-radius: 26px; background: var(--accent-soft); grid-template-columns: 0.92fr 0.78fr; gap: clamp(50px, 8vw, 130px); }
.principles h2 { font-size: clamp(3rem, 5vw, 5.8rem); }
.principles h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; text-transform: none; }
.principles-copy { position: relative; z-index: 1; align-self: end; }
.principles-copy > p { margin: 0 0 28px; font-size: 1.08rem; line-height: 1.75; }
.project-agreement { margin: 0 0 28px; padding: 22px; border: 1px solid rgba(38,78,128,0.18); border-radius: 18px; background: rgba(255,255,255,0.82); box-shadow: 0 18px 45px rgba(31,69,119,0.1); transform: rotate(-0.6deg); }
.agreement-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); gap: 18px; }
.agreement-top > span { color: #60738a; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.agreement-top strong { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 0.76rem; }
.agreement-top i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 0.68rem; font-style: normal; }
.project-agreement dl { display: grid; margin: 0; }
.project-agreement dl > div { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); grid-template-columns: 0.36fr 1fr; gap: 18px; }
.project-agreement dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.project-agreement dt { color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-agreement dd { margin: 0; color: var(--ink); font-size: 0.88rem; font-weight: 700; }
.principle-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.principle-tags span { padding: 9px 13px; border: 1px solid rgba(38,78,128,0.32); border-radius: 100px; font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }

.contact { display: grid; padding: clamp(85px, 10vw, 150px) max(clamp(20px, 4vw, 64px), calc((100vw - var(--max)) / 2 + 64px)); background: #dfeaff; grid-template-columns: 0.95fr 0.75fr; gap: clamp(60px, 10vw, 150px); }
.contact-copy > p:not(.section-index) { max-width: 580px; margin: 32px 0; font-size: 1.05rem; }
.contact-methods { display: grid; justify-items: start; gap: 26px; }
.contact-email { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 1rem; font-weight: 750; }
.contact-email span { transition: transform 180ms ease; }
.contact-email:hover span { transform: translate(3px, -3px); }
.contact-phones { display: grid; gap: 7px; }
.contact-phones > span { margin-bottom: 2px; color: #60738a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-phones a { width: fit-content; font-size: 1.02rem; font-weight: 750; transition: color 180ms ease; }
.contact-phones a:hover { color: var(--accent); }
.brief-form { display: grid; align-content: start; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 24px 55px rgba(31, 69, 119, 0.14); gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-form label { display: grid; gap: 7px; }
.brief-form label > span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.brief-form input,
.brief-form textarea,
.brief-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #91a5bd;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.brief-form input,
.brief-form select { height: 49px; }
.brief-form textarea { padding: 11px 0; resize: vertical; }
.brief-form input:focus,
.brief-form textarea:focus,
.brief-form select:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.button-dark { margin-top: 4px; border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 12px 26px rgba(16, 35, 63, 0.16); }
.button-dark:hover { background: transparent; color: var(--ink); }
.button-dark:disabled { cursor: wait; opacity: 0.72; transform: none; }
.form-note { margin: -12px 0 0; color: #687b93; font-size: 0.76rem; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.form-status { margin: -8px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 0.86rem; font-weight: 700; line-height: 1.45; }
.form-status.is-success { border: 1px solid #2d8b57; background: #e8f7ee; color: #185f39; }
.form-status.is-error { border: 1px solid #c35b5b; background: #fff0f0; color: #8e2929; }

.footer { display: grid; min-height: 230px; padding: 52px max(clamp(20px, 4vw, 64px), calc((100vw - var(--max)) / 2 + 64px)) 34px; align-items: end; background: #0d294a; color: white; grid-template-columns: 1fr 1fr; }
.footer > p { margin: 0; color: #b8c8db; text-align: right; }
.footer-meta { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); color: #91a8c1; font-size: 0.72rem; }
.footer-meta a { color: white; font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.section-dark :focus-visible, .footer :focus-visible { outline-color: #a9c5ff; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes scroll {
  0% { opacity: 0; transform: translate(-50%, -3px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr 0.8fr; gap: 55px 45px; }
  .browser-body { min-height: 390px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-featured { grid-row: span 2; }
  .benefits { grid-template-columns: 1fr; }
  .benefits-intro { position: static; }
  .responsive-showcase { grid-template-columns: 1fr; }
  .device-stage { min-height: 650px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border: 1px solid var(--line); }
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:nth-child(4) { border: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr 0.9fr; gap: 55px; }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; }
  .menu-toggle { position: relative; z-index: 102; display: grid; width: 44px; height: 44px; padding: 13px 9px; border: 0; background: transparent; cursor: pointer; align-content: center; gap: 7px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: var(--ink); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: fixed; z-index: 101; inset: 0; display: flex; padding: 110px 28px 50px; align-items: flex-start; flex-direction: column; background: var(--accent-soft); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 180ms ease, transform 180ms ease; }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav > a { font-family: var(--display); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; }
  .nav-cta { width: 100%; min-height: 60px; margin-top: auto; justify-content: space-between; font-family: var(--body) !important; font-size: 0.9rem !important; letter-spacing: 0 !important; text-transform: none !important; }
  .hero { min-height: auto; padding-top: 68px; grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero h1 { font-size: clamp(4.1rem, 16vw, 7rem); }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .hero-bottom { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; gap: 0; }
  .service-card { min-height: 420px; }
  .principles-panel, .contact { grid-template-columns: 1fr; }
  .contact { gap: 62px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 68px; }
  .hero { gap: 62px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 6rem); line-height: 0.86; }
  .hero h1 em { -webkit-text-stroke-width: 1.2px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .browser-card { box-shadow: 0 18px 44px rgba(31, 69, 119, 0.16); transform: none; }
  .browser-top { padding: 0 11px; }
  .browser-status { display: none; }
  .browser-body { min-height: 330px; padding: 17px; }
  .mock-nav span { display: none; }
  .mock-content { padding-top: 70px; }
  .mock-content h2 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
  .mock-stamp { width: 72px; height: 72px; font-size: 0.48rem; }
  .floating-note { font-size: 0.63rem; }
  .note-one { top: -22px; left: 8px; }
  .note-two { right: -8px; bottom: 28px; }
  .hero-bottom p { max-width: 230px; line-height: 1.8; }
  .scroll-hint { display: none; }
  .statement-track { gap: 22px; }
  .services, .process, .principles, .responsive-showcase { padding-top: 90px; padding-bottom: 90px; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2, .benefits-intro h2, .contact h2, .principles h2 { font-size: clamp(2.75rem, 13vw, 4.6rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-featured { grid-row: auto; }
  .benefits { gap: 62px; }
  .benefit-row { padding: 28px 0; grid-template-columns: 40px 1fr; }
  .benefit-row p { grid-column: 2; }
  .responsive-copy h2 { font-size: clamp(2.75rem, 13vw, 4.6rem); }
  .device-stage { min-height: 480px; padding: 16px; border-radius: 22px; }
  .device-tab { min-height: 40px; padding: 0 16px; }
  .device-slider { min-height: 355px; }
  .device-slide { padding: 14px 8px 0; }
  .device-slide img { max-height: 330px; }
  #device-slide-desktop img { width: 100%; }
  #device-slide-phone img { width: min(58%, 220px); }
  .device-hint { margin-top: 8px; font-size: 0.65rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 330px; border: 1px solid var(--line) !important; }
  .process-step:last-child { border: 1px solid var(--line) !important; }
  .process-step h3 { margin-top: 90px; }
  .principles-panel { padding: 34px 24px; }
  .agreement-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .brief-form { box-shadow: 0 18px 42px rgba(31, 69, 119, 0.14); }
  .footer { grid-template-columns: 1fr; gap: 22px; }
  .footer > p { text-align: left; }
  .footer-meta { margin-top: 30px; }
}

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