/* Resilient Earth Elegance — "the dark room": one deep teal-black field, lit rooms as exhibits. */
:root {
  --bg: #0b1a1c;
  --surface: #12292c;
  --ink: #efeae3;
  --muted: #bcb3a8;
  --accent: #c9a46b;
  --accent-strong: #dcb984;
  --espresso: #1d140f;
  --stone: #e6e1da;
  --stone-ink: #1d140f;
  --stone-muted: #574a40;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", "Segoe UI", system-ui, sans-serif;

  /* five steps: small, body, lead, head, display */
  --step-small: .9375rem;
  --step-body: clamp(1.125rem, 1.05rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(5.25rem, 11vw, 12.5rem);

  --m: 32px;
  --gap: 24px;
  --section: 200px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms;
  --t-hover: 220ms;
}
@media (max-width: 700px) { :root { --m: 16px; --gap: 12px; --section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; text-decoration-thickness: .07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.button {
  display: inline-block; padding: 18px 30px; background: var(--accent); color: var(--espresso);
  font: 500 var(--step-body)/1 var(--text); text-decoration: none; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent-strong); } }

/* ---------------------------------------------------------------- hero: title from the top edge to the bottom edge */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 100svh; padding: 0 var(--m); overflow: clip; isolation: isolate; }
.hero__picture { position: absolute; inset: 0; z-index: -1; background: #120d0a; }
.hero__picture picture, .hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__lit { opacity: 0; transition: opacity 1100ms var(--ease-in-out); }
.hero__night { transition: opacity 1100ms var(--ease-in-out); }
.hero[data-lights="on"] .hero__lit { opacity: 1; }
.hero[data-lights="on"] .hero__night { opacity: 0; }
.hero__picture::after { /* neutral scrim under the two corners that carry type */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(8, 12, 12, .72), transparent 70%), /* taste-skill-ignore: neutral scrim under type on a photo */
    radial-gradient(65% 45% at 100% 100%, rgba(8, 12, 12, .72), transparent 70%), /* taste-skill-ignore: neutral scrim under type on a photo */
    linear-gradient(90deg, rgba(8, 12, 12, .5), transparent 55%); /* taste-skill-ignore: neutral scrim under type on a photo */
}

.hero__nav { position: absolute; top: 28px; right: var(--m); display: flex; gap: 28px; align-items: baseline; font-size: var(--step-small); z-index: 2; }
.wordmark { font-weight: 500; text-decoration: none; margin-right: 12px; }

