/* Christelle Issa Interiors — design tokens + components. See DESIGN.md. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
/* metric-matched fallbacks (measured vs. the web fonts) so the swap causes no layout shift */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 87.2%;
  ascent-override: 105.5%;
  descent-override: 33.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 94%;
  ascent-override: 105.3%;
  descent-override: 33%;
  line-gap-override: 0%;
}

:root {
  /* palette — brand values from the original site, deepened only where contrast required it */
  --linen: #f5f2ef;
  --paper: #fbf9f7;
  --sand: #ece6df;
  --line: #ded9d3;
  --ink: #2e2e2e;
  --ink-soft: #5e5a55;
  --taupe: #baa18c;        /* decorative only: 2.2:1 on linen */
  --taupe-deep: #7d6450;   /* text accent: 4.9:1 on linen */
  --espresso: #2a2420;
  --on-dark: #f5f2ef;
  --on-dark-soft: #b8aea5; /* 7:1 on espresso */
  --error: #a3362a;

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --section: clamp(5rem, 11vw, 9.5rem);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--taupe-deep);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--taupe); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--linen);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-deep);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--taupe); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em { font-style: italic; color: var(--taupe-deep); }
.on-dark .display em { color: var(--taupe); }

.h2 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }

.lede {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--linen);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 450ms var(--ease-out);
}
.btn:hover { background: var(--espresso); border-color: var(--espresso); }
.btn:active { transform: translate(var(--mx, 0px), calc(var(--my, 0px) + 1px)); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }

.btn[disabled] { opacity: 0.5; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 400ms var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 242, 239, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  min-height: 44px;
  justify-content: center;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.wordmark__tag {
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { min-height: 44px; padding: 0 1.4rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 320ms var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--linen);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms var(--ease-out), visibility 0s;
}
.mobile-menu ol { counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu li a::before {
  content: "0" counter(m);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--taupe-deep);
}
.mobile-menu__foot {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.mobile-menu__foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: clamp(3rem, 7vh, 6rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 7vh, 6rem) max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero__title {
  font-size: clamp(3.5rem, 7.4vw, 7.25rem);
  line-height: 0.94;
}
.hero__title span { display: block; }
/* padding/negative margin give italic overhang room inside the mask */
.hero__title .line { overflow: hidden; padding: 0 0.12em 0.1em; margin: 0 -0.12em -0.1em; }
.hero__role {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.75rem;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__facts div { display: grid; gap: 0.15rem; }
.hero__facts dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__facts dd {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.2;
}
.stat-count { font-variant-numeric: tabular-nums; }

.hero__media {
  position: relative;
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  background: var(--sand);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.js .hero__media img { animation: hero-settle 2400ms var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.12); } }
.hero__media figcaption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(42, 36, 32, 0.72);
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter) 3rem; gap: 1.5rem; }
  .hero__media { aspect-ratio: 4 / 3; min-height: 0; margin-inline: var(--gutter); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--espresso); color: var(--on-dark); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__title { display: grid; gap: 1.25rem; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.about__portrait {
  position: relative;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.about__portrait::before {
  content: "";
  position: absolute;
  inset: 2.5rem -2.5rem -2.5rem 2.5rem;
  border: 1px solid var(--taupe);
}
.about__portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.about__copy { display: grid; gap: 1.75rem; }
.about__copy p { color: var(--ink-soft); max-width: 36em; }
.about__copy p.about__intro {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--ink);
}
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.disciplines li {
  padding: 1.25rem 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.disciplines li span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--taupe-deep);
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 340px; margin-inline: 0 2.5rem; }
}
@media (max-width: 480px) {
  .disciplines { grid-template-columns: 1fr; }
  .disciplines li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- work ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
}
.work__item { grid-column: span 4; }
.work__item--8 { grid-column: span 8; }
.work__item--6 { grid-column: span 6; }

.work__link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}
.work__frame {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  height: var(--h, clamp(260px, 30vw, 440px));
}
.work__item--tall .work__frame { --h: clamp(320px, 42vw, 620px); }
.work__item--mid .work__frame { --h: clamp(280px, 34vw, 500px); }

.work__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.work__link:hover img,
.work__link:focus-visible img { transform: scale(1.04); }

.work__view {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--linen);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.work__link:hover .work__view,
.work__link:focus-visible .work__view { opacity: 1; transform: none; }

.work__caption {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
}
.work__caption::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.6rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.work__link:hover .work__caption::after,
.work__link:focus-visible .work__caption::after { transform: scaleX(1); }

