:root {
  --background: #fafafa;
  --surface: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border: #dde2ea;
  --accent: #a66d3d;
  --accent-soft: rgba(166, 109, 61, 0.16);
  --ink-soft: rgba(30, 41, 59, 0.11);
  --shadow: 0 28px 90px rgba(17, 24, 39, 0.09);
  --radius-image: 74px;
  --radius-panel: 28px;
  --max: 1420px;
  --gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    var(--background);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--text-primary);
  font-family: "Playfair Display", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.96);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  padding: 13px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text-primary);
  font-family: Inter, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 17px;
  border: 1px solid var(--text-primary);
  border-radius: 999px;
  background: var(--text-primary);
  color: #fff;
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.16);
}

.nav-cta:active,
.button:active {
  transform: translateY(0) scale(0.98);
}

a:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid rgba(166, 109, 61, 0.72);
  outline-offset: 4px;
}

.button.secondary {
  background: #fff;
  color: var(--text-primary);
  border-color: rgba(17, 24, 39, 0.26);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  height: 744px;
  overflow: hidden;
  color: #fff;
}

.hero-carousel,
.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 24s infinite both;
}

.slide-one {
  animation-delay: 0s;
}

.slide-two {
  animation-delay: 6s;
}

.slide-three {
  animation-delay: 12s;
}

.slide-four {
  animation-delay: 18s;
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 16, 30, 0.72) 0%, rgba(6, 16, 30, 0.42) 48%, rgba(6, 16, 30, 0.58) 100%),
    linear-gradient(180deg, rgba(6, 16, 30, 0.14), rgba(6, 16, 30, 0.84));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 0 36px 36px;
}

.hero-copy {
  width: min(1240px, 100%);
}

.eyebrow,
.label {
  margin: 0 0 38px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 19px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Inter, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.03;
  text-wrap: balance;
}

h1 {
  max-width: 950px;
  color: #fff;
  font-size: 52px;
  text-shadow: 0 18px 64px rgba(0, 0, 0, 0.24);
}

h2 {
  max-width: 1260px;
  font-size: 84px;
}

p {
  max-width: 1240px;
  margin: 46px 0 0;
  color: var(--text-secondary);
  font-size: 38px;
  line-height: 1.45;
}

.lead {
  max-width: 1270px;
  margin-top: 48px;
  font-size: 39px;
  line-height: 1.48;
}

.hero .lead {
  max-width: 1260px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-progress {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.hero-progress span {
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.hero-progress span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: progressFill 24s infinite linear;
}

.hero-progress span:nth-child(2)::before {
  animation-delay: 6s;
}

.hero-progress span:nth-child(3)::before {
  animation-delay: 12s;
}

.hero-progress span:nth-child(4)::before {
  animation-delay: 18s;
}

.section {
  position: relative;
  width: min(852px, calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 24px 0 0;
  animation: sectionLift both;
  animation-timeline: view();
  animation-range: entry 5% cover 28%;
  transform-style: preserve-3d;
}

.stack-section {
  display: grid;
  gap: 18px;
}

.section::before {
  content: attr(data-step);
  position: absolute;
  top: 22px;
  left: max(-15vw, -210px);
  color: rgba(17, 24, 39, 0.075);
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: clamp(72px, 8vw, 132px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.section::after {
  content: "";
  position: absolute;
  top: 126px;
  bottom: -42px;
  left: max(-8vw, -112px);
  width: 1px;
  background: linear-gradient(180deg, var(--accent-soft), rgba(17, 24, 39, 0.08), transparent);
  pointer-events: none;
}

.line-art {
  position: absolute;
  pointer-events: none;
}

.line-art {
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 1px solid var(--ink-soft);
  border-right-color: transparent;
  border-bottom-color: rgba(166, 109, 61, 0.18);
  border-radius: 48% 52% 44% 56%;
  opacity: 0.78;
  animation: lineDrift 12s ease-in-out infinite alternate;
}

.line-art::before,
.line-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(166, 109, 61, 0.17);
  pointer-events: none;
}

.line-art::before {
  inset: 20px 34px 42px 18px;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.line-art::after {
  width: 72px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.16), transparent);
  transform: rotate(-28deg);
}

.line-art-one {
  right: max(-18vw, -246px);
  top: 212px;
}

.line-art-two {
  left: max(-18vw, -250px);
  top: 78px;
  transform: rotate(28deg);
}

.line-art-three {
  right: max(-19vw, -270px);
  bottom: 68px;
  width: 188px;
  height: 110px;
}

.line-art-four {
  left: max(-17vw, -230px);
  bottom: 100px;
  width: 126px;
  height: 190px;
}

.line-art-five {
  right: max(-17vw, -232px);
  top: 94px;
  width: 176px;
  height: 176px;
}

.margin-note {
  position: absolute;
  z-index: 0;
  color: rgba(17, 24, 39, 0.38);
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  writing-mode: vertical-rl;
  animation: marginNoteFloat both;
  animation-timeline: view();
  animation-range: entry 0% cover 60%;
}

.margin-note::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 58px;
  margin-bottom: 14px;
  background: rgba(166, 109, 61, 0.36);
}

.margin-note-left {
  top: 190px;
  left: max(-11vw, -150px);
  transform: rotate(180deg);
}

.margin-note-right {
  right: max(-12vw, -168px);
  bottom: 126px;
}

.feature-photo {
  position: relative;
  width: 100%;
  height: 468px;
  margin: 0;
  overflow: hidden;
  border-radius: 44px;
  background: #e5e7eb;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  z-index: 0;
  animation: photoDrift both;
  animation-timeline: view();
  animation-range: entry 0% cover 46%;
}

.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 15, 28, 0.68));
  pointer-events: none;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1), filter 900ms ease;
}