.hero__title { grid-row: 1; grid-column: 1; display: grid; grid-template-rows: auto 1fr auto; font-size: var(--step-display); line-height: .85; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line [data-line] { display: block; }
.line--one { grid-row: 1; justify-self: start; margin-top: 72px; }
.line--two { grid-row: 3; justify-self: end; margin-bottom: 24px; color: var(--accent-strong); }

.hero__middle { grid-row: 1; grid-column: 1; align-self: center; margin-left: 30vw; max-width: 44ch; display: grid; gap: 24px; z-index: 1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.switch {
  appearance: none; border: 0; background: none; color: var(--ink); font: 500 var(--step-body)/1.2 var(--text);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(239, 234, 227, .45);
  transition: text-decoration-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.switch__dot { width: 14px; height: 14px; border-radius: 50%; background: #3a3530; transition: background-color 600ms ease; }
.hero[data-lights="on"] .switch__dot { background: var(--accent-strong); }
.switch:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .switch:hover { text-decoration-color: currentColor; } }
.hero__caption { font-size: var(--step-small); color: var(--muted); max-width: 40ch; }

@media (max-width: 700px) {
  :root { --step-display: 16.5vw; }
  .hero__nav { top: 20px; gap: 18px; }
  .wordmark { display: none; }
  .line--one { margin-top: 88px; }
  .line--two { margin-bottom: 20px; }
  .hero__middle { margin-left: 0; }
  .hero__picture::after { background-color: rgba(8, 12, 12, .42); }
}

/* ---------------------------------------------------------------- work: full panels, one midline row */
.panel { position: relative; height: 100svh; overflow: clip; background: #120d0a; }
.panel picture, .panel img { width: 100%; height: 100%; object-fit: cover; }
.panel img { transform: scale(1.18); }
.panel__row {
  position: absolute; left: 0; right: 0; top: calc(50% - 45px); height: 90px; padding: 0 var(--m);
  display: grid; grid-template-columns: 10% 1fr auto; align-items: center; gap: 16px;
  background: rgba(8, 14, 15, .7); font-size: var(--step-small);
}
.panel__row h2 { font-size: var(--step-lead); letter-spacing: -.02em; }
.panel__row span:last-child { text-align: right; }
@media (max-width: 700px) {
  .panel { height: 82svh; }
  .panel__row { top: auto; bottom: 20px; height: auto; padding: 14px var(--m); grid-template-columns: 1fr auto; row-gap: 6px; }
  .panel__row h2 { grid-column: 1 / -1; grid-row: 1; }
  .panel__row span { grid-row: 2; }
}

/* ---------------------------------------------------------------- process: photographs down a diagonal */
.process { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.process__title { grid-column: 8 / 13; grid-row: 1; font-size: var(--step-head); }
.stage { display: contents; }
.stage img { width: 100%; object-fit: cover; }
.stage figcaption { max-width: 36ch; }
.stage strong { font-weight: 500; color: var(--accent-strong); }
.stage--one img { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.stage--one figcaption { grid-column: 5 / 8; grid-row: 1; }
.stage--two img { grid-column: 6 / 9; grid-row: 2; aspect-ratio: 1; margin-top: 60px; }
.stage--two figcaption { grid-column: 9 / 13; grid-row: 2; margin-top: 60px; }
.stage--three img { grid-column: 7 / 13; grid-row: 3; aspect-ratio: 16 / 10; margin-top: 140px; }
.stage--three figcaption { grid-column: 3 / 7; grid-row: 3; margin-top: 140px; justify-self: end; }
.process__title { margin-bottom: 220px; }
@media (max-width: 900px) {
  .process { display: flex; flex-direction: column; }
  .process__title { margin-bottom: 40px; }
  .stage { display: block; margin-bottom: 56px; }
  .stage img { margin: 0 0 16px; }
  .stage--two { width: 62%; align-self: flex-end; }
  .stage--three img { width: 78%; }
  .stage--two img, .stage--three img, .stage figcaption { margin-top: 0; }
}

/* ---------------------------------------------------------------- services: sticky photograph, active list */
.services { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; background: var(--surface); }
.services__picture { grid-column: 1 / 6; position: sticky; top: 12vh; aspect-ratio: 4 / 5; overflow: clip; }
.services__picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.services__picture img.is-active { opacity: 1; }
.services__picture img.is-paper { filter: brightness(.72) sepia(.25); }
.services__list { grid-column: 7 / 12; }
.services__list h2 { font-size: var(--step-head); margin-bottom: 48px; }
.svc button {
  width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  appearance: none; border: 0; background: none; padding: 10px 0; text-align: left; cursor: pointer;
  color: var(--muted); font: 400 var(--step-lead)/1.2 var(--text);
  transition: color 300ms ease, transform var(--t-press) var(--ease-out);
}
.svc__meta { font-size: var(--step-small); white-space: nowrap; }
.svc.is-active button { color: var(--ink); }
.svc.is-active button > span:first-child { color: var(--accent-strong); }
@media (hover: hover) and (pointer: fine) { .svc button:hover { color: var(--ink); } }
.svc button:active { transform: scale(.99); }
.svc p { display: none; max-width: 40ch; padding: 0 0 18px; }
.svc.is-active p { display: block; }
html:not(.js) .svc p { display: block; }
.services__ask { margin-top: 40px; color: var(--accent-strong); }
@media (max-width: 900px) {
  .services { display: block; padding-top: 0; }
  .services__picture { position: relative; top: auto; aspect-ratio: auto; height: 38svh; margin: 0 calc(-1 * var(--m)) 32px; }
  .services__list h2 { margin-bottom: 24px; }
  .svc button { min-height: 56px; }
  .svc__meta { display: none; }
}

/* ---------------------------------------------------------------- gallery: photographs gathered round a heading */
.gallery { position: relative; min-height: max(100svh, 820px); overflow: clip; }
.g { position: absolute; width: clamp(150px, 13vw, 200px); aspect-ratio: 9 / 10; object-fit: cover; }
.g--s { width: clamp(130px, 11vw, 170px); }
.g1 { left: 23%; top: 9%; }
.g2 { left: 41%; top: 3%; }
.g3 { left: 63%; top: 11%; }
.g4 { left: 24%; top: 41%; }
.g5 { left: 67%; top: 40%; }
.g6 { left: 30%; top: 71%; }
.g7 { left: 49%; top: 76%; }
.g8 { left: 64%; top: 69%; }
.gallery__text { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(440px, 80vw); text-align: center; display: grid; gap: 16px; justify-items: center; }
.gallery__text h2 { font-size: var(--step-head); line-height: 1.05; }
@media (min-width: 701px) { .gallery__text h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); } }
@media (max-width: 700px) {
  .gallery { min-height: 900px; }
  .g, .g--s { width: 30vw; }
  .g1 { left: 6%; top: 4%; } .g2 { left: 60%; top: 9%; } .g3, .g7, .g8 { display: none; }
  .g4 { left: 64%; top: 66%; } .g5 { left: 4%; top: 69%; } .g6 { left: 34%; top: 82%; }
  .gallery__text h2 { font-size: 7vw; }
}

/* ---------------------------------------------------------------- about: side facts, wide paragraph */
.about { padding: var(--section) var(--m); display: grid; grid-template-columns: calc(34vw - var(--m)) 1fr; row-gap: 120px; }
.about__facts { grid-column: 1; grid-row: 1; width: 200px; display: grid; gap: 20px; align-self: start; font-size: var(--step-small); }
.about__facts dt { color: var(--muted); }
.about__text { grid-column: 2; grid-row: 1; max-width: 56vw; display: grid; gap: 28px; }
.about__text h2 { font-size: var(--step-head); }
.about__text p { font-size: var(--step-lead); line-height: 1.35; }
.about__word { grid-column: 1; grid-row: 2; font: 500 var(--step-small)/1.4 var(--text); align-self: start; }
.about__lists { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.about__record { font-size: var(--step-small); display: grid; gap: 10px; width: 330px; align-content: start; }
.about__record li { display: flex; justify-content: space-between; gap: 16px; }
.about__record li span:last-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .about { display: flex; flex-direction: column; gap: 40px; }
  .about__text { max-width: none; order: -1; }
  .about__facts { width: auto; grid-template-columns: 1fr 1fr; }
  .about__record { width: 100%; }
  .about__word { margin-bottom: -24px; }
}

/* ---------------------------------------------------------------- contact: the email as display type */
.contact { min-height: 76svh; background: var(--stone); color: var(--stone-ink); padding: 40px var(--m); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; row-gap: 28px; }
.contact__ask { grid-column: 1 / -1; grid-row: 1; font-size: var(--step-lead); max-width: 30ch; }
.contact__email { grid-column: 1 / -1; grid-row: 3; margin-bottom: 4vh; font-size: 5.4vw; letter-spacing: -.035em; text-transform: none; }
.contact__email a { text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .contact__email a:hover { color: #8a6531; } }
.contact__left, .contact__right { grid-row: 4; font-size: var(--step-small); color: var(--stone-muted); }
.contact__left a, .contact__right a { color: var(--stone-ink); }
.contact__right { text-align: right; }
@media (max-width: 700px) {
  .contact { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto auto; min-height: 70svh; }
  .contact__email { font-size: 5.5vw; }
  .contact__left { grid-row: 4; } .contact__right { grid-row: 5; text-align: left; }
}

/* ---------------------------------------------------------------- footer: columns above, wordmark below */
.footer { background: var(--espresso); padding: 40px var(--m) 20px; display: grid; row-gap: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); font-size: var(--step-small); color: var(--muted); margin-bottom: 200px; }
.footer__head { color: var(--ink); margin-bottom: 6px; }
.footer__mark { width: 100%; height: auto; fill: var(--ink); font-family: var(--display); font-weight: 800; font-size: 60px; }
.footer__legal { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 700px) {
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-bottom: 120px; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(150ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero__picture img { animation: settle 2200ms var(--ease-out) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .g[data-reveal] { transform: none; transition: opacity 900ms var(--ease-out); }
  @supports (animation-timeline: view()) {
    .panel img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .g { animation: float linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .g:nth-of-type(2n) { animation-name: float-b; }
    .services__picture img.is-active { animation: breathe linear both; animation-timeline: view(); }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes drift { from { transform: scale(1.18) translateY(-3%); } to { transform: scale(1.18) translateY(3%); } }
@keyframes float { from { transform: translateY(10%); } to { transform: translateY(-10%); } }
@keyframes float-b { from { transform: translateY(-6%); } to { transform: translateY(8%); } }
@keyframes breathe { from { transform: scale(1.06); } to { transform: scale(1); } }
