/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/Onest-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --white: #fff;
  --ink: #242424;
  --orange: #f15026;
  --soft: #efefef;
  --client-logo-color: #686868;
  --muted: rgb(36 36 36 / 75%);
  --inverse-muted: rgb(255 255 255 / 76%);
  --rule: rgb(36 36 36 / 20%);
  --inverse-rule: rgb(255 255 255 / 24%);
  --font: 'Onest', 'Helvetica Neue', Helvetica, sans-serif;
  --text: 16px;
  --body: 18px;
  --lead: 24px;
  --title: 32px;
  --heading: 40px;
  --display: 56px;
  --hero: 72px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --gutter: var(--space-3);
  --page-pad: var(--space-7);
  --max-width: 1440px;
  --radius: 0px;
  --studio-logo-width: 560px;
  --studio-logo-inline-offset: -6.264324%; /* Transparent left inset: 82 / 1309. */
  --navbar-logo-width: 64px;
  --duration: 200ms;
  --exit-duration: 130ms;
  --ease: cubic-bezier(.2,.6,.3,1);
  --hero-zoom-duration: 12s;
  --hero-zoom-scale: 1.08;
  --hero-reveal-delay: 400ms;
  --hero-reveal-duration: 1800ms;
  --hero-reveal-blur: 8px;
  --hero-reveal-ease: cubic-bezier(.65, 0, .25, 1);
  --loader-exit-duration: 200ms;
  --loader-progress-duration: 120ms;
  --loader-dot-duration: 1200ms;
  --loader-logo-width: 160px;
  --project-zoom-duration: 12s;
  --project-zoom-scale: 1.06;
  --header-bar-height: 104px;
  --header-height: calc(var(--header-bar-height) + 1px);
  --reveal-distance: 16px;
  --reveal-duration: 400ms;
  --reveal-stagger: 40ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-2)); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--text)/1.6 var(--font); }
