/* Olive anchors the page, sage identifies actions and ivory supports reading. */
body[data-page="home"] {
  --night: #19221a;
  --olive: #4b5b43;
  --forest: #24352b;
  --sage: #cad8b7;
  --sage-hover: #dce5cd;
  --brass: #bda477;
  --ivory: #f5f1e9;
  --cream: #fbf9f4;
  --ink: #1b251d;
  --paper: var(--cream);
  --muted: #525b50;
  --line: #d9ddd1;
  --focus: var(--forest);
}

.site-header, .hero-evidence, .project-media, .principles-section, .video-dialog, .footer {
  --focus: var(--sage);
}

.site-header .languages a,
.mobile-nav a,
.footer .languages a {
  color: #c6cec0;
  opacity: 1;
}

.site-header .languages a[aria-current],
.footer .languages a[aria-current] {
  color: var(--sage);
}

.site-header .languages a:hover,
.mobile-nav a:hover,
.footer .languages a:hover {
  color: var(--ivory);
}

.intro, .footer {
  background: var(--night);
}

.hero-evidence {
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 80% 113% at 78% 54%, var(--olive), #2b3a2b 56%, transparent 91%),
    var(--night);
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-art, .hero-reflection {
  position: absolute;
  transition: transform .72s cubic-bezier(.22, .7, .24, 1);
}

.hero-art {
  inset: -12% -10% -12% -16%;
  background: url('/assets/hero-olive-glass.jpg') center / cover no-repeat;
  opacity: .77;
  transform: translate3d(var(--hero-art-shift, 0px), 0, 0);
}

.hero-reflection {
  inset: 12% -8% -21% 37%;
  background: radial-gradient(ellipse at 58% 45%, color-mix(in srgb, var(--brass) 26%, transparent), transparent 61%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--hero-art-shift, 0px) * 1.9), 0, 0);
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #19221aee, #19221ab8 34%, #19221a39 59%, transparent 82%),
    linear-gradient(180deg, #19221a7d, transparent 31%, transparent 83%, #19221a8a);
}

.hero-evidence:has(.hero-actions .button:is(:hover, :focus-visible)) { --hero-art-shift: -24px; }
.hero-evidence:has(.hero-actions .quiet-link:is(:hover, :focus-visible)) { --hero-art-shift: 29px; }

.hero-evidence .hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(490px, 64vh, 595px);
  padding-block: clamp(60px, 6.6vw, 95px);
}

.hero-evidence .hero-copy,
html[lang="en"] .hero-evidence .hero-copy {
  width: min(100%, 660px);
  min-width: 0;
  pointer-events: auto;
}

.hero-evidence h1 {
  font-size: clamp(2.05rem, 3.85vw, 3.7rem);
  font-weight: 550;
  line-height: 1.23;
  letter-spacing: -.055em;
}

html[lang="en"] .hero-evidence h1 {
  font-size: clamp(2.15rem, 4.05vw, 3.8rem);
  line-height: 1.14;
}

html[lang="zh-Hans"] .hero-evidence h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  letter-spacing: -.04em;
}

.hero-evidence .hero-lead {
  max-width: 29em;
  margin-top: 23px;
  color: #d4dbcf;
  font-size: 1rem;
  line-height: 1.8;
}

html[lang="ko"] .hero-evidence .hero-lead {
  word-break: keep-all;
}

.hero-evidence .hero-actions {
  gap: 12px 24px;
  margin-top: 29px;
}

.hero-evidence .button.light {
  background: var(--sage);
  color: #172118;
}

.hero-evidence .button.light:hover {
  background: var(--sage-hover);
}

.hero-evidence .quiet-link {
  min-height: 44px;
  color: #dde2d7;
  border-color: #9aab94;
}

.hero-evidence .quiet-link:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}

.brand-film-button {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  bottom: clamp(30px, 5vw, 62px);
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 5px 15px 5px 5px;
  border: 1px solid #a4b09a;
  border-radius: 99px;
  color: var(--ivory);
  background: #19251ee8;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color .22s ease, border-color .22s ease;
}

