/* ===================== Tokens ===================== */
:root {
  --bg:        oklch(0.918 0.012 92);   /* main warm paper */
  --bg-light:  oklch(0.975 0.006 92);   /* work / services */
  --stage:     oklch(0.88 0.01 92);     /* hero image bg */
  --tile:      oklch(0.9 0.01 92);       /* tile placeholder bg */
  --stage2:    oklch(0.93 0.008 92);    /* viewer image bg */

  --ink:       oklch(0.33 0.016 92);     /* body text */
  --olive:     oklch(0.44 0.038 95);     /* headings / accent */
  --muted:     oklch(0.52 0.02 92);      /* meta */
  --muted-2:   oklch(0.42 0.018 92);     /* soft body */
  --dash:      oklch(0.62 0.03 95);      /* list em dash */

  --line:      oklch(0.82 0.012 92);     /* section dividers */
  --line-soft: oklch(0.8 0.012 92);      /* input underlines */
  --line-2:    oklch(0.83 0.012 92);     /* chip borders */
  --line-3:    oklch(0.87 0.01 92);      /* services hairlines */

  --on-olive:  oklch(0.97 0.008 92);     /* text on olive */

  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); overflow-x: hidden; max-width: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.55; }
::selection { background: var(--olive); color: oklch(0.95 0.01 92); }

@keyframes viDrift { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.6%, -1.4%, 0); } }
@keyframes viRise  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.italic-lower { font-style: italic; text-transform: none; }

/* Shared: index label in left column of sections */
.idx { grid-column: 1 / span 2; font-size: 12.5px; color: var(--muted); }

/* Underlined text link + button */
.underline-link { font-size: 13px; border-bottom: 1px solid currentColor; }
.link-btn {
  appearance: none; background: none; border: 0; padding: 0 0 1px;
  font-family: var(--sans); font-size: 13px; color: inherit; cursor: pointer;
  border-bottom: 1px solid currentColor;
}
.link-btn:hover { opacity: 0.55; }

/* ===================== Hero ===================== */
.hero {
  position: relative; height: 100vh; min-height: 660px;
  display: grid; grid-template-columns: minmax(0, 1fr) 42vw;
}
.hero__panel {
  position: relative; display: flex; flex-direction: column;
  justify-content: space-between; padding: 28px 44px 26px 34px;
}
.hero__topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.brand { font-size: 12.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--olive); }
.brand__logo { height: 28px; width: auto; max-width: 190px; display: block; }
.nav { display: flex; gap: 22px; font-size: 13px; }
.nav__link.is-current { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.hero__meta { display: flex; gap: 48px; font-size: 13px; line-height: 1.5; margin-top: 40px; }
.hero__metaline { margin-top: 6px; }
.hero__note { max-width: 28ch; color: var(--muted-2); }

.hero__foot { margin-top: auto; }
.hero__title {
  position: relative; z-index: 4; margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(54px, 7.6vw, 118px); line-height: 0.82; letter-spacing: 0.01em;
  color: var(--olive); text-transform: uppercase; text-wrap: balance;
}
.hero__cta {
  position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px;
}
.hero__copyline { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; font-size: 12px; color: var(--muted); }

.hero__stage { position: relative; overflow: hidden; background: var(--stage); }
.hero__layer {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 1.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__layer.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.hero__layer img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  animation: viDrift 24s ease-in-out infinite alternate;
}

/* ===================== Work ===================== */
.work { background: var(--bg-light); padding: 80px 34px 90px; }
.work__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
  align-items: end; margin-bottom: 42px;
}
.work__title {
  grid-column: 1 / span 6; margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 86px); line-height: 0.9; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--olive);
}
.work__filters {
  grid-column: 6 / span 7; justify-self: end;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.filter {
  appearance: none; cursor: pointer; padding: 6px 0; border: 0; background: none;
  color: var(--muted); border-bottom: 1px solid transparent; transition: all 0.3s ease;
}
.filter.is-active { color: var(--olive); border-bottom-color: var(--olive); }
.filters--kind .filter { font-family: var(--sans); font-size: 12.5px; }
.filters--session .filter { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 17px; padding: 4px 0; }

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.tile { margin: 0; cursor: pointer; }
.tile__frame { position: relative; overflow: hidden; background: var(--tile); }
.tile__frame img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.tile:hover .tile__frame img { filter: saturate(1.06); transform: scale(1.03); }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; font-size: 12px; color: var(--muted); }
.tiles__empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); font-size: 14px; }
.tiles__more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 34px; }
.tiles__more .link-btn { font-size: 12.5px; letter-spacing: 0.04em; color: var(--olive); }

