:root {
  --smoked: #221c17;
  --walnut: #4e3626;
  --travertine: #ddd8cf;
  --plaster: #ebe8e2;
  --brass: #9c8458;
  --brass-deep: #6c5830;
  --ink: #2a241f;
  --muted: #5a5249;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; }
/* Light brass only where the background is dark, so the ring keeps 3:1 contrast. */
.hero :focus-visible, .atelier :focus-visible, .site-footer :focus-visible,
.site-header:not(.is-solid) :focus-visible { outline-color: var(--brass); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.link-quiet {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  padding-bottom: 0.25rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.4s ease, color 0.3s ease;
}
.link-quiet:hover { background-size: 40% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem var(--gutter);
  color: #f1ece4;
  transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s ease;
}
.site-header.is-solid {
  background: rgba(235, 232, 226, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding-block: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.24em;
  text-decoration: none;
}
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: 0.95rem; }
.site-nav a { text-decoration: none; padding: 0.55rem 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.lang-switch { display: flex; gap: 0.25rem; margin-left: clamp(1rem, 2vw, 2rem); }
.lang-switch button {
  font: inherit; font-size: 0.85rem; letter-spacing: 0.08em; color: inherit; background: none; border: 0;
  min-width: 2.25rem; min-height: 2.25rem; padding: 0 0.4rem; cursor: pointer; opacity: 0.7;
  box-shadow: inset 0 -1px 0 transparent; transition: opacity 0.2s, box-shadow 0.2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 -1px 0 currentColor; }
.site-nav__cta { box-shadow: inset 0 -1px 0 currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 40rem;
  background: var(--smoked);
  color: #f1ece4;
  overflow: hidden;
}
.hero__half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; background: #43291a; }
.hero__half {
  background: #43291a url("assets/walnut-veneer.jpg") no-repeat;
  background-size: 200% 100%;
}
.hero__half--l { left: 0; background-position: left center; animation: open-left 2.2s cubic-bezier(0.22, 0.7, 0.1, 1) both; }
.hero__half--r { right: 0; background-position: right center; animation: open-right 2.2s cubic-bezier(0.22, 0.7, 0.1, 1) both; }
.piece__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: clamp(1.75rem, 4vw, 3rem); filter: saturate(0.9); }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain--mirror { transform: scaleX(-1); }

.hero__seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(156, 132, 88, 0.7) 30%, rgba(156, 132, 88, 0.7) 70%, transparent);
  animation: fade-in 1.2s ease 0.4s both;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20, 14, 10, 0.82), rgba(20, 14, 10, 0.1) 55%, rgba(20, 14, 10, 0.6));
}
.hero__content {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem);
  max-width: 88rem; margin: 0 auto;
  animation: rise 1.4s ease 1.3s both;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  font-weight: 250;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 13em;
}
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 236, 228, 0.28);
}
.hero__foot p { max-width: 30rem; opacity: 0.9; }

@keyframes open-left  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes open-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement { padding: clamp(5rem, 12vw, 10rem) 0; }
.statement .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.statement h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 250; line-height: 1.06; }
.statement__body { font-size: 1.15rem; max-width: 36rem; color: var(--muted); }

/* ---------- Pieces ---------- */
.pieces { padding-bottom: clamp(4rem, 9vw, 8rem); }
.pieces .section-title { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.piece {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 clamp(1rem, 3vw, 3rem);
  max-width: 88rem; margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: end;
}
.piece + .piece { margin-top: clamp(4rem, 9vw, 8rem); }
.piece__panel { position: relative; overflow: hidden; background: var(--walnut); }
.woods__swatch { background: var(--walnut); }
.piece__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 14, 10, 0.25), transparent 50%); }
.piece__draw {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%);
  fill: none; stroke: #e4d3a8; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; opacity: 0.9;
}
.piece--c .piece__draw { stroke: #2a241f; opacity: 0.75; }
.piece__draw * { vector-effect: non-scaling-stroke; }
.piece__text { padding-bottom: 0.5rem; }
.piece__text h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: 1.25rem; }
.piece__text p + p { margin-top: 1rem; }
.piece__text .piece__note { color: var(--muted); font-size: 0.95rem; margin: 1.5rem 0 1.75rem; }
.piece__text .link-quiet { color: var(--brass-deep); }

/* a: large panel left, text right */
.piece--a .piece__panel { grid-column: 1 / 8; aspect-ratio: 5 / 6; }
.piece--a .piece__text  { grid-column: 9 / 13; }
/* b: text left, smaller panel right, pushed down */
.piece--b .piece__panel { grid-column: 7 / 13; aspect-ratio: 4 / 5; grid-row: 1; }
.piece--b .piece__text  { grid-column: 2 / 6; grid-row: 1; }
/* c: wide, low panel */
.piece--c .piece__panel { grid-column: 3 / 10; aspect-ratio: 7 / 6; }
.piece--c .piece__text  { grid-column: 10 / 13; }

