:root {
  color-scheme: dark;
  --bg: #0a1118;
  --section: #101b26;
  --surface: #152230;
  --text: #f5f3ef;
  --muted: #c2cbd6;
  --subtle: #8492a6;
  --accent: #c5a880;
  --border: #1e3147;
  --header-bg: rgba(10, 17, 24, 0.88);
  --soft-fill: rgba(245, 243, 239, 0.035);
  --paper-line: color-mix(in srgb, var(--text) 14%, transparent);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --type-display-home: 2.25rem;
  --type-display-page: 2.25rem;
  --type-statement: clamp(2.1rem, 5vw, 4.9rem);
  --type-section: clamp(1.9rem, 3vw, 3rem);
  --type-card: clamp(1.45rem, 2.15vw, 2.05rem);
  --type-body-large: 1.125rem;
  --type-body: clamp(1rem, 1.1vw, 1.08rem);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --section: #f7f5f0;
  --surface: #fcfbf8;
  --text: #0a1118;
  --muted: #43505e;
  --subtle: #6a7684;
  --accent: #8f6f3e;
  --border: #e7dfd4;
  --header-bg: rgba(255, 255, 255, 0.92);
  --soft-fill: rgba(10, 17, 24, 0.025);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  width: min(100%, 1280px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 14px; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.025em; font-weight: 400; }
.brand-line, .eyebrow, .rail-label, .mini-label, .footer-kicker, .footer-place {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}
.brand-line { font-size: 10px; color: var(--accent); }
.desktop-nav { display: flex; gap: 28px; align-items: center; }
.desktop-nav a { font-size: 13px; letter-spacing: 0.025em; color: var(--muted); transition: color .25s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--accent); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.language-switch a {
  color: var(--muted);
  transition: color .25s ease;
}
.language-switch a:hover,
.language-switch a[aria-current="true"] {
  color: var(--accent);
}
.language-switch span {
  color: var(--subtle);
}
.theme-toggle {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.theme-toggle:hover { background: var(--soft-fill); }
.theme-icon { grid-area: 1 / 1; font-size: 16px; line-height: 1; transition: opacity .2s ease, transform .2s ease; }
html[data-theme="dark"] .theme-icon-light,
html[data-theme="light"] .theme-icon-dark { opacity: 0; transform: scale(.72); }
html[data-theme="dark"] .theme-icon-dark,
html[data-theme="light"] .theme-icon-light { opacity: 1; transform: scale(1); }
.header-cta, .cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--text);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.header-cta { font-size: 12px; padding: 9px 17px; border-color: rgba(197,160,89,.62); }
.header-cta:hover, .cta-pill:hover { background: var(--accent); color: var(--bg); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--text); margin: 5px 0; }
.mobile-menu { background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px; }
.mobile-menu nav { display: grid; gap: 18px; }
.mobile-menu a { font-family: var(--serif); font-size: 1.7rem; }
.mobile-menu .mobile-language-switch {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.mobile-menu .mobile-language-switch a,
.mobile-menu .mobile-language-switch span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-menu .mobile-language-switch span {
  color: var(--subtle);
}

.hero, .page-hero {
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--border);
}
.section { padding: clamp(68px, 9vw, 126px) 0; }
.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: block;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 98%, transparent), color-mix(in srgb, var(--bg) 82%, transparent)),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 34%);
}
.ghost-word {
  position: absolute;
  right: -2rem;
  top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26vw;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 960px;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero h1 { font-size: var(--type-display-home); }
.page-hero h1 { font-size: var(--type-display-page); }
.reveal-title .line-mask { display: block; overflow: hidden; }
.reveal-title .line { display: inline-block; }
.js .reveal-title .line {
  opacity: 0;
  transform: translateY(112%);
  animation: maskedLineIn 1.15s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(120ms + var(--line-index, 0) * 160ms);
}
@keyframes maskedLineIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 em, .page-hero h1 em, .hero-close em { color: var(--accent); font-style: italic; }
.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--type-body-large);
  font-weight: 300;
  line-height: 1.625;
}
.hero-copy { max-width: 672px; margin: 40px 0 0; }
.home-hero-copy { max-width: 46ch; }