.brand-film-button:is(:hover, :focus-visible) {
  border-color: var(--sage);
  background: #344539;
}

.brand-film-play {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--sage);
}

.brand-film-play::before {
  content: '';
  width: 10px;
  height: 13px;
  margin-inline-start: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-film-duration {
  color: #d5decd;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.project-media {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  align-self: start;
  justify-self: end;
  width: min(100%, 530px);
  min-width: 0;
  padding: clamp(12px, 2vw, 23px);
  overflow: hidden;
  border-radius: 5px;
  background: #233127;
  color: var(--ivory);
}

.project-media::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -18%;
  background: radial-gradient(ellipse at 53% 45%, #56684c, transparent 66%);
  transform: translateX(var(--gallery-light-shift, 0px));
  transition: transform .62s ease;
  pointer-events: none;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dde5d146;
  line-height: 1.55;
}

.media-heading {
  display: block;
  color: var(--ivory);
  font-size: .875rem;
  font-weight: 600;
  word-break: keep-all;
}

.media-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--sage);
}

.media-controls button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  border: 1px solid #84937a;
  border-radius: 3px;
  background: #131b16db;
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.media-controls button:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--night);
}

.media-page {
  min-width: 34px;
  color: #d4dbcf;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.media-stage {
  --card-width: 46%;
  position: relative;
  min-width: 0;
  aspect-ratio: 1.16;
  perspective: 800px;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.reel-trigger {
  position: absolute;
  z-index: var(--card-layer, 5);
  top: 50%;
  left: 50%;
  display: block;
  width: var(--card-width);
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  transform: translate(calc(-50% + var(--card-offset, 0%)), -50%)
    rotateY(var(--card-turn, 0deg)) scale(var(--card-scale, 1));
  border: 1px solid #ebf0df48;
  border-radius: 5px;
  background: var(--forest);
  box-shadow: 0 10px 24px #0a120e70;
  color: var(--ivory);
  text-align: left;
  transition: transform .52s cubic-bezier(.22, .7, .24, 1), border-color .18s ease;
}

.reel-trigger[data-slot="0"] {
  border-color: #e3ecc281;
  box-shadow: 0 18px 38px #0b140fa8;
}

.reel-trigger:is([data-slot="-1"], [data-slot="1"]) {
  --card-scale: .85;
  --card-layer: 3;
  --card-shade: .11;
}

.reel-trigger:is([data-slot="-2"], [data-slot="2"]) {
  --card-scale: .68;
  --card-layer: 1;
  --card-shade: .23;
}

.reel-trigger[data-slot="-2"] {
  --card-offset: -74%;
  --card-turn: 31deg;
}

.reel-trigger[data-slot="-1"] {
  --card-offset: -39.5%;
  --card-turn: 23deg;
}

.reel-trigger[data-slot="1"] {
  --card-offset: 39.5%;
  --card-turn: -23deg;
}

.reel-trigger[data-slot="2"] {
  --card-offset: 74%;
  --card-turn: -31deg;
}

.reel-trigger:is(:hover, :focus-visible) {
  border-color: var(--sage);
}

.reel-trigger:focus-visible {
  outline-offset: -4px;
}

.reel-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.055);
}

.reel-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a140ecc, transparent 30%),
    rgb(14 23 15 / var(--card-shade, 0));
  pointer-events: none;
}

