@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e9e2d5;
  --ink: #25241f;
  --muted: #726f65;
  --line: rgba(37, 36, 31, .18);
  --rust: #a34c32;
  --gold: #d6aa58;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.is-locked { overflow: hidden; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

.site-header {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 86px; padding: 18px clamp(22px, 5.2vw, 82px); background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; font: 600 14px var(--serif); }
.brand-name { font: 600 18px var(--serif); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2.2vw, 36px); }
.nav-link { position: relative; padding: 10px 0; color: #58564f; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--rust); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--rust); }
.nav-link[aria-current="page"]::after, .nav-link:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; padding: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 5px; background: currentColor; }

.hero { position: relative; display: flex; min-height: min(790px, calc(100svh - 86px)); align-items: flex-end; overflow: hidden; background: #6b341e; color: white; }
.flow-section { scroll-margin-top: 86px; scroll-snap-align: start; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 19, 14, .66) 0%, rgba(25, 19, 14, .28) 42%, rgba(25, 19, 14, .02) 100%), linear-gradient(0deg, rgba(20, 14, 9, .24), transparent 56%); content: ''; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.hero-copy { position: relative; max-width: 750px; padding: clamp(38px, 8vw, 110px); }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 500 clamp(54px, 10vw, 132px)/.95 var(--serif); letter-spacing: -.055em; }
.hero-intro { max-width: 420px; margin: 25px 0 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.65); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-cta span { font-size: 19px; transition: transform .2s ease; }
.hero-cta:hover span { transform: translateX(5px); }
.hero-index { position: absolute; right: clamp(22px, 5.2vw, 82px); bottom: 42px; font: 12px var(--serif); letter-spacing: .14em; }

