:root {
  --ink: #1c1d1f;
  --muted: #666f7d;
  --faint: #6b778a;
  --canvas: #ffffff;
  --ash: #f7f8fa;
  --line: #e4e7ec;
  --line-strong: #d3d8df;
  --blue: #266df0;
  --focus: #94b9ff;
  --muted-dark: #9ca5b2;
  --faint-dark: #aab2bf;
  --blue-dark: #7aa5f7;
  --night: #101114;
  --max: 1296px;
  --sans: Inter, "Inter Display", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Newsreader, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; touch-action: manipulation; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; text-rendering: optimizeLegibility; }
button, a { -webkit-tap-highlight-color: rgba(64, 127, 242, .14); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: 92px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; background: var(--blue); color: white; border-radius: 6px; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.availability { height: 32px; display: grid; place-items: center; padding: 0 24px; background: var(--night); color: white; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); transition: min-height 160ms ease, box-shadow 160ms ease; }
.site-header.is-scrolled { min-height: 60px; box-shadow: 0 8px 28px rgba(17, 25, 39, .05); }
.wordmark { width: max-content; font-family: var(--serif); font-size: 29px; line-height: 1; text-decoration: none; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-nav a, .site-footer nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.site-header > .button { justify-self: end; }

.section-shell { padding-inline: max(24px, calc((100vw - var(--max)) / 2)); }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease; }
.button:hover { transform: translateY(-1px); }
.button--dark { background: var(--ink); border-color: var(--ink); color: white; }
.button--dark:hover { background: var(--blue); border-color: var(--blue); }
.button--quiet { background: white; }
.button--quiet:hover { border-color: var(--ink); }
.button--compact { min-height: 40px; padding: 9px 14px; font-size: 13px; }