/* follower label over project images — fine pointers only, created by main.js */
.cursor-view { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; }
.cursor-view span {
  display: block;
  padding: 0.7rem 1.1rem;
  background: var(--linen);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 400ms var(--ease-out), opacity 250ms var(--ease-out);
}
.cursor-view.is-on span { transform: translate(-50%, -50%); opacity: 1; }
.has-cursor .work__frame { cursor: none; }
.has-cursor .work__link:hover .work__view { opacity: 0; }
.work__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--taupe-deep);
}
.work__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}
.work__type {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (hover: none) { .work__view { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .work__item, .work__item--8, .work__item--6 { grid-column: span 6; }
  .work__item--8, .work__item:last-child { grid-column: span 12; }
  .work__frame, .work__item--tall .work__frame, .work__item--mid .work__frame { height: auto; aspect-ratio: 4 / 3; }
  .work__item--portrait .work__frame { aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .work__item, .work__item--8, .work__item--6, .work__item:last-child { grid-column: auto; }
}

/* ---------- approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 242, 239, 0.18);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--taupe);
}
.step__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--taupe);
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
}
.step p { color: var(--on-dark-soft); font-size: 1rem; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 4vw, 3rem); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
}

.approach__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 242, 239, 0.18);
}
.approach__cta p {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
}
.section--dark .btn { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.section--dark .btn:hover { background: var(--taupe); border-color: var(--taupe); }

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact__intro { display: grid; gap: 1.75rem; }
.contact__list { display: grid; margin-top: 1rem; border-top: 1px solid var(--line); }
.contact__list li { border-bottom: 1px solid var(--line); }
.contact__list a,
.contact__list .contact__static {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  text-decoration: none;
}
.contact__list .label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__list .value { font-size: 1rem; overflow-wrap: anywhere; }
.contact__list .go { color: var(--taupe-deep); transition: transform var(--dur) var(--ease-out); }
.contact__list a:hover .go { transform: translateX(4px); }
.contact__list a:hover .value { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
}
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field label .req { color: var(--taupe-deep); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid #b9b1a8;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232e2e2e' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 0.25rem center / 12px 8px no-repeat;
  padding-right: 1.75rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error { min-height: 0; font-size: 0.8125rem; color: var(--error); }
.field__error:empty { display: none; }
.field__hint { font-size: 0.8125rem; color: var(--ink-soft); }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.form__note { font-size: 0.8125rem; color: var(--ink-soft); max-width: 26em; }
.form__note a { text-underline-offset: 3px; }
.form__status { grid-column: 1 / -1; font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }

.form__success {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}
.form__success h3 { font-family: var(--serif); font-size: 2rem; font-weight: 300; line-height: 1.15; }
.form__success p { color: var(--ink-soft); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .contact__list a, .contact__list .contact__static { grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding-block: 0.9rem; }
  .contact__list .label { grid-column: 1 / -1; }
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-top .wordmark__name { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.footer-top p { margin-top: 1rem; color: var(--ink-soft); max-width: 24em; }
.footer-col h2 {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1a1613;
  color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(26, 22, 19, 0.6); }
.lightbox[open] { animation: lb-in 280ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: 1rem var(--gutter) 1.5rem;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.lightbox__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 200ms var(--ease-out);
}
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.lightbox__title { font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 300; }
.lightbox__nav { display: flex; gap: 0.5rem; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 242, 239, 0.3);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.icon-btn:hover { background: rgba(245, 242, 239, 0.1); border-color: var(--on-dark); }
.icon-btn:focus-visible { outline-color: var(--taupe); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- legal pages ---------- */

.legal { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 var(--section); }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin: 1.25rem 0 1rem; }
.legal h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; margin: 2.75rem 0 0.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.draft-note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 2px solid var(--taupe); background: var(--paper); font-size: 0.9375rem; }

/* ---------- reveal (JS adds .js to <html>; content is visible without it) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.d-1 { --d: 100ms; } .d-2 { --d: 200ms; } .d-3 { --d: 300ms; } .d-4 { --d: 400ms; }

/* hero title: lines rise out of a mask instead of fading */
.js .hero__title.reveal { opacity: 1; transform: none; }
.js .hero__title .line > span {
  transform: translateY(120%);
  transition: transform 1200ms var(--ease-out) var(--d, 0ms);
}
.js .hero__title .line + .line > span { transition-delay: calc(var(--d, 0ms) + 140ms); }
.js .hero__title.is-in .line > span { transform: none; }

/* hairlines draw in after their block arrives */
.js .eyebrow.reveal::before,
.js .step.reveal::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1000ms var(--ease-out) calc(var(--d, 0ms) + 300ms);
}
.js .eyebrow.reveal.is-in::before,
.js .step.reveal.is-in::before { transform: none; }
.section--dark .lede { color: var(--on-dark-soft); }

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