/* English home hero: composed three-part thought */
.hero-home .ghost-word {
  color: color-mix(in srgb, var(--accent) 5%, transparent);
}
.home-title {
  max-width: 1100px;
}
.home-title-primary {
  margin-bottom: .08em;
}
.home-title-tension .line {
  color: var(--accent);
  font-style: italic;
  font-size: .8em;
  line-height: 1.08;
}
.home-hero-copy {
  max-width: 1100px;
  margin-top: clamp(36px, 4.6vw, 60px);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-copy.compact-copy { margin-top: 24px; }
.hero .cta-pill { margin-top: 34px; }
.eyebrow, .rail-label { color: var(--accent); font-size: 10px; margin: 0 0 36px; }
.mini-label { color: var(--subtle); font-size: 10px; }
.section-bone {
  background: var(--section);
  color: var(--text);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(140px, 320px) 1fr;
  gap: 56px;
}
h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 { font-size: var(--type-section); margin: 0 0 28px; }
h3 { font-size: var(--type-card); margin: 0 0 16px; }
.prose { max-width: 760px; }
.prose.large { max-width: 820px; }
.prose p, .prose li {
  color: var(--muted);
  font-weight: 300;
  font-size: var(--type-body);
}
.section-bone .prose p, .section-bone .prose li { color: var(--muted); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(197,168,128,.5); }
.quote-line {
  margin-top: 28px;
  color: var(--accent) !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
  line-height: 1.28;
}
.prose blockquote {
  margin: 34px 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--accent);
}
.prose blockquote p {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.32;
}
.prose blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.statement {
  width: min(100%, 1280px);
  margin: clamp(28px, 5vw, 64px) auto 0;
  padding: clamp(46px, 8vw, 90px) 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-statement);
  line-height: .98;
}

.work-card-grid, .related-grid, .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.work-card-grid article, .related-grid article, .two-col article {
  background: var(--surface);
  padding: clamp(28px, 5vw, 56px);
}
.standfirst { color: var(--accent) !important; font-family: var(--serif); font-style: italic; font-size: clamp(1.18rem, 1.35vw, 1.32rem) !important; line-height: 1.3; }
.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 34px;
  color: var(--accent);
  font-size: 14px;
  transition: color .25s ease;
}