body.dialog-open { overflow: hidden; }
.page-loader { font: 400 var(--text)/1.6 var(--font); transition: opacity var(--loader-exit-duration) ease-in; }
.is-finishing .page-loader { opacity: 0; }
.loader-center { display: grid; justify-items: center; gap: var(--space-3); }
.loader-center img { width: min(var(--loader-logo-width), 40vw); height: auto; filter: brightness(0) invert(1); }
.loader-label { display: flex; align-items: baseline; justify-content: center; letter-spacing: .04em; }
.loader-dots { display: inline-flex; width: 1.2em; text-align: left; }
.loader-dots span { display: block; width: .4em; animation: loader-dot-one var(--loader-dot-duration) step-end infinite; }
.loader-dots span:nth-child(2) { animation-name: loader-dot-two; }
.loader-dots span:nth-child(3) { animation-name: loader-dot-three; }
.loader-progress { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.loader-progress-fill { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--loader-progress, 0)); transform-origin: left; transition: transform var(--loader-progress-duration) linear; }
@keyframes loader-dot-one { 0%, 100% { opacity: 1; } }
@keyframes loader-dot-two { 0%, 32% { opacity: 0; } 33%, 100% { opacity: 1; } }
@keyframes loader-dot-three { 0%, 65% { opacity: 0; } 66%, 100% { opacity: 1; } }
.is-loading .hero::after, .is-finishing .hero::after,
.is-loading .project-slide::before, .is-finishing .project-slide::before { animation-play-state: paused; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
button { color: inherit; }
[hidden] { display: none !important; }
figure, p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.16; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
.container { width: min(100% - var(--page-pad) * 2, var(--max-width)); margin-inline: auto; }
.section { padding-block: var(--space-9); }
.section-heading { font-size: clamp(var(--title), 4vw, var(--display)); letter-spacing: -.025em; }
.section-label { font-size: var(--text); line-height: 1.5; font-weight: 500; }
.copy { font-size: var(--body); line-height: 1.65; max-width: 70ch; }
.muted { color: var(--muted); }
.inverse { background: var(--ink); color: var(--white); }
.inverse .muted { color: var(--inverse-muted); }
.arrow { width: 24px; height: 24px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; }
.link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; width: fit-content; border-bottom: 1px solid currentColor; font-weight: 500; white-space: nowrap; }
.link .arrow { transition: transform var(--duration) var(--ease); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-3); border: 1px solid transparent; background: var(--white); color: var(--ink); font-weight: 500; white-space: nowrap; }
.button-primary { background: var(--orange); color: var(--white); font-size: var(--lead); min-height: 72px; padding-inline: var(--space-4); }
.button-outline { background: transparent; border-color: currentColor; color: inherit; }
.button:disabled { cursor: wait; opacity: .65; }
.skip-link { position: fixed; top: var(--space-2); left: var(--space-3); transform: translateY(-200%); z-index: 30; background: var(--white); color: var(--ink); padding: var(--space-2); }
.skip-link:focus { transform: translateY(0); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: min(960px, 100svh); background: var(--ink); color: var(--white); }
.hero::after { content: ''; position: absolute; inset: 0; background: url('assets/images/hero-interior.jpg') center 48% / cover no-repeat; z-index: -3; pointer-events: none; transform-origin: center 48%; animation: hero-zoom var(--hero-zoom-duration) ease-in-out infinite alternate; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgb(36 36 36 / 64%); z-index: -1; pointer-events: none; }
/* Filter the existing photo directly so the wipe and slow zoom stay registered. */
.hero-reveal-mask { display: none; position: absolute; inset: 0; z-index: -2; pointer-events: none; transform: translateX(0); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-js .hero:not(.is-revealed) .hero-reveal-mask { display: block; -webkit-backdrop-filter: grayscale(1) blur(var(--hero-reveal-blur)); backdrop-filter: grayscale(1) blur(var(--hero-reveal-blur)); }
  .hero.is-revealing .hero-reveal-mask { animation: hero-color-reveal var(--hero-reveal-duration) var(--hero-reveal-ease) var(--hero-reveal-delay) both; }
}
@keyframes hero-color-reveal {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(var(--hero-zoom-scale)); }
}
.site-header { position: sticky; top: 0; z-index: 20; max-height: 100svh; overflow-y: auto; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--rule); transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.has-js .site-header { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); border-color: var(--inverse-rule); }
.has-js .hero { padding-top: var(--header-height); }
.has-js .site-header.is-scrolled, .has-js .site-header.is-menu-open { background: var(--white); color: var(--ink); border-color: var(--rule); }
.navbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); min-height: var(--header-bar-height); }
.navbar-logo { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.navbar-logo img { display: block; width: var(--navbar-logo-width); height: auto; }
.has-js .navbar-logo img { filter: brightness(0) invert(1); }
.has-js .site-header.is-scrolled .navbar-logo img, .has-js .site-header.is-menu-open .navbar-logo img { filter: none; }
.wordmark { display: inline-flex; align-items: baseline; gap: var(--space-1); font-size: var(--lead); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; white-space: nowrap; }
.wordmark .brand-period { color: var(--orange); font-size: var(--title); }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: var(--space-4); }
.desktop-nav a { position: relative; display: flex; align-items: center; min-height: 48px; font-size: var(--text); line-height: 1.4; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--duration) var(--ease); }
.desktop-nav a[aria-current='location']::after { transform: scaleX(1); }
.header-cta { min-height: 56px; }
.site-header.is-scrolled .header-cta, .site-header.is-menu-open .header-cta { background: var(--orange); color: var(--white); }
.reveal { opacity: 1; transform: translateY(0); transition: opacity var(--reveal-duration) var(--ease) var(--reveal-delay,0ms), transform var(--reveal-duration) var(--ease) var(--reveal-delay,0ms); }
.reveal.is-pending { opacity: 0; transform: translateY(var(--reveal-distance)); }
.service-row.reveal { transition: opacity var(--reveal-duration) var(--ease) var(--reveal-delay,0ms), transform var(--reveal-duration) var(--ease) var(--reveal-delay,0ms), background-color var(--service-color-duration) var(--ease), color var(--service-color-duration) var(--ease), border-color var(--service-color-duration) var(--ease); }
.reveal:focus-within { opacity: 1; transform: none; transition: none; }
.menu-toggle, .mobile-inquiry { display: none; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-7); padding-top: var(--space-9); padding-bottom: var(--space-7); min-height: 640px; }
.hero-type { max-width: 1120px; }
.hero-eyebrow { margin-bottom: var(--space-3); font-size: var(--text); font-weight: 500; }
.hero h1 { font-size: clamp(var(--heading), 5.3vw, var(--hero)); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; max-width: 1050px; }
.hero h1 > span { display: block; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-7); }
.hero-bottom .copy { max-width: 42ch; }
.hero-bottom .link { padding-bottom: var(--space-1); }
.clients { padding-block: var(--space-6) var(--space-7); border-bottom: 1px solid var(--rule); }
.clients-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.clients h2 { font-size: var(--text); font-weight: 500; }
.client-note { font-size: var(--text); color: var(--muted); }
.client-logos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; gap: var(--space-5); }
.client-logo { display: block; text-align: center; font-size: var(--lead); line-height: 1.2; font-weight: 700; color: var(--client-logo-color); }
.client-logo:first-child { text-align: left; letter-spacing: .08em; font-size: var(--text); }
.client-logo:nth-child(2) { font-weight: 600; letter-spacing: -.04em; }
.client-logo:last-child { text-align: right; font-size: var(--text); letter-spacing: .04em; }
.about-body { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: var(--space-7); align-items: start; }
.about-intro { min-width: 0; display: grid; gap: var(--space-4); }
.image-caption { margin-top: var(--space-2); color: var(--muted); font-size: var(--text); line-height: 1.5; }
.about-copy { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); }
.about-heading { display: grid; gap: var(--space-2); }
.about-heading .section-heading { max-width: 22ch; font-size: clamp(var(--title),3.3vw,var(--heading)); }
.about-intro .statement { max-width: 32ch; font-size: var(--lead); line-height: 1.5; letter-spacing: -.02em; }
.about-copy .copy { max-width: 60ch; }
.about-copy .link[href='#process'] { color: var(--orange); }
.about-scope { padding-top: var(--space-3); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text); font-weight: 500; }
.about-illustration { margin-top: var(--space-7); width: 100%; }
.about-illustration .od-media { width: 100%; height: auto; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-7); margin-bottom: var(--space-7); }
.section-top .copy { max-width: 40ch; }
.projects { --project-radius: var(--radius); --project-card-width: 384px; --project-slide-min: 640px; padding-bottom: var(--space-8); }
.project-carousel { --od-rail-pad: 0px; --od-gap: var(--space-3); align-items: stretch; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; user-select: none; }
.project-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.project-carousel > :last-child { margin-inline-end: 0; }
.project-slide { position: relative; isolation: isolate; overflow: clip; flex: 0 0 86%; display: flex; align-items: center; padding: var(--space-6); min-width: 0; min-height: var(--project-slide-min); border-radius: var(--project-radius); scroll-snap-align: start; background: var(--ink); }
.project-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--project-photo) center / cover no-repeat; opacity: .8; pointer-events: none; transform-origin: center; animation: project-zoom var(--project-zoom-duration) ease-in-out infinite alternate; }
@keyframes project-zoom {
  from { transform: scale(1); }
  to { transform: scale(var(--project-zoom-scale)); }
}
.project-slide-residential { --project-photo: url('assets/images/residential-study.jpg'); }
.project-slide-interior { --project-photo: url('assets/images/interior-study.jpg'); }
.project-slide-renovation { --project-photo: url('assets/images/renovation-study.jpg'); }
.project-slide-structure { --project-photo: url('assets/images/spatial-study.jpg'); }
.project-link { color: inherit; text-decoration: none; }
.project-card { display: flex; flex-direction: column; gap: var(--space-2); width: min(var(--project-card-width),100%); min-width: 0; padding: var(--space-3); border-radius: var(--project-radius); background: var(--white); color: var(--ink); }
.project-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); font-size: var(--text); line-height: 1.5; }
.project-category { font-weight: 500; }
.project-card-number { color: var(--muted); flex: none; }
.project-card img { border-radius: calc(var(--project-radius) / 2); pointer-events: none; }
.project-name { display: block; font-size: var(--lead); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.project-description { color: var(--muted); font-size: var(--text); line-height: 1.6; }
.project-card-action { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding-top: var(--space-1); border-top: 1px solid var(--rule); font-weight: 500; }
.project-card-action .arrow { color: var(--ink); transition: transform var(--duration) var(--ease); }
.project-carousel-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.project-carousel-hint { font-size: var(--text); color: var(--inverse-muted); }
.project-controls { display: flex; align-items: center; gap: var(--space-2); }
.project-position { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.project-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: var(--space-1); border: 1px solid var(--inverse-rule); background: transparent; color: var(--white); transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.project-arrow:disabled { cursor: default; opacity: .4; }
.project-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: var(--space-6); margin-top: var(--space-4); }
.project-index-link { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: var(--space-3); min-height: 80px; padding-block: var(--space-2); border-top: 1px solid var(--inverse-rule); }
.project-index-link > span:first-child { color: var(--inverse-muted); }
.project-index-link .od-field { --od-gap: var(--space-1); }
.project-index-link strong { font-size: var(--body); font-weight: 500; }
.project-index-link .project-meta { font-size: var(--text); color: var(--inverse-muted); }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--inverse-rule); }
.project-disclaimer { font-size: var(--text); color: var(--inverse-muted); max-width: 60ch; }
button.link { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; padding: 0; font-size: var(--text); }
.services .section-top { align-items: flex-start; }
.services { --service-color-duration: 280ms; }
.services-heading .section-label { display: block; margin-bottom: var(--space-2); }
.service-list { border-bottom: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: var(--space-5); align-items: start; padding: var(--space-5) var(--space-4); border-top: 1px solid var(--rule); background: var(--white); color: var(--ink); transition: background-color var(--service-color-duration) var(--ease), color var(--service-color-duration) var(--ease), border-color var(--service-color-duration) var(--ease); }
.service-row h3 { font-size: var(--lead); font-weight: 500; line-height: 1.3; }
.service-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); background: transparent; border: 0; padding: 0; min-height: 44px; width: 100%; text-align: left; font: inherit; color: inherit; }
.service-toggle .arrow { display: none; }
.service-content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.service-content p { max-width: 48ch; font-size: var(--text); line-height: 1.65; }
.service-inquiry { font-size: var(--text); }
.service-image { width: 100%; max-width: 224px; justify-self: end; }
.service-row:focus-within, .service-row.is-open { background: var(--ink); color: var(--white); border-color: var(--ink); }
.service-row .link { color: inherit; }
.service-row .arrow { transition: color var(--service-color-duration) var(--ease), transform var(--duration) var(--ease); }
.service-row:focus-within .arrow, .service-row.is-open .arrow { color: var(--orange); }
.process { background: var(--soft); }
.process .section-top .copy { max-width: 39ch; }
.process-list { border-top: 1px solid var(--rule); }
.process-step { display: grid; grid-template-columns: 2fr 4fr 6fr; align-items: start; gap: var(--gutter); padding-block: var(--space-5); border-bottom: 1px solid var(--rule); }
.step-number { display: block; color: var(--orange); font-size: var(--display); line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.process-step h3 { font-size: var(--title); padding-top: var(--space-1); }
.process-step p { padding-top: var(--space-1); max-width: 48ch; }
.principles-layout { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: var(--gutter); }
.principles-heading { grid-column: 1; }
.principles-heading .section-label { display: block; margin-bottom: var(--space-3); }
.principles-heading .section-heading { font-size: clamp(var(--title),3.3vw,var(--heading)); }
.principles-logo { width: min(100%,var(--studio-logo-width)); margin-top: var(--space-7); }
.principles-logo img { display: block; width: 100%; height: auto; transform: translateX(var(--studio-logo-inline-offset)); }
.principles-list { grid-column: 3; }
.principle { border-top: 1px solid var(--rule); padding-block: var(--space-4); }
.principle:first-child { padding-top: 0; border-top: 0; }
.principle:last-child { padding-bottom: 0; }
.principle h3 { font-size: var(--lead); margin-bottom: var(--space-2); font-weight: 500; }
.principle p { max-width: 56ch; font-size: var(--text); }
.contact { padding-block: var(--space-8) var(--space-7); }
.contact .section-label { display: block; margin-bottom: var(--space-3); }
.contact-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-7); margin-bottom: var(--space-7); }
.contact h2 { max-width: 20ch; }
.contact-head .copy { max-width: 48ch; margin-top: var(--space-4); color: var(--inverse-muted); }
.contact-channels { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); padding-block: var(--space-5); border-top: 1px solid var(--inverse-rule); }
.contact-channel { display: grid; gap: var(--space-1); }
.contact-channel dt { font-weight: 500; }
.contact-channel dd { color: var(--inverse-muted); font-size: var(--text); overflow-wrap: anywhere; }
.placeholder-note { font-size: var(--text); color: var(--inverse-muted); max-width: 65ch; }
.inquiry-panel { padding-block: var(--space-7); border-top: 1px solid var(--inverse-rule); }
.inquiry-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); }
.inquiry-header h3 { font-size: var(--title); }
.inquiry-header p { margin-top: var(--space-2); max-width: 64ch; color: var(--inverse-muted); }
.close-form { display: inline-flex; gap: var(--space-1); align-items: center; min-height: 44px; border: 0; background: transparent; color: var(--white); padding: 0; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); }
.form-field { display: grid; gap: var(--space-1); }
.form-field label { display: block; font-weight: 500; }
.form-field label span { color: var(--inverse-muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-height: 56px; border: 1px solid var(--inverse-rule); background: var(--ink); color: var(--white); padding: var(--space-2); border-radius: var(--radius); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--inverse-muted); }
.form-field select { color-scheme: dark; }
.form-field [aria-invalid='true'] { border-color: var(--orange); }
.form-field-full { grid-column: 1 / -1; }
.field-error { font-size: var(--text); }
.form-summary { border: 1px solid var(--orange); padding: var(--space-3); margin-bottom: var(--space-4); }
.form-summary ul { list-style: disc; padding-left: var(--space-3); margin-top: var(--space-1); }
.form-summary a { text-decoration: underline; text-underline-offset: 4px; }
.form-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-4); }
.form-actions p { color: var(--inverse-muted); max-width: 48ch; }
.draft-result { margin-top: var(--space-6); border-top: 1px solid var(--inverse-rule); padding-top: var(--space-5); }
.draft-result h3 { font-size: var(--lead); margin-bottom: var(--space-2); }
.draft-result p { color: var(--inverse-muted); }
.draft-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--white); margin: var(--space-4) 0; padding: var(--space-3); border: 1px solid var(--inverse-rule); }
.draft-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.copy-feedback { margin-top: var(--space-2); min-height: 24px; }
.site-footer { background: var(--ink); color: var(--white); padding-block: var(--space-4); }
.footer-inner { border-top: 1px solid var(--inverse-rule); padding-top: var(--space-4); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.footer-nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.copyright { font-size: var(--text); color: var(--inverse-muted); }
.project-dialog { width: min(960px, calc(100% - var(--space-6))); max-height: calc(100svh - var(--space-6)); margin: auto; padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: var(--radius); overflow-y: auto; }
.project-dialog::backdrop { background: rgb(36 36 36 / 80%); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; background: transparent; border: 0; padding: 0; }
.dialog-content { padding: var(--space-4); }
.dialog-content h2 { font-size: clamp(var(--title),4vw,var(--heading)); margin-bottom: var(--space-1); }
.dialog-meta { color: var(--muted); margin-bottom: var(--space-4); }
.dialog-content img { margin-bottom: var(--space-4); }
.dialog-content .copy { max-width: 70ch; }
.dialog-note { color: var(--muted); margin-top: var(--space-2); }
.dialog-content .link { margin-top: var(--space-4); }
@media (hover: hover) {
  .desktop-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .link:hover .arrow { transform: translate(4px,-4px); }
  .button:hover .arrow { transform: translate(4px,-4px); }
  .button .arrow { transition: transform var(--duration) var(--ease); }
  .project-link:hover .arrow { transform: translate(4px,-4px); }
  .project-link:hover .project-name { text-decoration: underline; text-underline-offset: 6px; }
  .project-arrow:not(:disabled):hover { background: var(--white); color: var(--ink); }
  .service-row:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .service-row:hover .arrow { color: var(--orange); }
  .footer-nav a:hover { border-color: var(--orange); }
  .close-form:hover, .dialog-close:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 1440px) {
  .hero-main { min-height: 704px; }
}
@media (max-width: 1199px) {
  .navbar { gap: var(--space-3); }
  .desktop-nav { gap: var(--space-3); }
  .header-cta { gap: var(--space-2); padding-inline: var(--space-2); }
  .service-row { grid-template-columns: 4fr 5fr 2fr; gap: var(--space-4); padding-inline: var(--space-3); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1023px) {
  :root { --page-pad: var(--space-4); --header-bar-height: 88px; }
  .section { padding-block: var(--space-8); }
  .navbar { grid-template-columns: 1fr auto; gap: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2); min-height: 48px; min-width: 88px; padding: 0; border: 0; background: transparent; color: inherit; }
  .header-cta { display: none; }
  .desktop-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; padding-block: var(--space-2) var(--space-3); gap: var(--space-2) var(--space-4); }
  .has-js .desktop-nav { display: none; }
  .has-js .desktop-nav.is-open { display: flex; }
  .mobile-inquiry { display: flex !important; }
  .hero-main { min-height: 640px; padding-top: var(--space-8); }
  .hero h1 { font-size: var(--display); max-width: 900px; }
  .hero-bottom { gap: var(--space-5); }
  .about-body { grid-template-columns: minmax(0,1fr); gap: var(--space-6); }
  .about-copy { max-width: 70ch; padding-top: 0; }
  .about-heading .section-heading { max-width: 26ch; }
  .about-intro .statement { max-width: 44ch; }
  .about-illustration { margin-top: var(--space-6); }
  .project-slide { padding: var(--space-4); }
  .service-row { grid-template-columns: 4fr 5fr; }
  .service-image { display: none; }
  .process-step { grid-template-columns: 1fr 3fr 4fr; }
  .process-step h3 { font-size: var(--lead); }
  .step-number { font-size: var(--heading); }
  .principles-layout { grid-template-columns: 5fr 7fr; gap: var(--space-6); }
  .principles-list { grid-column: 2; }
  .contact-head { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
}
@media (max-width: 767px) {
  :root { --page-pad: var(--space-3); --studio-logo-width: 320px; --navbar-logo-width: 56px; --header-bar-height: 80px; }
  .principles-logo { margin-top: var(--space-4); }
  .section { padding-block: var(--space-7); }
  .section-heading { font-size: var(--heading); }
  .hero { min-height: 100svh; }
  .hero-main { min-height: 600px; gap: var(--space-6); padding-block: var(--space-7) var(--space-5); }
  .hero h1 { font-size: clamp(var(--heading), 8vw, var(--display)); }
  .hero-eyebrow { max-width: 28ch; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .hero-bottom .copy { font-size: var(--text); max-width: 36ch; }
  .desktop-nav { flex-direction: column; align-items: stretch; gap: var(--space-1); padding-bottom: var(--space-4); }
  .desktop-nav a { min-height: 48px; }
  .clients { padding-block: var(--space-4) var(--space-5); }
  .clients-top { flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }
  .client-logos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4) var(--space-3); }
  .client-logo { text-align: left; font-size: var(--lead); }
  .client-logo:last-child { text-align: left; }
  .about-body { gap: var(--space-4); }
  .about-copy { gap: var(--space-3); }
  .about-intro { gap: var(--space-3); }
  .about-scope { column-gap: var(--space-3); }
  .section-top { flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-5); }
  .section-top .copy { max-width: 42ch; }
  .projects { --project-slide-min: 0px; }
  .project-carousel { --od-gap: var(--space-2); }
  .project-slide { flex-basis: calc(100% - var(--space-4)); padding: var(--space-2); align-items: flex-start; }
  .project-card { width: 100%; padding: var(--space-2); }
  .project-carousel-bar { flex-wrap: wrap; }
  .project-carousel-hint { flex: 1 1 100%; }
  .project-controls { margin-left: auto; }
  .project-index { grid-template-columns: minmax(0,1fr); }
  .project-name { font-size: var(--lead); }
  .project-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-3); }
  .service-row { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4) var(--space-2); }
  .service-row h3 { font-size: var(--lead); }
  .service-toggle { align-items: center; }
  .service-toggle .arrow { display: block; transition: transform var(--duration) var(--ease); }
  .service-row.is-open .service-toggle .arrow { transform: rotate(45deg); }
  .service-content { gap: var(--space-3); }
  .has-js .service-row:not(.is-open) .service-content { display: none; }
  .service-image { display: none; }
  .process-step { grid-template-columns: 48px 1fr; gap: var(--space-2) var(--space-3); padding-block: var(--space-4); }
  .process-step p { grid-column: 2; font-size: var(--text); padding-top: 0; }
  .step-number { font-size: var(--title); line-height: 1.3; }
  .process-step h3 { padding-top: 0; }
  .principles-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .principles-heading, .principles-list { grid-column: 1; }
  .principles-heading .section-heading { font-size: var(--heading); max-width: 18ch; }
  .principle { padding-block: var(--space-3); }
  .contact { padding-block: var(--space-7) var(--space-5); }
  .contact-head { margin-bottom: var(--space-5); }
  .contact h2 { max-width: 18ch; }
  .button-primary { font-size: var(--lead); width: 100%; min-height: 64px; padding-inline: var(--space-3); }
  .contact-channels { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); padding-block: var(--space-4); }
  .inquiry-panel { padding-block: var(--space-5); }
  .inquiry-header { flex-direction: column; gap: var(--space-2); }
  .form-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .form-actions { align-items: flex-start; }
  .form-actions > .button { width: 100%; }
  .form-field input, .form-field select, .form-field textarea { font-size: var(--text); }
  .draft-preview { padding: var(--space-2); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-2); padding-top: var(--space-3); }
  .footer-nav { grid-row: auto; grid-column: 1; gap: var(--space-1) var(--space-3); }
  .copyright { padding-top: var(--space-1); }
  .project-dialog { width: calc(100% - var(--space-4)); max-height: calc(100svh - var(--space-4)); }
  .dialog-top, .dialog-content { padding: var(--space-3); }
  .dialog-close span { display: none; }
}
@media (max-width: 374px) {
  .wordmark { font-size: var(--text); }
  .hero h1, .section-heading, .principles-heading .section-heading { font-size: var(--title); }
  .client-logo { font-size: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .hero:not(.is-revealed) .hero-reveal-mask { display: none; }
  .reveal, .reveal.is-pending { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .page-loader { display: none !important; }
  html.is-loading, html.is-finishing { overflow: visible; }
  .has-js .hero:not(.is-revealed) .hero-reveal-mask { display: none; }
  .site-header, .has-js .site-header { position: static; background: var(--white); color: var(--ink); max-height: none; overflow: visible; }
  .has-js .navbar-logo img { filter: none; }
  .has-js .hero { padding-top: 0; }
  .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; }
}