/* ===================== About ===================== */
.about {
  background: var(--bg); padding: 90px 34px 94px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start;
}
.about__lede {
  grid-column: 3 / span 6; margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4.2vw, 68px); line-height: 1.0; color: oklch(0.4 0.032 95); text-wrap: pretty;
}
.about__body { grid-column: 3 / span 4; margin-top: 44px; }
.about__body p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; }
.about__portrait {
  grid-column: 10 / span 3; grid-row: 1 / span 3;
  position: relative; aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(135deg, oklch(0.89 0.012 92) 0 9px, oklch(0.935 0.008 92) 9px 18px);
  display: flex; align-items: flex-end; padding: 16px;
}
.about__portrait span { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--muted); }

/* ===================== Quotes ===================== */
.quotes {
  background: var(--bg); padding: 96px 34px 104px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start;
}
.quote { grid-column: 3 / span 8; margin: 0; }
.quote__text {
  margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 3.9vw, 64px); line-height: 1.08; color: oklch(0.4 0.032 95); text-wrap: pretty;
}
.quote__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px;
}
.quote__ticks { display: flex; gap: 6px; }
.tick {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  width: 24px; height: 2px; background: var(--line); transition: background 0.4s ease;
}
.tick.is-active { background: var(--olive); }

/* ===================== Services ===================== */
.services { background: var(--bg-light); padding: 84px 34px 96px; }
.services__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: end; margin-bottom: 44px;
}
.services__title {
  grid-column: 3 / span 8; margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 86px); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; color: var(--olive);
}
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: oklch(0.87 0.01 92);
}
.service {
  background: var(--bg-light); padding: 30px 26px 34px;
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
}
.service__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.service__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.0; text-transform: uppercase; color: var(--olive);
}
.service__text { margin: 0; font-size: 14px; line-height: 1.65; }
.service__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted-2); }
.service__list li { display: flex; gap: 10px; }
.service__list li span:first-child { color: var(--dash); }
.service__price {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-3);
  font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; color: var(--olive);
}

/* ===================== Inquiry ===================== */
.inquiry {
  background: var(--bg); padding: 92px 34px 100px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start;
}
.inquiry__intro { grid-column: 3 / span 4; }
.inquiry__title {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.4vw, 74px); line-height: 0.9; text-transform: uppercase; color: var(--olive);
}
.inquiry__intro p { margin: 26px 0 0; max-width: 34ch; font-size: 14.5px; line-height: 1.7; }
.inquiry__form { grid-column: 8 / span 5; }
.inquiry__contact { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 14px; }
.inquiry__email {
  font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3vw, 44px); line-height: 1.1;
  color: var(--olive); border-bottom: 1px solid var(--line); padding-bottom: 8px; align-self: flex-start;
}

.form { display: flex; flex-direction: column; gap: 22px; }
.form__types { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip {
  appearance: none; cursor: pointer; font-family: var(--sans); font-size: 12.5px;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); transition: all 0.3s ease;
}
.type-chip.is-active { border-color: var(--olive); background: var(--olive); color: var(--on-olive); }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  padding: 8px 0; font-family: var(--sans); font-size: 15px; color: var(--ink); outline: none;
}
.field textarea { line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--olive); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form__submit {
  align-self: flex-start; appearance: none; cursor: pointer; font-family: var(--sans); font-size: 13px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--olive);
  background: var(--olive); color: var(--on-olive); transition: opacity 0.3s ease;
}
.form__submit:hover { opacity: 0.78; }
.form__submit:disabled { opacity: 0.6; cursor: default; }
.form__error { margin: 0; font-size: 13px; line-height: 1.6; color: oklch(0.5 0.09 40); }
.form__note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted-2); }

.form-done { padding: 40px 0; border-top: 1px solid var(--line); }
.form-done__head {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 3vw, 44px); color: var(--olive);
}
.form-done p { margin: 14px 0 0; font-size: 14px; color: var(--muted-2); }

/* ===================== Footer ===================== */
.footer { background: var(--bg); padding: 90px 34px 26px; }
/* Mirrors the About section: idx (1-2) · big statement (3-8) · body (3-6) · right block (10-12) */
.footer__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; padding-bottom: 60px; }
.footer__title { grid-column: 3 / span 6; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 86px); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; color: var(--olive); }
.footer__title .italic-lower { text-transform: uppercase; }
.footer__text { grid-column: 3 / span 4; margin: 30px 0 0; max-width: 34ch; font-size: 14.5px; line-height: 1.7; }
.footer__contact { grid-column: 9 / span 4; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 16px; }
.footer__mail {
  font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15; color: var(--olive); overflow-wrap: anywhere;
}
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
}
.footer__brand { letter-spacing: 0.3em; text-transform: uppercase; }