.reel-label, .reel-play {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.reel-trigger[data-slot="0"] :is(.reel-label, .reel-play) {
  opacity: 1;
  transition-delay: .16s;
}

.reel-label {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 7px;
  bottom: 10px;
  color: white;
  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.reel-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(40px, 5.1vw, 56px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #f5f1e9b0;
  border-radius: 50%;
  background: #111613cc;
  color: white;
}

.reel-play::before {
  content: '';
  width: 12px;
  height: 15px;
  margin-left: 3px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.experience-band, .work-section {
  background: var(--ivory);
}

.experience-band {
  border-bottom: 1px solid var(--line);
}

.experience-inner {
  padding-block: clamp(52px, 7vw, 94px);
}

.experience-inner h2 {
  margin-bottom: 26px;
}

.project {
  display: grid;
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
  padding-block: 32px;
  border-top: 1px solid #c9d1c1;
  min-width: 0;
}

.project-with-media {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
}

.project-category {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.project h3 {
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
}

.project-summary {
  max-width: 37rem;
  margin-top: 12px;
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 14px;
  margin-block: 22px;
}

.project-facts > div {
  display: grid;
  grid-template-columns: minmax(85px, .29fr) 1fr;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.75;
}

.project-facts dd {
  color: var(--muted);
}

.project-sources summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 12px;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 122px), 1fr));
  column-gap: 12px;
}

.source-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-block: 9px;
  border-bottom: 1px solid #cad0c1;
  color: var(--forest);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.source-link span {
  min-width: 0;
}