.hero { min-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 112px 104px; text-align: center; border-bottom: 1px solid var(--line); }
.hero__rotator { width: 100%; display: flex; flex-direction: column; align-items: center; transition: opacity 760ms cubic-bezier(.65, 0, .35, 1); }
.hero__rotator.is-changing { opacity: 0; }
.hero__title { max-width: 1040px; margin: 26px 0 0; font-size: clamp(58px, 7.2vw, 104px); font-weight: 650; line-height: .92; letter-spacing: -.055em; }
.hero__serif { min-height: 1.92em; margin: 16px 0 0; font-family: var(--serif); font-size: clamp(44px, 5.2vw, 76px); line-height: .96; letter-spacing: -.035em; }
.hero__lede { min-height: 3.2em; max-width: 680px; margin: 30px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-rotation-controls { display: flex; align-items: center; margin-top: 24px; }
.hero-rotation-dots { display: flex; align-items: center; gap: 8px; }
.hero-rotation-dots button { width: 28px; height: 28px; position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-rotation-dots button::before { width: 18px; height: 2px; position: absolute; top: 13px; left: 5px; border-radius: 2px; background: var(--line-strong); content: ""; transition: background-color 240ms ease, transform 240ms ease; }
.hero-rotation-dots button[aria-current="true"]::before { background: var(--blue); transform: scaleX(1.25); }

.system { padding-block: 72px 92px; background: var(--ash); }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: white; }
.system-grid li { min-height: 220px; display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 30px; border-right: 1px solid var(--line); }
.system-grid li:last-child { border-right: 0; }
.index { color: var(--blue); font-size: 11px; letter-spacing: .05em; }
.system-grid h2, .service-list h3 { margin: 0; font-size: 23px; line-height: 1.15; }
.system-grid p, .service-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.work { padding-block: 124px 132px; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 40px; align-items: end; }
.section-intro h2, .process h2 { margin: 16px 0 0; font-size: clamp(60px, 6.4vw, 92px); line-height: .94; letter-spacing: -.05em; }
.section-intro > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.work-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 64px; }
.project-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: white; }
.project-card--1 { grid-row: span 2; }
.project-visual { min-height: 330px; display: grid; place-items: center; overflow: hidden; padding: clamp(20px, 3vw, 42px); background: #eef2f7; }
.project-card--1 .project-visual { min-height: 620px; }
.project-card--2 .project-visual { background: var(--night); }
.project-card--3 .project-visual { background: #e8eef8; }
.project-image { display: block; width: 100%; height: 100%; max-height: 560px; border-radius: 7px; box-shadow: 0 22px 54px rgba(18, 26, 38, .16); }
.project-image--contain { object-fit: contain; background: white; }
.project-image--cover { min-height: 270px; object-fit: cover; object-position: center; }
.project-image--phone { width: auto; max-width: min(78%, 290px); object-fit: contain; border-radius: 0; box-shadow: none; }
.project-copy { padding: 24px; }
.project-copy h3 { margin: 8px 0 0; font-size: 25px; line-height: 1.15; }
.project-copy > p:not(.project-status) { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-copy small { display: block; margin-top: 18px; color: var(--faint); }
.project-status { margin: 0; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.portal-mock { width: min(100%, 620px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: white; box-shadow: 0 20px 50px rgba(24, 35, 54, .08); }
.portal-bar { height: 44px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.portal-body { min-height: 380px; display: grid; grid-template-columns: 92px 1fr; }
.portal-rail { border-right: 1px solid var(--line); background: var(--ash); }
.portal-panel { display: flex; flex-direction: column; padding: 40px; }
.portal-panel span, .app-mock span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.portal-panel strong { max-width: 390px; margin-top: 12px; font-size: 34px; line-height: 1.1; }
.portal-panel > i { display: block; height: 92px; margin-top: 32px; border-radius: 7px; background: var(--ink); }
.portal-panel > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.portal-panel b { height: 100px; border-radius: 7px; background: #edf0f4; }
.editorial-mock { width: 100%; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.editorial-mock span { color: var(--faint); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.editorial-mock strong { font-family: var(--serif); font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1; }
.editorial-mock i { display: block; width: 96px; height: 2px; background: var(--blue); }
.app-mock { width: min(250px, 78%); padding: 26px; border: 1px solid #cbd8ef; border-radius: 8px; background: white; }
.app-mock strong { display: block; margin-top: 12px; font-size: 27px; line-height: 1.05; }
.app-mock div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
.app-mock i { height: 44px; border-radius: 5px; background: var(--blue); }
.app-mock i:last-child { background: #edf0f4; }

.services { display: grid; grid-template-columns: 1fr 1.25fr; gap: 96px; padding-block: 126px; background: var(--ash); }
.services__statement h2 { max-width: 560px; margin: 22px 0 0; font-family: var(--serif); font-size: clamp(44px, 4.5vw, 66px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.service-list li { display: grid; grid-template-columns: 44px minmax(180px, .8fr) 1.2fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.service-list .index { color: var(--faint); }
.service-list p { margin: 0; }

.process { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; padding-block: 132px; background: var(--night); color: white; }
.process .eyebrow { color: var(--faint-dark); }
.process > ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #303238; }
.process li { padding: 30px 0; border-bottom: 1px solid #303238; }
.process li span { color: var(--blue-dark); font-size: 10px; font-weight: 600; letter-spacing: .07em; }
.process li p { margin: 10px 0 0; color: #aab2bf; font-size: 15px; line-height: 1.65; }

.contact { display: grid; grid-template-columns: minmax(260px, .72fr) 1.28fr; gap: clamp(52px, 8vw, 120px); align-items: center; padding-block: 132px; text-align: left; }
.contact__portrait { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--ash); }
.contact__portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 54% center; }
.contact__copy { min-width: 0; }
.contact h2 { margin: 24px 0 0; font-size: clamp(56px, 6.5vw, 94px); line-height: .95; letter-spacing: -.05em; }
.contact__serif { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(42px, 5.2vw, 74px); line-height: 1; letter-spacing: -.035em; }
.contact__body { max-width: 700px; margin: 28px 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding: 56px max(24px, calc((100vw - var(--max)) / 2)) 30px; background: var(--night); color: white; }
.site-footer > div p { margin: 12px 0 0; color: #9ca5b2; font-size: 13px; }
.site-footer nav { display: flex; gap: 28px; align-items: start; }
.site-footer nav a { color: white; }
.copyright { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #303238; color: var(--muted-dark); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }

.error-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding-block: 96px; text-align: center; }
.error-page__inner { max-width: 760px; }
.error-page h1 { margin: 22px 0 0; font-size: clamp(62px, 9vw, 124px); line-height: .9; letter-spacing: -.06em; }
.error-page__serif { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.035em; }
.error-page__body { max-width: 560px; margin: 28px auto; color: var(--muted); font-size: 17px; line-height: 1.65; }

.policy-page { padding-block: clamp(56px, 9vw, 120px); }
.policy-page__inner { width: min(100%, 760px); margin-inline: auto; }
.policy-page__eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.policy-page h1 { margin: 18px 0 0; font-size: clamp(48px, 7vw, 78px); line-height: .94; letter-spacing: -.055em; }
.policy-page__effective { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.policy-page__content { margin-top: 48px; }
.policy-page__content h2 { margin: 44px 0 14px; font-size: 24px; line-height: 1.15; }
.policy-page__content p, .policy-page__content li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.policy-page__content strong { color: var(--ink); }
.policy-page__content a, .policy-page__footer a { color: var(--blue); text-underline-offset: 3px; }
.policy-page__content ul { padding-left: 22px; }
.policy-page__callout { margin: 24px 0; padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--ash); }
.policy-page__callout p { margin: 0; }
.policy-page__notice { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--ash); }
.policy-page__notice p { margin: 0; }
.consent-form { margin-top: 28px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ash); }
.consent-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.consent-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.consent-form input[type="tel"] { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--muted); font: inherit; }
.consent-form__consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 18px; }
.consent-form__consent input { margin-top: 5px; }
.consent-form__consent label { margin: 0; color: var(--muted); font-weight: 400; line-height: 1.55; }
.consent-form button { margin-top: 20px; padding: 12px 18px; border: 0; border-radius: 8px; background: var(--line-strong); color: var(--muted); font: inherit; font-weight: 600; cursor: not-allowed; }
.policy-page__footer { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: auto; align-items: flex-start; padding-block: 76px 58px; text-align: left; }
  .hero__rotator { align-items: flex-start; }
  .hero__title { font-size: clamp(50px, 13vw, 72px); }
  .hero__serif { font-size: clamp(38px, 10.5vw, 56px); }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .system-grid li:last-child { border-bottom: 0; }
  .section-intro, .services, .process, .contact { grid-template-columns: 1fr; gap: 48px; }
  .work-grid { grid-template-columns: 1fr; }
  .project-card--1 { grid-row: auto; }
  .project-card--1 .project-visual { min-height: 480px; }
  .service-list li { grid-template-columns: 36px 1fr; }
  .service-list p { grid-column: 2; }
}

@media (max-width: 560px) {
  .availability { height: 34px; padding-inline: 12px; font-size: 9px; }
  .site-header { min-height: 64px; padding: 10px 20px; }
  .site-header.is-scrolled { min-height: 56px; }
  .wordmark { font-size: 25px; }
  .site-header .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .section-shell { padding-inline: 20px; }
  .hero { padding-block: 68px 36px; }
  .hero__title { margin-top: 18px; font-size: 50px; }
  .hero__serif { min-height: 2.04em; margin-top: 10px; font-size: 39px; }
  .hero__lede { min-height: 4.8em; margin-block: 26px 24px; font-size: 16px; }
  .hero-rotation-controls { margin-top: 18px; }
  .button-row { width: 100%; flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; }
  .system { padding-block: 34px 44px; }
  .system-grid { margin-top: 16px; }
  .system-grid li { grid-template-columns: 30px 1fr; gap: 12px; padding: 20px; }
  .work { padding-block: 62px 70px; }
  .section-intro { gap: 18px; }
  .section-intro h2, .process h2 { margin-top: 12px; font-size: 48px; }
  .section-intro > p { font-size: 15px; }
  .work-grid { gap: 28px; margin-top: 28px; }
  .project-card--1 .project-visual, .project-visual { min-height: 242px; padding: 18px; }
  .portal-body { min-height: 190px; grid-template-columns: 54px 1fr; }
  .portal-bar { height: 28px; font-size: 8px; }
  .portal-panel { padding: 14px; }
  .portal-panel strong { margin-top: 7px; font-size: 20px; }
  .portal-panel > i { height: 44px; margin-top: 16px; }
  .portal-panel b { height: 50px; }
  .project-copy { padding: 18px; }
  .project-copy h3 { font-size: 22px; }
  .services { gap: 30px; padding-block: 64px; }
  .services__statement h2 { margin-top: 16px; font-size: 36px; line-height: 1.12; }
  .service-list li { display: block; padding: 22px 0; }
  .service-list h3 { margin-top: 8px; font-size: 22px; }
  .service-list p { margin-top: 8px; }
  .process { gap: 34px; padding-block: 64px; }
  .process li { padding: 22px 0; }
  .contact { align-items: start; gap: 28px; padding-block: 72px; text-align: left; }
  .contact__portrait { width: min(72vw, 280px); aspect-ratio: 1 / 1; }
  .contact h2 { margin-top: 16px; font-size: 43px; }
  .contact__serif { margin-top: 7px; font-size: 36px; }
  .contact__body { margin-block: 22px 24px; font-size: 15px; }
  .site-footer { grid-template-columns: 1fr; gap: 26px; padding: 34px 20px 28px; }
  .site-footer nav { gap: 18px; }
  .copyright { margin-top: 2px; }
}

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