:root {
  --brand-deep: #2C100A;
  --brand-dark: #4A1B10;
  --brand-primary: #662D17;
  --brand-accent: #89391B;
  --brand-warm: #A65A32;
  --text-heading: #292421;
  --text-body: #5F5752;
  --text-secondary: #756C66;
  --text-muted: #8F857E;
  --surface-white: #FFFEFD;
  --surface-main: #FCFAF8;
  --surface-alt: #F7F3EF;
  --surface-warm: #F0EAE5;
  --border-light: #E7E0DA;
  --border-default: #D7CEC7;
  --border-strong: #BEB2AA;
  --shell: min(1180px, calc(100% - 3rem));
  --scroll-progress: 0;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--surface-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-warm);
  outline-offset: 5px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--surface-white);
  color: var(--brand-deep);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  padding-block: 1.35rem;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand-lockup {
  display: block;
  width: clamp(10rem, 17vw, 13.5rem);
  animation: brand-entry .9s cubic-bezier(.2, .7, .2, 1) both;
}

.brand-lockup img { width: 100%; height: auto; }

.header-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  animation: soft-entry .9s .15s cubic-bezier(.2, .7, .2, 1) both;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(7.5rem, 11vw, 10rem) clamp(4rem, 7vw, 6.5rem);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(24rem, .72fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }

.hero-copy { position: relative; z-index: 2; }

.kicker {
  margin: 0 0 1.15rem;
  color: var(--brand-primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  color: var(--text-heading);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: .96;
}

h1 { max-width: 9.7ch; font-size: clamp(3.9rem, 7.7vw, 7.8rem); }
h1 span { display: block; color: var(--brand-primary); font-weight: 480; }
h2 { font-size: clamp(3rem, 6.5vw, 6.4rem); }

.hero-action { margin-top: clamp(2.2rem, 5vw, 4rem); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .8rem;
  border-bottom: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease;
}

.text-link span { transition: transform .25s ease; }
.text-link:hover { border-color: var(--brand-warm); color: var(--brand-warm); }
.text-link:hover span { transform: translate(.18rem, .18rem); }

.material-field {
  position: relative;
  min-height: clamp(31rem, 46vw, 42rem);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface-alt);
  isolation: isolate;
  animation: field-entry 1.1s .12s cubic-bezier(.18, .72, .2, 1) both;
}

.material-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .52;
  background-image: linear-gradient(var(--border-light) 1px, transparent 1px), linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 3.75rem 3.75rem;
}

.plane { position: absolute; will-change: transform; }

.plane--one {
  inset: 10% 14% 31% 22%;
  z-index: -1;
  background: var(--surface-warm);
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
  transform: translate3d(0, calc(var(--scroll-progress) * 2.2rem), 0);
  animation: plane-entry 1.1s .3s ease both;
}

.plane--two {
  width: 45%;
  aspect-ratio: 1;
  right: -8%;
  bottom: 4%;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translate3d(0, calc(var(--scroll-progress) * -3.2rem), 0);
  animation: plane-entry 1.1s .45s ease both;
}

.line-work { position: absolute; background: var(--brand-accent); opacity: .76; }
.line-work--vertical { top: 0; bottom: 0; left: 29%; width: 1px; }
.line-work--horizontal { right: 0; bottom: 27%; left: 0; height: 1px; }

.material-mark-frame {
  position: absolute;
  top: 14%;
  left: 12%;
  display: grid;
  width: 7rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgb(255 254 253 / 74%);
  backdrop-filter: blur(8px);
}

.material-mark { width: 4.3rem; height: auto; }

.material-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 12rem;
  margin: 0;
  color: var(--brand-deep);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-rule { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--border-light); transform-origin: left; animation: rule-entry 1.2s .4s ease both; }

.intro-item { animation: text-entry .9s cubic-bezier(.2, .7, .2, 1) both; }
.intro-item:nth-child(2) { animation-delay: .1s; }
.intro-item:nth-child(3) { animation-delay: .22s; }

.contact { padding-block: clamp(5.5rem, 11vw, 10rem); }

.contact-grid { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); gap: clamp(3rem, 9vw, 9rem); }

.contact-heading { align-self: start; position: sticky; top: 3rem; }
.contact-heading h2 { color: var(--brand-deep); }

.contact-list { margin: 0; padding: 0; border-top: 1px solid var(--border-default); list-style: none; }
.contact-list li { border-bottom: 1px solid var(--border-default); }

.contact-link {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  min-height: 6rem;
  gap: 1.2rem;
  color: var(--text-heading);
  text-decoration: none;
  transition: padding-inline .3s ease, background-color .3s ease, color .3s ease;
}

.contact-link:hover, .contact-link:focus-visible { padding-inline: 1rem; background: var(--surface-alt); color: var(--brand-primary); }

