@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/michroma-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("/assets/fonts/tomorrow-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("/assets/fonts/tomorrow-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --graphite: #1B1D1F;
  --off-white: #F2EEE7;
  --titanium: #928C89;
  --deep-graphite: #2A2D30;
  --paper: #FFFFFF;
  --line-dark: rgba(242, 238, 231, 0.16);
  --line-light: rgba(27, 29, 31, 0.15);
  --page-x: clamp(1.5rem, 4.6vw, 5.5rem);
  --header-h: 6.25rem;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--deep-graphite);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--deep-graphite);
  color: var(--off-white);
  font-family: "Tomorrow", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  margin: 0;
  background: var(--deep-graphite);
}

::selection {
  background: var(--titanium);
  color: var(--graphite);
}

a { color: inherit; }

img,
svg {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--graphite);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 var(--page-x) auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.site-header__mark {
  width: clamp(2.9rem, 3.5vw, 3.6rem);
  text-decoration: none;
}

.site-header__mark img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.5rem);
}

.site-nav a,
.section-index,
.scroll-cue,
.plan-detail figcaption,
.site-footer,
.legal-back {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a,
.legal-back {
  text-decoration: none;
}

.site-nav a {
  position: relative;
  padding: 0.75rem 0;
}

.site-nav a::after,
.contact__mail::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.contact__mail:hover::after,
.contact__mail:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: max(44rem, 100svh);
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 3rem) var(--page-x) 5rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite) url("/assets/hero-dark-water-v1.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 14, 0.5) 0%, rgba(9, 12, 14, 0.06) 45%, rgba(9, 12, 14, 0.42) 100%),
    radial-gradient(ellipse at 50% 52%, rgba(146, 140, 137, 0.08), transparent 58%);
}

.hero__mark-position {
  width: min(78vw, 78rem);
  margin-top: 2vh;
  translate: calc(-4.66% + 1.25vw) 0;
}

.hero__mark {
  width: 100%;
  height: auto;
}

.hero__claim {
  position: absolute;
  top: calc(50% + min(18vw, 14rem) + 1.25rem);
  margin: 0;
  color: rgba(242, 238, 231, 0.62);
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(0.64rem, 0.8vw, 0.82rem);
  line-height: 1.3;
  letter-spacing: 0.28em;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: var(--page-x);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.scroll-cue__line {
  width: clamp(4rem, 8vw, 8.5rem);
  height: 1px;
  background: var(--titanium);
  transition: width 220ms ease;
}

.scroll-cue:hover .scroll-cue__line,
.scroll-cue:focus-visible .scroll-cue__line {
  width: clamp(6rem, 11vw, 11rem);
}

.project {
  position: relative;
  min-height: 100svh;
  display: flow-root;
  margin: 0;
  padding: clamp(6rem, 10vw, 9.5rem) var(--page-x) clamp(8rem, 12vw, 12rem);
  overflow: hidden;
  background: var(--off-white);
  color: var(--graphite);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0 var(--page-x);
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--line-light) 0 1px, transparent 1px calc(100% / 6));
}

.project__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 3.3fr 1.7fr;
  align-items: end;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
}

.section-index {
  margin: 0;
  color: var(--titanium);
}

.project h2 {
  margin: 0;
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(2.1rem, 5vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.project__phrase {
  margin: 0;
  padding-bottom: 0.28rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(0.7rem, 1.05vw, 1.05rem);
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-align: right;
}

.project__stage {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 3rem);
}

.plan-detail {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line-light);
  background: var(--paper);
  box-shadow: 0 2.4rem 5rem rgba(27, 29, 31, 0.08);
}

.plan-detail img {
  width: 100%;
  height: auto;
}

.plan-detail figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--line-light);
}

.contact {
  position: relative;
  min-height: max(44rem, 100svh);
  margin: 0;
  display: grid;
  place-items: center;
  padding: 7rem var(--page-x) 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(146, 140, 137, 0.07), transparent 42%),
    var(--deep-graphite);
  contain: layout paint;
}