.source-link:hover {
  border-color: currentColor;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.media-current-source {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 7px 14px;
  flex-wrap: wrap;
  border-top: 1px solid #afbea075;
  color: var(--ivory);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.media-current-source span:first-child {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.media-current-source:hover span:first-child {
  color: var(--ivory);
}

.fit-evidence {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(48px, 6.7vw, 95px);
}

.fit-evidence .criteria {
  margin-top: 0;
}

.fit-evidence .criteria > div {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding-block: 22px;
}

.fit-evidence .criteria dt, .fit-evidence .criteria dd {
  font-size: 1rem;
}

.fit-evidence .scope-note {
  margin-top: 23px;
  font-size: .875rem;
}

.service-enquiry {
  min-height: 44px;
  margin-top: 3px;
  padding-inline: 0;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-enquiry:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.sample-nav button[aria-selected="true"] {
  color: var(--forest);
}

.sample-nav button[aria-selected="true"]::after {
  background: var(--forest);
}

.principles-section {
  color: var(--ivory);
  background: var(--forest);
}

.principles-section .founder-description,
.principles-section .founder-name,
.principles-section .founder-statement blockquote,
.principles-section .principles p {
  color: #dce2d7;
}

.enquiry-dialog {
  border: 1px solid var(--line);
  background: var(--cream);
}

.enquiry-dialog .dialog-close {
  background: #e8ece0;
}

.enquiry-dialog .dialog-close:hover {
  background: #dce5d4;
}

.contact-copy .button,
.enquiry-dialog .form-fields .button,
.enquiry-dialog .result-actions .send-email {
  background: var(--forest);
  color: #fff;
}

.contact-copy .button:hover,
.enquiry-dialog .form-fields .button:hover,
.enquiry-dialog .result-actions .send-email:hover {
  background: #354b3c;
}

.video-dialog {
  width: min(510px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #1b251e;
  color: var(--ivory);
  overscroll-behavior: contain;
  box-shadow: 0 20px 120px #0008;
}

.video-dialog::backdrop {
  background: #080e0bc9;
  backdrop-filter: blur(10px);
}

.brand-film-dialog {
  width: min(940px, calc(100% - 28px));
}

.brand-film-dialog .video-dialog-header {
  align-items: center;
}

.brand-film-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #121b16;
  border-radius: 3px;
}

.film-fallback {
  margin-top: 12px;
  font-size: .875rem;
}

.video-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.video-dialog h2 {
  font-size: 1.125rem;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.video-dialog .video-close {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  background: #384a3e;
  flex-shrink: 0;
}

.video-close:hover {
  background: #476251;
}

.video-close svg {
  width: 100%;
  height: 100%;
}

.video-host {
  min-width: 0;
  min-height: 160px;
  max-height: 62dvh;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  scrollbar-gutter: stable;
}

.video-host .instagram-media, .video-host iframe {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

.video-host blockquote {
  color: #222;
  padding: 22px;
  line-height: 1.6;
}

.video-host blockquote a {
  text-decoration: underline;
}

.video-notice, .video-status {
  color: #d5dfd2;
  font-size: .8125rem;
  line-height: 1.65;
}

.video-notice {
  margin-top: 14px;
}

.video-status {
  margin-bottom: 10px;
}

.video-source {
  display: inline-block;
  margin-top: 13px;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--sage);
  font-size: .875rem;
}

.video-source:hover {
  color: var(--ivory);
}

.source-preview {
  display: block;
  width: auto;
  max-height: 51dvh;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .fit-evidence .criteria > div {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 800px) {
  .hero-evidence .hero-inner {
    display: block;
    min-height: 0;
    padding-block: clamp(42px, 7vw, 57px) clamp(174px, 31vw, 242px);
  }

  .hero-art {
    inset: 27% -16% -9% -21%;
    background-position: 75% 60%;
    mask-image: linear-gradient(180deg, transparent 1%, black 36%);
    transform: translate3d(calc(var(--hero-art-shift, 0px) * .65), 0, 0);
  }

  .hero-reflection {
    inset: 50% -28% -10% 15%;
  }

  .hero-atmosphere::after {
    background: linear-gradient(180deg, #19221a 6%, #19221ac4 34%, #19221a34 62%, #19221a47);
  }

  .hero-evidence h1 {
    font-size: clamp(1.78rem, 6.3vw, 3.35rem);
  }

  html[lang="en"] .hero-evidence h1 {
    font-size: clamp(1.95rem, 6.75vw, 3.5rem);
  }

  html[lang="zh-Hans"] .hero-evidence h1 {
    font-size: clamp(2.05rem, 7vw, 3.5rem);
  }

  .project-with-media, .fit-evidence {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .project-media {
    justify-self: start;
    width: min(100%, 510px);
  }

  .fit-evidence h2 {
    font-size: 2rem;
  }

  .fit-evidence .scope-note {
    margin-top: 16px;
  }

  .fit-evidence .criteria > div {
    grid-template-columns: 135px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-film-button {
    bottom: 25px;
  }
  .hero-evidence .hero-lead {
    margin-top: 18px;
    line-height: 1.7;
  }

  .hero-evidence .hero-actions {
    gap: 8px 17px;
    margin-top: 22px;
  }

  .hero-evidence .quiet-link {
    font-size: .875rem;
  }

  .media-caption {
    column-gap: 8px;
  }

  .reel-label {
    left: 8px;
    bottom: 8px;
    font-size: .8125rem;
  }

  .experience-inner h2 {
    font-size: 1.5rem;
  }

  .source-link {
    min-height: 44px;
  }

  .fit-evidence .criteria > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-block: 18px;
  }

  .video-dialog {
    width: calc(100% - 16px);
    padding: 18px;
  }

  .video-host {
    max-height: 58dvh;
  }

  .video-dialog-header {
    gap: 12px;
  }

  .video-dialog h2 {
    font-size: 1rem;
  }

}

@media (max-width: 360px) {
  html[lang="en"] .hero-evidence .hero-actions {
    gap: 8px 14px;
  }

  html[lang="en"] .hero-evidence .hero-actions .button {
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-reflection, .project-media::before {
    transform: none;
    transition: none;
  }

  .reel-trigger,
  .reel-trigger :is(.reel-label, .reel-play),
  .reel-trigger[data-slot="0"] :is(.reel-label, .reel-play) {
    transition: none;
  }
}

@media print {
  .hero-atmosphere, .brand-film-button, .project-media, .video-dialog {
    display: none !important;
  }

  .hero-evidence .hero-inner {
    display: block;
    padding: 20px 0;
  }

  .hero-evidence, .work-section, .principles-section, .experience-band {
    color: #000;
    background: #fff;
  }

  .hero-evidence .hero-lead,
  .principles-section .founder-description,
  .principles-section .founder-name,
  .principles-section .founder-statement blockquote,
  .principles-section .principles p {
    color: #333;
  }

  .project-with-media {
    grid-template-columns: minmax(0, 1fr);
  }

}