/* ---------- Atelier ---------- */
.atelier { background: var(--smoked); color: #e9e3d9; padding: clamp(5rem, 11vw, 9rem) 0; }
.atelier__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.atelier__intro { position: sticky; top: 7rem; }
.atelier__intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 250; line-height: 1.14; margin-bottom: 1.5rem; }
.atelier__intro p { color: #b9b0a2; max-width: 28rem; }
.process li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid rgba(233, 227, 217, 0.16); }
.process li:last-child { border-bottom: 1px solid rgba(233, 227, 217, 0.16); }
.process__n { font-family: var(--serif); font-size: 1.5rem; color: var(--brass); line-height: 1.2; }
.process h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.process p { color: #b9b0a2; max-width: 32rem; }

/* ---------- Woods ---------- */
.woods { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--travertine); }
.woods .section-title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.woods__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.woods__list button {
  display: block; min-height: 2.75rem; width: 100%; text-align: left;
  font: inherit; font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--muted);
  background: none; border: 0; border-bottom: 1px solid rgba(42, 36, 31, 0.18);
  padding: 0.9rem 0; cursor: pointer; transition: color 0.25s, padding 0.3s;
}
.woods__list button:hover { color: var(--ink); }
.woods__list button[aria-pressed="true"] { color: var(--ink); padding-left: 0.9rem; box-shadow: inset 2px 0 0 var(--brass); }
.woods__swatch { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--walnut); }
.woods__view figcaption { display: grid; gap: 0.35rem; margin-top: 1.25rem; max-width: 36rem; }
.woods__view strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.woods__view figcaption span { color: var(--muted); }
.woods__foot { margin-top: clamp(2rem, 5vw, 3.5rem); color: var(--muted); max-width: 40rem; font-size: 0.95rem; }

/* ---------- Commission ---------- */
.faq { padding: clamp(5rem, 11vw, 9rem) 0 clamp(2rem, 5vw, 4rem); }
.faq .section-title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.faq__list { max-width: 52rem; }
.faq__list > div { padding: 1.75rem 0; border-top: 1px solid rgba(34, 28, 23, 0.16); }
.faq__list > div:last-child { border-bottom: 1px solid rgba(34, 28, 23, 0.16); }
.faq__list dt { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 300; line-height: 1.25; margin-bottom: 0.75rem; }
.faq__list dd { color: var(--muted); max-width: 42rem; }
.commission { padding: clamp(5rem, 11vw, 9rem) 0; }
.commission__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.commission h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 250; line-height: 1.08; margin-bottom: 1.5rem; }
.commission__intro p { color: var(--muted); max-width: 28rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.field { display: grid; gap: 0.35rem; }
.field--wide, .form__actions { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); }
.req { font-size: 0.85em; color: #5a544c; }
.field__error { font-size: 0.9rem; color: #8a3326; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(42, 36, 31, 0.4); border-radius: 0;
  padding: 0.5rem 0; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass-deep); box-shadow: 0 1px 0 var(--brass-deep); }
.field [aria-invalid="true"] { border-bottom-color: #8a3326; }
.btn {
  font: inherit; font-size: 1rem; cursor: pointer;
  background: var(--smoked); color: #f1ece4;
  border: 0; border-radius: 0; padding: 1rem 2rem;
  transition: background-color 0.3s;
}
.btn:hover { background: var(--walnut); }
.btn, .field input, .field select { min-height: 2.75rem; }
.form__summary { grid-column: 1 / -1; border-left: 2px solid #8a3326; padding: 0.25rem 0 0.25rem 1rem; }
.form__summary h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.form__summary a { color: #8a3326; }
.form__summary:focus { outline: none; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--smoked); color: #f1ece4; padding: 0.75rem 1.25rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form__status { margin-top: 1rem; color: var(--brass-deep); min-height: 1.65em; }


/* ---------- Footer ---------- */
.site-footer { background: var(--smoked); color: #b9b0a2; padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 2rem; }
.wordmark--footer { color: #e9e3d9; display: block; margin-bottom: 0.75rem; }
.site-footer a { text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.site-footer a:hover { color: #e9e3d9; }
.footer__legal { max-width: var(--max); margin: 3rem auto 0; padding: 1.25rem var(--gutter) 0; border-top: 1px solid rgba(233, 227, 217, 0.12); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .statement .wrap, .atelier__grid, .commission__grid, .woods__grid { grid-template-columns: 1fr; }
  .atelier__intro { position: static; }
  .piece { grid-template-columns: 1fr; gap: 1.75rem; }
  .piece--a .piece__panel, .piece--a .piece__text,
  .piece--b .piece__panel, .piece--b .piece__text,
  .piece--c .piece__panel, .piece--c .piece__text { grid-column: 1; grid-row: auto; }
  .piece--a .piece__panel, .piece--b .piece__panel, .piece--c .piece__panel { aspect-ratio: 4 / 3; }
  .woods__list { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
  .woods__list li { flex: 0 0 auto; }
  .woods__list button { font-size: 1.2rem; width: auto; }
  .woods__list button[aria-pressed="true"] { padding-left: 0; box-shadow: none; border-bottom-color: var(--brass); }
}
@media (max-width: 40rem) {
  .site-header { gap: 0.5rem; padding-inline: 1rem; }
  .site-nav { margin-left: auto; font-size: 0.85rem; }
  .site-nav__cta { white-space: nowrap; }
  .lang-switch { margin-left: 0; }
  .lang-switch button { min-width: 2rem; padding: 0 0.25rem; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .wordmark { font-size: 1.05rem; letter-spacing: 0.2em; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__half, .hero__seam, .hero__content { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