/* ===================== Viewer (lightbox) ===================== */
.viewer {
  position: fixed; inset: 0; z-index: 95; background: var(--bg-light);
  animation: viRise 0.4s cubic-bezier(0.22,1,0.36,1) both;
  display: grid; grid-template-rows: auto 1fr auto;
}
.viewer[hidden] { display: none; }
.viewer__top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 34px 14px; }
.viewer__ident { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.viewer__ident .muted { font-size: 12.5px; }
.viewer__title { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 46px); line-height: 1; text-transform: uppercase; color: var(--olive); }
.viewer__body { display: grid; grid-template-columns: 1fr minmax(200px, 260px); gap: 26px; padding: 0 34px; min-height: 0; }
.viewer__stage { position: relative; min-height: 0; background: var(--stage2); overflow: hidden; }
.viewer__stage img { width: 100%; height: 100%; object-fit: contain; }
.viewer__hit { position: absolute; top: 0; bottom: 0; width: 26%; appearance: none; border: 0; background: none; opacity: 0; }
.viewer__hit--prev { left: 0; cursor: w-resize; }
.viewer__hit--next { right: 0; cursor: e-resize; }
.viewer__side { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow: auto; }
.viewer__note { margin: 0; font-size: 14px; line-height: 1.7; }
.viewer__side .muted { font-size: 12.5px; }
.viewer__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.viewer__thumb {
  appearance: none; border: 0; padding: 0; cursor: pointer; aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--stage2); opacity: 0.4; transition: opacity 0.3s ease;
}
.viewer__thumb.is-active { opacity: 1; }
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 34px 22px; font-size: 12px; color: var(--muted); }
.viewer__sessions { display: flex; gap: 22px; }
.viewer__sessions .link-btn { font-size: 12.5px; color: var(--ink); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  /* Mobile hero: nav → rotating photo → meta → title (photo is shown, not hidden) */
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero__panel { display: contents; }
  .hero__topbar { order: 1; padding: 24px 22px 0; flex-wrap: wrap; row-gap: 12px; }
  .hero__topbar .nav { gap: 16px; flex-wrap: wrap; }
  .hero__stage { order: 2; display: block; width: 100%; aspect-ratio: 4 / 5; margin: 22px 0; }
  .hero__meta { order: 3; padding: 0 22px; margin-top: 0; }
  .hero__foot { order: 4; padding: 0 22px 30px; margin-top: 18px; }

  .work, .services, .footer { padding-left: 22px; padding-right: 22px; }
  .work__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .work__title { grid-column: 1 / -1; }
  .work__filters { grid-column: 1 / -1; justify-self: start; align-items: flex-start; }
  .filters { justify-content: flex-start; }

  .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile { grid-column: auto !important; margin-top: 0 !important; }

  .about { grid-template-columns: 1fr; padding: 64px 22px; }
  .idx { grid-column: 1 / -1; }
  .about__lede, .about__body { grid-column: 1 / -1; }
  .about__body { margin-top: 20px; }
  .about__portrait { grid-column: 1 / -1; grid-row: auto; max-width: 260px; margin-top: 24px; }

  .quotes { grid-template-columns: 1fr; padding: 64px 22px; }
  .quote { grid-column: 1 / -1; }

  .services__head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .services__title { grid-column: 1 / -1; }
  .services__grid { grid-template-columns: 1fr; }

  .inquiry { grid-template-columns: 1fr; padding: 64px 22px; }
  .inquiry__intro, .inquiry__form, .inquiry__contact { grid-column: 1 / -1; }
  .inquiry__form, .inquiry__contact { margin-top: 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 14px; }
  .footer__title { grid-column: 1 / -1; }
  .footer__text { grid-column: 1 / -1; margin-top: 14px; }
  .footer__contact { grid-column: 1 / -1; grid-row: auto; margin-top: 26px; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 18px; }

  .viewer__body { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr) auto; overflow: auto; }
  .viewer__side { overflow: visible; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__layer { transition: opacity 0.6s ease; transform: none; }
  .hero__layer.is-active { transform: none; }
  .hero__layer img { animation: none; }
  .viewer { animation: none; }
}