.contact::before,
.contact::after {
  content: "";
  position: absolute;
  width: 74vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146, 140, 137, 0.36), transparent);
  transform: rotate(-12deg);
}

.contact::before { top: 36%; right: -13vw; }
.contact::after { top: 52%; left: -18vw; opacity: 0.55; }

.contact__mail {
  position: relative;
  z-index: 1;
  padding: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.6vw, 2.7rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.contact__mail::after {
  bottom: 0;
  background: var(--titanium);
  transform: scaleX(1);
}

.site-footer {
  position: absolute;
  right: var(--page-x);
  bottom: 2rem;
  left: var(--page-x);
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  color: var(--titanium);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

.site-footer__instagram {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  color: var(--titanium);
}

.site-footer__instagram svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-footer__instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--off-white); }

.reveal {
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.enhanced .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
}

:focus-visible {
  outline: 1px solid var(--titanium);
  outline-offset: 0.35rem;
}

.legal-header {
  color: var(--graphite);
  border-bottom-color: var(--line-light);
}

.legal-page {
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(4rem, 8vw, 8rem)) var(--page-x) clamp(6rem, 10vw, 9rem);
  background: var(--off-white);
  color: var(--graphite);
}

.legal-page__inner { width: min(100%, 54rem); }
.legal-page .section-index { margin: 0 0 2rem; }

.legal-page h1 {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.legal-copy {
  max-width: 46rem;
  font-size: clamp(0.84rem, 0.9vw, 0.94rem);
  line-height: 1.55;
}

.legal-copy h2 {
  margin: 2.5rem 0 0.8rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.legal-copy p,
.legal-copy address,
.legal-copy ul { margin: 0 0 1.15rem; }
.legal-copy address { font-style: normal; }
.legal-copy .legal-details {
  font-family: "Tomorrow", Arial, sans-serif;
  font-size: clamp(0.78rem, 0.82vw, 0.84rem);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.01em;
}
.legal-copy ul { padding-left: 1.25rem; }
.legal-copy a { text-underline-offset: 0.18em; }

@media (max-width: 64rem) {
  :root { --header-h: 5.5rem; }

  .hero__mark-position { width: 86vw; }

  .project__header {
    grid-template-columns: 1fr 4fr;
  }

  .project__phrase {
    grid-column: 2;
    margin-top: 1rem;
    text-align: left;
  }

  .project__gallery { gap: 1.5rem; }
}

@media (max-width: 44rem) {
  :root {
    --page-x: 1.25rem;
    --header-h: 5rem;
  }

  .site-header__mark { width: 3rem; }
  .site-nav { gap: 1rem; }

  .site-nav a {
    font-size: 0.69rem;
    letter-spacing: 0.1em;
  }

  .site-nav a:first-child { display: none; }

  .hero {
    min-height: max(42rem, 100svh);
    background-position: 58% center;
  }

  .hero__mark-position {
    width: 84vw;
    margin-top: -3vh;
  }

  .hero__claim {
    top: calc(50% + 24vw + 1rem);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .scroll-cue { bottom: 1.5rem; }

  .project {
    min-height: 0;
    height: auto;
    padding-top: 6.25rem;
    padding-bottom: 0;
  }

  .project__header { display: block; }

  .project h2 {
    margin-top: 1.8rem;
    font-size: clamp(2.25rem, 10.9vw, 4rem);
    line-height: 1.08;
  }

  .project__phrase {
    margin-top: 1.35rem;
    font-size: 0.68rem;
  }

  .project__stage {
    height: auto;
    min-height: 0;
    margin: 0;
    padding-top: 2.5rem;
    padding-bottom: 0;
  }

  .project__gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .plan-detail {
    width: 128%;
    margin-left: -14%;
  }

  .plan-detail figcaption {
    padding-right: calc(14% + 1rem);
    padding-left: calc(14% + 1rem);
  }

  .contact { min-height: max(42rem, 100svh); }

  .contact__mail {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .site-footer {
    bottom: 1.4rem;
    align-items: flex-end;
  }

  .site-footer__links {
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .legal-page { padding-top: calc(var(--header-h) + 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