.feature-photo:hover img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.075);
}

.feature-photo figcaption {
  position: absolute;
  left: auto;
  right: -1px;
  bottom: 30px;
  z-index: 2;
  max-width: min(78%, 560px);
  padding: 13px 18px 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 0;
  border-radius: 22px 0 0 22px;
  background: rgba(10, 20, 32, 0.36);
  color: #fff;
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 260ms ease, opacity 260ms ease, background 260ms ease;
}

.feature-photo:hover figcaption {
  background: rgba(10, 20, 32, 0.48);
  transform: translateX(-8px);
}

.about-photo {
  height: 468px;
}

.about-photo img {
  object-position: 45% center;
}

.panel {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 38px 34px 26px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 20px 70px rgba(91, 73, 56, 0.08);
  overflow: hidden;
  animation: panelArrive both;
  animation-timeline: view();
  animation-range: entry 12% cover 34%;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.section .eyebrow,
.section .label {
  margin-bottom: 14px;
  font-size: 11px;
}

.section h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section p {
  max-width: 68ch;
  margin-top: 18px;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.section .lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.about-proof {
  display: grid;
  gap: 25px;
  margin-top: 35px;
}

.about-proof img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.feature-list {
  display: grid;
  gap: 17px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-family: Inter, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
}

.about-proof .feature-list {
  margin-top: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  opacity: 1;
  transition: transform 220ms ease, color 220ms ease;
}


.feature-list li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.feature-list li span:first-child {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.panel .button {
  width: 100%;
  margin-top: 4px;
  min-height: 49px;
  font-size: 13px;
}

.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  color: var(--text-secondary);
  font-family: Inter, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  width: min(852px, calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 20px 0 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  4%,
  25% {
    opacity: 1;
  }
  31%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes progressFill {
  0%,
  24.8% {
    transform: scaleX(0);
  }
  25%,
  49.8% {
    transform: scaleX(1);
  }
  50%,
  100% {
    transform: scaleX(0);
  }
}

@keyframes sectionLift {
  from {
    opacity: 0.72;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photoDrift {
  from {
    transform: translateY(28px) scale(0.985);
  }

  to {
    transform: translateY(-10px) scale(1);
  }
}

@keyframes panelArrive {
  from {
    opacity: 0.84;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineDrift {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -18px;
  }
}

@keyframes marginNoteFloat {
  from {
    opacity: 0;
    translate: 0 28px;
  }

  to {
    opacity: 1;
    translate: 0 -16px;
  }
}

@keyframes listItemRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-bg,
  .hero-progress span::before,
  .section,
  .feature-photo,
  .panel,
  .line-art,
  .margin-note,
  .feature-list li {
    animation: none;
  }

  .nav-cta,
  .button,
  .feature-photo img,
  .feature-photo figcaption,
  .feature-list li {
    transition: none;
  }

  .slide-two {
    opacity: 1;
  }
}

@media (min-width: 900px) and (max-width: 1320px) {
  :root {
    --radius-image: 56px;
    --max: calc(100vw - 64px);
  }

  .nav {
    min-height: 110px;
  }

  .brand {
    font-size: 26px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    font-size: 27px;
  }

  .nav-cta,
  .button {
    min-height: 64px;
    font-size: 18px;
  }

  .hero {
    height: 980px;
    min-height: calc(100vh - 110px);
  }

  h1 {
    font-size: 78px;
  }

  h2 {
    font-size: 64px;
  }

  p,
  .lead {
    font-size: 22px;
  }

  .section h2 {
    font-size: 38px;
  }

  .section p,
  .section .lead {
    font-size: 18px;
  }

  .feature-photo,
  .about-photo {
    height: 620px;
  }

  .feature-list,
  .contact-lines {
    font-size: 17px;
  }

  .section::before,
  .section::after,
  .margin-note,
  .line-art {
    display: none;
  }
}

@media (max-width: 899px) {
  :root {
    --gutter: 16px;
    --radius-image: 24px;
    --radius-panel: 16px;
  }

  .nav {
    min-height: 74px;
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
    font-size: 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .nav-cta,
  .button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero {
    height: 680px;
    min-height: 680px;
  }

  .hero-grid {
    padding: 0 20px 42px;
  }

  .eyebrow,
  .label {
    margin-bottom: 16px;
    font-size: 12px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  p,
  .lead {
    margin-top: 20px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .hero-progress {
    margin-top: 34px;
  }

  .section {
    animation-range: entry 0% cover 18%;
  }

  .section::before,
  .section::after,
  .margin-note,
  .line-art,
  .page-shell::before,
  .page-shell::after {
    display: none;
  }

  .feature-photo,
  .about-photo {
    height: 390px;
  }

  .feature-photo figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
  }

  .panel {
    padding: 34px 28px;
  }

  .about-proof img {
    width: 86px;
    height: 86px;
  }

  .feature-list,
  .contact-lines {
    gap: 14px;
    margin-top: 28px;
    font-size: 16px;
  }

  .feature-list li {
    grid-template-columns: 18px 1fr;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* ==== FINAL CONTACT + FOOTER FIXES ==== */
.contact-fullwidth{
  width:min(1200px,calc(100vw - 64px));
  padding:5rem 0;
}
.contact-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4rem;
  align-items:start;
}
.contact-info p{max-width:36rem;}
.contact-form{display:flex;flex-direction:column;gap:1rem;}
.contact-form .row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.contact-form input,.contact-form textarea{
width:100%;padding:.9rem 1rem;border:1px solid var(--border);
font:16px Inter,sans-serif;background:#fff;border-radius:6px;
}
.contact-form textarea{min-height:180px;}
.contact-form .button{width:max-content;margin-top:.5rem;}

.footer-wide{
width:100%!important;
margin-top:3rem;
padding:3rem 0;
background:#faf8f4;
border-top:1px solid var(--border);
}
.footer-wide .footer-inner{
width:min(1200px,calc(100vw - 64px));
margin:0 auto;
display:grid;
grid-template-columns:2fr 1fr;
gap:2rem;
font-family:Inter,sans-serif!important;
text-transform:none!important;
letter-spacing:0!important;
font-size:16px!important;
}
.footer-wide h3{
font-family:Inter,sans-serif;
font-size:2rem;
line-height:1.2;
margin:0 0 1rem;
letter-spacing:-.04em;
text-transform:none;
}
.footer-wide p{
font-family:Inter,sans-serif;
font-size:1rem;
line-height:1.6;
margin:.4rem 0;
color:var(--text-secondary);
max-width:38rem;
}

@media(max-width:899px){
.contact-wrapper,
.contact-form .row,
.footer-wide .footer-inner{
grid-template-columns:1fr;
}
.contact-fullwidth{width:min(100%,calc(100vw - 32px));}
}