.page { min-height: calc(100svh - 86px); padding: clamp(42px, 7vw, 96px) clamp(22px, 8vw, 128px) 100px; animation: reveal .35s ease both; }
.page-heading { display: grid; grid-template-columns: 1fr minmax(220px, 390px); align-items: end; gap: 30px; margin: 0 0 44px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.page-heading .eyebrow { grid-column: 1 / -1; margin: 0; color: var(--rust); }
.page-heading h1 { margin: 0; font: 500 clamp(42px, 7vw, 82px)/1 var(--serif); letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.subnav { display: flex; flex-wrap: wrap; gap: 9px; margin: -12px 0 32px; }
.subnav-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .06em; transition: .2s ease; }
.subnav-button:hover, .subnav-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; gap: clamp(14px, 2vw, 28px); }
.work-card { grid-column: span 4; margin: 0; }
.work-card:nth-child(3n + 2) { margin-top: 56px; }
.work-card:nth-child(3n) { margin-top: 20px; }
.work-image-wrap { position: relative; overflow: hidden; background: var(--paper-deep); cursor: zoom-in; }
.work-image { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.work-card:nth-child(4n + 1) .work-image { aspect-ratio: 4 / 5.5; }
.work-card:nth-child(4n + 2) .work-image { aspect-ratio: 1 / 1.15; }
.work-card:nth-child(4n + 3) .work-image { aspect-ratio: 4 / 5; }
.work-image-wrap:hover .work-image { transform: scale(1.035); }
.play-badge { position: absolute; right: 16px; bottom: 16px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(30,27,23,.55); color: white; font-size: 13px; }
.work-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 2px 0; }
.work-caption strong { font: 500 17px var(--serif); }
.work-caption span { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.empty-note { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }

.about-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.4fr); gap: clamp(38px, 9vw, 140px); align-items: start; }
.about-aside { position: sticky; top: 30px; }
.about-aside img { width: 100%; max-height: 520px; object-fit: cover; object-position: center; }
.about-aside p { margin: 13px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.about-photo-main img { display: block; height: 420px; }
.about-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.about-photo-pair img { display: block; height: 150px; }
.about-copy h2, .contact-details h2, .process-note h2 { margin: 0 0 18px; font: 500 30px var(--serif); }
.about-copy p { margin: 0 0 17px; color: #4b4942; font-size: 15px; line-height: 1.85; }
.cv { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.cv h2 { font-size: 25px; }
.cv-list { margin: 0; padding: 0; list-style: none; }
.cv-list li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(37,36,31,.09); font-size: 13px; line-height: 1.6; }
.cv-list time { color: var(--rust); font-weight: 700; }
.exhibitions { margin-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.exhibitions h3 { margin: 0 0 8px; color: var(--ink); font: 500 21px var(--serif); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
.contact-art { position: relative; min-height: 400px; overflow: hidden; background: var(--paper-deep); }
.contact-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.contact-details { padding-top: 12px; }
.contact-details > p { max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-list { margin: 32px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; flex-direction: column; gap: 5px; padding: 17px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { width: fit-content; font: 500 20px var(--serif); transition: color .2s ease; }
.contact-list a:hover { color: var(--rust); }
.contact-note { margin-top: 30px; padding: 18px; background: var(--paper-deep); color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-location { width: fit-content; color: var(--ink) !important; font: 500 20px var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; }

.project-gallery .work-card { grid-column: span 6; }
.project-gallery .work-image { aspect-ratio: 16 / 10; }
.process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.process-gallery .work-card { grid-column: span 6; }
.process-gallery .work-card:nth-child(3n + 2), .process-gallery .work-card:nth-child(3n) { margin-top: 0; }
.process-gallery .work-image { aspect-ratio: 4 / 3; }
.process-note { padding: clamp(24px, 4vw, 48px); background: var(--paper-deep); }
.process-note p { color: #58564f; font-size: 14px; line-height: 1.8; }
.process-note .techniques { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.technique { padding: 8px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.technique-button { background: transparent; cursor: pointer; font: inherit; }
.technique-button:hover, .technique-button:focus-visible { border-color: var(--rust); color: var(--ink); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px clamp(22px, 5.2vw, 82px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: var(--ink); }
.lightbox { position: fixed; z-index: 10; inset: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: 50px minmax(0, 1fr); align-items: center; justify-items: center; padding: 18px; background: rgba(20,18,15,.94); color: white; }
.lightbox[hidden] { display: none; }
.lightbox-close { grid-column: 3; grid-row: 1; justify-self: end; width: 42px; height: 42px; background: transparent; color: white; cursor: pointer; font-size: 28px; }
.lightbox-arrow { z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: white; cursor: pointer; font-size: 22px; }
.lightbox-arrow.prev { grid-column: 1; grid-row: 2; }
.lightbox-arrow.next { grid-column: 3; grid-row: 2; }
.lightbox-figure { grid-column: 2; grid-row: 2; display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; margin: 0; }
.lightbox-figure img, .lightbox-figure video { display: block; max-width: 100%; max-height: calc(100vh - 108px); object-fit: contain; }
.lightbox-figure figcaption { margin-top: 12px; color: rgba(255,255,255,.7); font: 16px var(--serif); }
.lightbox-figure video { width: min(100%, 1200px); }

.textile-detail { position: fixed; z-index: 8; inset: 0; overflow-y: auto; background: var(--paper); }
.textile-detail[hidden] { display: none; }
.textile-detail-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(242,238,229,.96); backdrop-filter: blur(12px); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.detail-back { padding: 10px 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; letter-spacing: 0; }
.detail-back:hover { color: var(--rust); }
.textile-detail-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(34px, 6vw, 92px); max-width: 1600px; margin: 0 auto; padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 72px) 90px; }
.textile-detail-content.detail-text-only { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.detail-text-only .detail-side-column { max-width: 820px; }
.detail-main-column { min-width: 0; }
.detail-main-trigger { position: sticky; top: 96px; display: block; width: 100%; padding: 0; overflow: hidden; background: var(--paper-deep); cursor: zoom-in; text-align: left; }
.detail-main-trigger img { display: block; width: 100%; max-height: calc(100svh - 160px); object-fit: contain; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; padding: 10px 12px; background: rgba(25,24,21,.75); color: white; font-size: 10px; letter-spacing: .05em; }
.detail-side-column { padding-top: 16px; }
.detail-side-column > .eyebrow { color: var(--rust); }
.detail-side-column h1 { margin: 0 0 28px; font: 500 clamp(38px, 5vw, 68px)/1.05 var(--serif); letter-spacing: -.04em; }
.detail-thumbnails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-thumb { padding: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.detail-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); transition: opacity .2s ease; }
.detail-thumb:hover img { opacity: .78; }
.detail-thumb[aria-pressed="true"] img { outline: 2px solid var(--rust); outline-offset: 2px; }
.detail-thumb span { display: block; padding-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.detail-no-thumbs { padding: 16px; background: var(--paper-deep); color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-description { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-description h2 { margin: 0 0 10px; font: 500 26px var(--serif); }
.detail-description p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.detail-metadata { margin: 26px 0 0; }
.detail-metadata div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(37,36,31,.12); font-size: 12px; }
.detail-metadata dt { color: var(--muted); }
.detail-metadata dd { margin: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 74px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% - 1px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(37,36,31,.08); }
  .nav-link::after { bottom: 8px; right: auto; width: 46px; }
  .hero { min-height: calc(100svh - 74px); }
  .page { min-height: calc(100svh - 74px); }
  .flow-section { scroll-margin-top: 74px; }
  .page-heading { grid-template-columns: 1fr; gap: 18px; }
  .page-heading .eyebrow { grid-column: auto; }
  .about-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; max-width: 420px; }
  .process-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-image { object-position: 54% center; }
  .hero::before { background: linear-gradient(90deg, rgba(25,19,14,.64), rgba(25,19,14,.14)), linear-gradient(0deg, rgba(20,14,9,.3), transparent 65%); }
  .hero-copy { padding: 32px 25px 64px; }
  .hero h1 { font-size: clamp(54px, 17vw, 92px); }
  .hero-intro { max-width: 300px; font-size: 13px; }
  .hero-index { right: 24px; bottom: 27px; }
  .page { padding: 46px 22px 72px; }
  .page-heading { margin-bottom: 30px; }
  .gallery { gap: 24px 12px; }
  .work-card { grid-column: span 6; }
  .work-card:nth-child(3n + 2), .work-card:nth-child(3n) { margin-top: 0; }
  .work-caption { display: block; }
  .work-caption span { display: block; margin-top: 5px; }
  .project-gallery .work-card, .process-gallery .work-card { grid-column: span 12; }
  .project-gallery .work-card:nth-child(even) { margin-top: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-art { min-height: 280px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .lightbox { grid-template-columns: 38px minmax(0,1fr) 38px; padding: 8px; }
  .lightbox-arrow { width: 34px; height: 34px; }
  .textile-detail-bar { min-height: 62px; padding: 10px 16px; }
  .textile-detail-bar > span { font-size: 8px; }
  .detail-back { font-size: 12px; }
  .textile-detail-content { grid-template-columns: 1fr; gap: 24px; padding: 20px 18px 48px; }
  .detail-main-trigger { position: relative; top: auto; }
  .detail-main-trigger img { max-height: 60svh; }
  .detail-side-column { padding-top: 0; }
  .detail-side-column h1 { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