.contact-link__type { color: var(--text-muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-link__value { overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 650; letter-spacing: -.02em; }
.contact-link__arrow { font-size: 1.25rem; transition: transform .3s ease; }
.contact-link:hover .contact-link__arrow { transform: translate(.2rem, -.2rem); }

.next {
  position: relative;
  min-height: min(76svh, 48rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--brand-deep);
  color: var(--surface-white);
  isolation: isolate;
}

.next::before { position: absolute; inset: 0; z-index: -3; opacity: .24; background-image: linear-gradient(rgb(255 254 253 / 22%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 254 253 / 22%) 1px, transparent 1px); background-size: 5rem 5rem; content: ""; }

.next-inner { position: relative; z-index: 2; padding-block: clamp(6rem, 12vw, 10rem); }
.next .kicker { color: #D9916A; }
.next h2 { max-width: 12ch; color: var(--surface-white); }
.next-inner > p:last-child { max-width: 30rem; margin: 1.7rem 0 0; color: rgb(255 254 253 / 68%); font-size: 1.05rem; }

.next-shape { position: absolute; z-index: -1; border: 1px solid rgb(255 254 253 / 22%); will-change: transform; }
.next-shape--left { width: min(44vw, 35rem); aspect-ratio: 1; left: -14vw; bottom: -44%; border-radius: 50%; transform: translate3d(0, calc(var(--scroll-progress) * -2.5rem), 0); }
.next-shape--right { width: min(30vw, 24rem); aspect-ratio: 1; right: 8%; top: -19%; background: rgb(137 57 27 / 30%); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); transform: translate3d(0, calc(var(--scroll-progress) * 3.5rem), 0); }

.site-footer { padding-block: 2rem; background: #0C0A0A; color: var(--surface-white); border-top: 1px solid rgb(255 254 253 / 14%); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-inner p:last-child { color: #5F5752; }

.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.error-page { min-height: 100vh; }
.error-page__main { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--surface-alt); }
.error-page__content { max-width: 44rem; text-align: center; }
.error-page__content img { width: 5rem; height: auto; margin: 0 auto 2rem; }
.error-page__content h1 { max-width: none; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.error-page__content > p:not(.eyebrow) { margin: 1.4rem auto 2rem; color: var(--text-secondary); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; gap: .7rem; padding: .8rem 1.15rem; border: 1px solid transparent; background: var(--brand-primary); color: var(--surface-white); font-weight: 750; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.eyebrow { margin: 0 0 1rem; color: var(--brand-primary); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

@media (min-width: 680px) and (max-width: 1099px) {
  :root { --shell: min(100% - 4rem, 900px); }
  .hero { min-height: auto; padding-top: 9rem; }
  .hero-grid { grid-template-columns: repeat(8, 1fr); align-items: end; gap: 1rem; }
  .hero-copy { grid-column: 1 / 8; z-index: 2; }
  .material-field { grid-column: 3 / -1; width: 100%; min-height: 31rem; margin-top: -2.5rem; }
  h1 { max-width: 10ch; font-size: clamp(5.4rem, 10.5vw, 7.4rem); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-heading { position: static; display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: 2rem; }
  .contact-heading .kicker { align-self: start; }
  .contact-list { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-list li:nth-child(odd) { border-right: 1px solid var(--border-default); }
  .contact-link { grid-template-columns: 1fr auto; min-height: 8.5rem; padding: 1rem 1.4rem; }
  .contact-link__type { grid-column: 1 / -1; }
}

@media (max-width: 679px) {
  :root { --shell: min(100% - 2rem, 1180px); }
  .site-header { padding-block: 1rem; }
  .brand-lockup { width: min(10.7rem, 50vw); }
  .header-note { display: none; }
  .hero { min-height: auto; padding-block: 7.5rem 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  h1 { max-width: 9.4ch; font-size: clamp(3.55rem, 17vw, 5rem); }
  .material-field { min-height: clamp(20rem, 93vw, 26rem); }
  .material-grid { background-size: 2.8rem 2.8rem; }
  .material-mark-frame { top: 12%; left: 10%; width: 5.7rem; }
  .material-mark { width: 3.45rem; }
  .material-caption { bottom: 1.4rem; left: 1.4rem; max-width: 9rem; }
  .contact { padding-block: 5.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-heading { position: static; }
  .contact-link { grid-template-columns: 1fr auto; min-height: 6.8rem; padding-block: .9rem; }
  .contact-link__type { grid-column: 1 / -1; }
  .contact-link__value { font-size: 1rem; }
  .next { min-height: 66svh; }
  .next h2 { max-width: 10ch; font-size: clamp(3rem, 14vw, 4.4rem); }
  .next-shape--right { width: 65vw; right: -17%; }
  .next-shape--left { width: 80vw; left: -35%; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .55rem; }
}

@media (min-width: 1400px) {
  :root { --shell: min(1280px, calc(100% - 5rem)); }
  .hero-grid { grid-template-columns: minmax(0, 1.32fr) minmax(27rem, .68fr); }
  .material-field { min-height: 44rem; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes brand-entry { from { opacity: 0; transform: translateY(-.55rem); } to { opacity: 1; transform: translateY(0); } }
  @keyframes soft-entry { from { opacity: 0; } to { opacity: 1; } }
  @keyframes text-entry { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }
  @keyframes field-entry { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
  @keyframes plane-entry { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rule-entry { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-depth] { transform: none !important; }
}