.page-hero { background: var(--bg); }
.page-hero .eyebrow { margin-top: 28px; }
.interior-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  border-bottom: 0;
}
.interior-hero .eyebrow { margin: 0 0 36px; }
.interior-copy {
  max-width: 760px;
  margin-top: 54px;
}
.hero-quote {
  max-width: 760px;
  margin: 54px 0 0;
}
.hero-quote p {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.24;
}
.section-rule {
  width: 100%;
  height: 1px;
  margin-top: clamp(70px, 9vw, 112px);
  background: var(--border);
}
.interior-hero + .section {
  padding-top: clamp(42px, 5vw, 72px);
}
.hero-home + .section {
  padding-bottom: clamp(36px, 5vw, 72px);
}
.statement + .section {
  padding-top: clamp(42px, 5vw, 72px);
}
.contact-hero {
  padding-bottom: clamp(96px, 12vw, 156px);
}
.contact-flow {
  margin-top: clamp(48px, 7vw, 86px);
  max-width: 780px;
}
.contact-flow p {
  margin: 0 0 28px;
  font-size: var(--type-body-large);
  line-height: 1.55;
}
.contact-flow p:last-child {
  margin-bottom: 0;
}
.section-row .split-heading {
  align-items: start;
}
.section-row .rail-label {
  margin-top: 8px;
}
.section-row .prose {
  max-width: 780px;
}
.related-card-section {
  background: var(--bg);
  padding-top: clamp(80px, 9vw, 120px);
}
.quiet-grid {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  gap: 0;
}
.quiet-grid article {
  min-height: 250px;
  padding: 0;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  transition: background-color 300ms ease, color 300ms ease;
}
.quiet-grid article + article {
  border-left: 1px solid var(--border);
}
.related-card {
  display: flex;
  min-height: 250px;
  height: 100%;
  flex-direction: column;
  padding: clamp(28px, 5vw, 56px);
  transition: background-color 300ms ease, color 300ms ease;
}
.related-card:hover {
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 6%);
}
.related-card .standfirst,
.related-card .text-link {
  transition: color 300ms ease;
}
.related-card .text-link {
  color: var(--muted);
}
.related-card:hover .standfirst,
.related-card:hover .text-link {
  color: var(--accent) !important;
}
html[data-theme="light"] .quiet-grid article {
  background: #faf8f5;
}
html[data-theme="light"] .quiet-grid {
  background: #faf8f5;
}
html[data-theme="light"] .related-card:hover {
  background: #f3efea;
}
.quiet-grid h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 2vw, 2rem);
}
.quiet-grid .standfirst {
  max-width: 520px;
  color: var(--muted) !important;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem) !important;
}
.quiet-grid .text-link {
  margin-top: auto;
  padding-top: 48px;
}
.philip-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(48px, 11vw, 160px);
  align-items: center;
}
.philip-hero-grid .section-rule {
  grid-column: 1 / -1;
}
.portrait-frame {
  justify-self: center;
  width: min(100%, 300px);
  border: 1px solid var(--border);
  background: var(--soft-fill);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 25%;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(40px, 8vw, 88px);
  align-items: start;
}
.image-frame {
  border: 1px solid var(--border);
  background: var(--soft-fill);
  overflow: hidden;
}
.section-bone .image-frame { border-color: var(--paper-line); }
.image-frame img { width: 100%; height: auto; }
.lmu-section {
  padding-bottom: clamp(22px, 3.5vw, 48px);
}
.lmu-figure {
  margin: 0;
}
.lmu-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  object-position: center;
}
.lmu-figure figcaption {
  margin-top: 14px;
}
.external-link {
  display: inline-flex;
  gap: 8px;
  color: var(--accent);
  margin-top: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
}
.nyc-carousel {
  margin-top: 42px;
  border: 1px solid var(--border);
  background: var(--soft-fill);
}
.nyc-track {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  overflow-x: auto;
  padding: clamp(18px, 2.4vw, 28px);
  cursor: grab;
  scroll-snap-type: x proximity;
}
.nyc-card {
  flex: 0 0 clamp(270px, 40vw, 560px);
  margin: 0;
  color: var(--muted);
  scroll-snap-align: start;
}
.nyc-card.is-tall {
  flex-basis: clamp(220px, 26vw, 390px);
}
.nyc-card.is-tall .nyc-image-frame {
  height: clamp(390px, 42vw, 560px);
}
.nyc-image-frame {
  display: grid;
  align-items: center;
  justify-items: center;
  height: clamp(230px, 31vw, 380px);
  padding: clamp(12px, 1.6vw, 22px);
  border: 1px solid var(--border);
  background: #f7f3eb;
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms ease;
}
.nyc-card:hover .nyc-image-frame {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.nyc-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.nyc-card figcaption {
  display: block;
  margin-top: 14px;
}
.carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding: 16px;
}
.carousel-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.progress { height: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.progress span { display: block; height: 100%; width: 8%; background: var(--accent); }
.contact-email { font-size: clamp(1.35rem, 3.3vw, 2.8rem); color: var(--accent) !important; border: 0 !important; }

.site-footer {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: clamp(72px, 10vw, 130px) 24px 36px;
}
.footer-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr;
  gap: 56px;
}
.footer-brand { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.footer-kicker, .footer-place { color: var(--muted); font-size: 10px; }
.footer-email { display: inline-flex; margin-top: 0; color: var(--muted); }
.footer-links { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-bottom a { color: var(--muted); }
.footer-bottom {
  width: min(100%, 1280px);
  margin: 72px auto 0;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 920px) {
  .desktop-nav, .header-cta { display: none; }
  .site-header-inner {
    gap: 14px;
  }
  .site-header-inner > .language-switch {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .mobile-menu .mobile-language-switch {
    display: none;
  }
  .menu-toggle { display: block; }
  .brand-line { display: none; }
  .split-heading, .case-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .work-card-grid, .related-grid, .two-col { grid-template-columns: 1fr; }
  .quiet-grid article + article { border-left: 0; border-top: 1px solid var(--border); }
  .philip-hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: start; width: min(72vw, 280px); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .hero, .page-hero, .section { padding: 72px 0; }
  .home-title .line-mask {
    display: block;
  }
  .home-title .line-mask::after {
    content: none;
  }
  .home-title .line-mask {
    display: block;
    overflow: hidden;
  }
  .home-title .line-mask:first-child {
    margin-bottom: .18em;
  }
  .home-title .line-mask:nth-child(n + 2) .line {
    color: var(--accent);
    font-style: italic;
  }
  .home-title .line {
    display: inline-block;
  }
  .work-title .line-mask {
    display: inline;
    overflow: visible;
  }
  .work-title .line-mask::after {
    content: " ";
  }
  .work-title .line {
    display: inline;
  }
  .js .home-title .line,
  .js .work-title .line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 640px) {
  :root {
    --type-display-home: 3rem;
    --type-display-page: 3rem;
    --type-body-large: 1.25rem;
  }
  .wrap,
  .site-header-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
  .site-header-inner { min-height: 80px; }
  .brand-name { font-size: 24px; }
  .hero, .page-hero { padding: 128px 0 112px; }
  .statement { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1024px) {
  :root {
    --type-display-home: 3.75rem;
    --type-display-page: 3.75rem;
  }
  .wrap,
  .site-header-inner {
    padding-left: 48px;
    padding-right: 48px;
  }
  .hero, .page-hero { padding: 144px 0 128px; }
  .statement { padding-left: 48px; padding-right: 48px; }
}

.js .reveal-block {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 820ms cubic-bezier(.22, 1, .36, 1), transform 820ms cubic-bezier(.22, 1, .36, 1);
}
.js .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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