/* Shandy Tan · site styles
   Palette from her moodboard. --text, --bg, --soft, --accent come from the CMS theme. */
:root {
  --text: #333333;
  --bg: #ffffff;
  --soft: #f7f5f3;
  --accent: #b8a6a1;
  --muted: color-mix(in srgb, var(--text) 78%, var(--bg));
  --line: color-mix(in srgb, var(--accent) 45%, var(--bg));
  --field: #8c8480;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hdr-h: 96px;
  --hdr-h-small: 64px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--hdr-h-small) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--sans);
  padding-top: var(--hdr-h);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  border: 0 !important; white-space: nowrap !important;
}

/* Type */
.eyebrow { font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.sec-title {
  font: 300 clamp(2.4rem, 4.4vw, 3.6rem)/1.1 var(--serif);
  text-align: center; letter-spacing: .02em;
}
.sec-title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--accent); margin: 26px auto 0; }
.sec-intro { max-width: 600px; margin: 22px auto 0; text-align: center; color: var(--muted); }
.meta { display: block; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.ph-tag {
  display: inline-block; margin-top: 10px; padding: 2px 10px;
  font: 500 .6875rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: #6f625e; border: 1px dashed var(--accent);
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 30px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-sm { min-height: 40px; padding: 10px 20px; }
.link {
  background: none; border: 0; padding: 4px 0; text-decoration: none;
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); transition: border-color .3s;
}
.link:hover { border-color: var(--text); }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.hdr-row { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.hdr-logo { flex: none; display: block; transform-origin: left center; }
.hdr-logo img { width: clamp(170px, 17vw, 240px); }
.hdr-nav { margin-left: auto; }
.hdr-nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.hdr-nav a, .ftr-bot a {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; background: linear-gradient(var(--text), var(--text)) left bottom / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.hdr-nav a:hover { background-size: 100% 1px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 0; }
.burger i { display: block; width: 24px; height: 1px; background: var(--text); margin: 7px auto; }
@media (max-width: 1180px) {
  .hdr-nav, .hdr-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 72px; --hdr-h-small: 60px; }
  .hdr-logo img { width: 168px; }
}

/* Header shrinks over the first 120px of scroll (scroll-driven, decorative) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes hdr-shrink { to { height: var(--hdr-h-small); border-bottom-color: var(--line); } }
    @keyframes logo-shrink { to { scale: .82; } }
    .hdr { animation: hdr-shrink linear both; animation-timeline: scroll(block root); animation-range: 0 120px; }
    .hdr-logo { animation: logo-shrink linear both; animation-timeline: scroll(block root); animation-range: 0 120px; }
  }
}

/* Mobile menu */
.menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 24px var(--gutter); background: var(--bg); color: var(--text);
}
.menu[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; }
.menu:modal { overscroll-behavior: contain; }
.menu::backdrop { background: var(--bg); overflow: hidden; overscroll-behavior: contain; }
.menu-close { position: absolute; top: 12px; right: var(--gutter); }
.menu-close button { min-height: 48px; padding: 0 4px; background: none; border: 0; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }
.menu-logo { width: 180px; }
.menu nav ul { display: grid; gap: 14px; text-align: center; }
.menu nav a { font: 300 2rem/1.2 var(--serif); text-decoration: none; }

/* Motion: gentle fade-up and slow image reveal, tied to scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .hero-img img { animation: hero-zoom 2.6s var(--ease) both; }
  @keyframes hero-zoom { from { scale: 1.06; } }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-up { from { opacity: 0; translate: 0 28px; } }
    @keyframes reveal { from { clip-path: inset(0 0 100% 0); } }
    .fade { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .reveal-img img { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}

/* Sections */
.sec { padding-block: clamp(88px, 12vw, 160px); }
.sec-soft { background: var(--soft); }

/* Hero: text beside the photo, never on top of it */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 80px); padding-block: clamp(32px, 5vw, 64px) clamp(72px, 9vw, 120px);
}
.hero-txt h1 { margin-top: 22px; font: 300 clamp(2.6rem, 4.6vw, 4.4rem)/1.08 var(--serif); }
.hair { display: block; width: 56px; height: 1px; background: var(--accent); margin: 32px 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero-img { overflow: hidden; background: var(--soft); }
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cap-row { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-top: 14px; font-size: .875rem; color: var(--muted); }
.cap-row em { font: italic 400 1.05rem/1.4 var(--serif); color: var(--text); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-fig { order: -1; }
  .hero-img img { aspect-ratio: 4 / 5; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-img { overflow: hidden; background: var(--soft); }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.roles { margin: 26px 0 30px; }
.roles li { font: 300 clamp(2rem, 3.4vw, 2.9rem)/1.2 var(--serif); }
.about-txt > p, .more p { margin-top: 18px; max-width: 60ch; }
.more { margin-top: 28px; }
.more summary {
  display: inline-block; cursor: pointer; list-style: none; padding: 4px 0;
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--accent);
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 4px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Video */
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #111; overflow: hidden; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease), opacity .4s; }
.yt:hover img { scale: 1.03; }
.yt-inline { max-width: 1040px; margin: 56px auto 0; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent); transition: scale .4s var(--ease);
}
.yt-play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; translate: 3px 0;
  border-left: 16px solid var(--text); border-block: 10px solid transparent;
}
.yt:hover .yt-play { scale: 1.08; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(20px, 2.8vw, 40px); margin-top: 64px; }
.vid .yt-play { width: 56px; height: 56px; }
.vid .meta { margin-top: 18px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.vid h3 { margin-top: 6px; font: 400 1.35rem/1.3 var(--serif); }
@media (max-width: 980px) { .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vids { grid-template-columns: 1fr; } }

.vmodal { margin: auto; width: min(1100px, 100% - 32px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.vmodal:modal { overscroll-behavior: contain; }
.vmodal::backdrop { background: rgb(20 20 20 / .9); overflow: hidden; overscroll-behavior: contain; }
.vmodal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal form { display: flex; justify-content: flex-end; }
.vmodal-x { min-height: 44px; background: none; border: 0; color: #fff; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }

/* Portfolio: photos with captions below, then text lists separated by hairlines */
.pf-jump { margin-top: 44px; }
.pf-jump ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.pf-jump a { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); padding: 4px 0; }
.pf-jump a:hover { border-color: var(--text); }
.pf-group { margin-top: clamp(72px, 9vw, 120px); }
.pf-h {
  display: flex; align-items: center; gap: 24px; justify-content: center; text-align: center;
  font: 500 .8125rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase;
}
.pf-h::before, .pf-h::after { content: ""; flex: 0 1 80px; height: 1px; background: var(--accent); }
.pf-photos { columns: 3 280px; column-gap: clamp(20px, 2.8vw, 40px); margin-top: 48px; }
.pf-item { break-inside: avoid; margin-bottom: 44px; }
.pf-img { overflow: hidden; background: color-mix(in srgb, var(--accent) 15%, var(--bg)); }
.pf-img img { width: 100%; }
.pf-item figcaption { margin-top: 14px; }
.pf-title { display: block; font: 400 1.25rem/1.3 var(--serif); }
.pf-item .meta { margin-top: 4px; }
.pf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); margin-top: 24px; }
.pf-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.pf-list .meta { margin-top: 2px; }
@media (max-width: 700px) { .pf-list { grid-template-columns: 1fr; } }

/* Clients */
.clients { max-width: 1000px; margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: center; font: 400 clamp(1.25rem, 2vw, 1.6rem)/2 var(--serif); }
.clients li { white-space: nowrap; }
.clients li + li::before { content: "·"; margin-inline: .7em; color: var(--accent); }

/* Testimonials */
.quotes { columns: 2 380px; column-gap: clamp(32px, 6vw, 96px); margin-top: 64px; }
.quote { break-inside: avoid; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.quote blockquote p { font: 400 clamp(1.2rem, 1.6vw, 1.4rem)/1.55 var(--serif); }
.quote .pull { font: italic 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.35 var(--serif); margin-bottom: 16px; }
.js .quote blockquote.clamp.folded p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.js .quote blockquote.folded:not(.clamp) { display: none; }
.q-more { margin-top: 14px; }
.quote figcaption { margin-top: 22px; }
.q-name { display: block; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.quote .meta { margin-top: 4px; }

/* Contact form */
.contact { max-width: 820px; }
.contact-h { margin-top: 18px; text-align: center; font: 300 clamp(2.4rem, 4.4vw, 3.6rem)/1.1 var(--serif); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin-top: 56px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
.hint { font-size: .875rem; color: var(--muted); }
.form input:not([type="checkbox"], [type="radio"]), .form select, .form textarea {
  font: inherit; font-size: max(1rem, 1em); color: var(--text); background: var(--bg);
  min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form :is(input, select, textarea):focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.field .check, .check { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }
.err-msg { display: none; font-size: .875rem; color: #a3261b; }
.form :is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) { border-color: #a3261b; border-width: 2px; }
.form :is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) ~ .err-msg { display: block; }
.form-go { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 40px; text-align: center; }
.form-status p { padding: 24px 0; border-block: 1px solid var(--line); font: 400 1.35rem/1.5 var(--serif); }
.form-status .err { color: #a3261b; }
.form-status strong { font-weight: 500; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 72px 0 32px; text-align: center; }
.ftr-logo { width: min(320px, 80%); margin-inline: auto; }
.social { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .3s; }
.social a:hover { background: var(--soft); }
.social svg { width: 18px; height: 18px; }
.ftr-bot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 640px) { .ftr-bot { justify-content: center; } }

/* Journal */
.journal { max-width: 860px; }
.journal-list { margin-top: 64px; }
.journal-list li { padding: 32px 0; border-top: 1px solid var(--line); }
.journal-list h2 { font: 400 1.9rem/1.25 var(--serif); }
.journal-list a { text-decoration: none; }
.article { max-width: 760px; }
.article h1 { font: 300 clamp(2.4rem, 5vw, 3.8rem)/1.1 var(--serif); text-align: center; }
.article-body { margin-top: 48px; }
.article-body :is(p, ul, ol) { margin-top: 1.1em; }
.article-body h2 { margin-top: 1.8em; font: 400 1.9rem/1.25 var(--serif); }
.article-body h3 { margin-top: 1.6em; font: 500 1.1rem/1.4 var(--sans); }
.article-body ul { list-style: disc; padding-left: 1.2em; }
.article-body ol { padding-left: 1.2em; }
.article-body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.article-body img { margin-top: 1.5em; width: 100%; }
.journal-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.journal-item:not(:has(.journal-cover)) { grid-template-columns: 1fr; }
.journal-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .journal-item { grid-template-columns: 1fr; gap: 14px; } }
.article-cover { margin-top: 48px; width: 100%; }
.article-body blockquote { margin-top: 1.4em; border-left: 2px solid var(--accent); padding-left: 18px; font: italic 400 1.4rem/1.5 var(--serif); }
.article-cta { margin-top: 64px; text-align: center; }
