/* ---------- TOKENS ---------- */
:root {
  --bg: #f4f1ea;
  --ink: #171f1d;
  --ink-soft: #4a5450;
  --line: rgba(23, 31, 29, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --champagne: #c9a96a;
  --white: #ffffff;
  --max: 80rem;

  --font-display: "DM Serif Display", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

main { position: relative; isolation: isolate; }

main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(rgba(23, 31, 29, 0.04) 1px, transparent 1px) 0 0 / 3px 3px,
    var(--bg);
  opacity: 0.6;
}

/* ---------- UTILITIES ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }
.eyebrow--ink   { color: var(--ink-soft); }
.eyebrow a,
.contact__footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

/* ---------- NAV ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--white);
}
@media (min-width: 768px)  { .nav { padding: 1.5rem 2rem; } }
@media (min-width: 1024px) { .nav { padding: 1.75rem 3rem; } }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav__inner { grid-template-columns: 1fr auto 1fr; }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.nav__logo-sep {
  width: 1px;
  height: 0.9em;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
}

.nav__links {
  display: none;
  justify-self: center;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 768px) { .nav__links { display: inline-flex; } }
.nav__links a { transition: color 0.3s ease; }
.nav__links a:hover { color: var(--champagne); }
.nav__star {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.55rem;
}

.nav__cta {
  display: none;
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.3s ease;
}
.nav__cta:hover { text-decoration-color: var(--white); }
@media (min-width: 768px) { .nav__cta { display: inline-block; } }

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
}
@media (min-width: 768px) { .nav__burger { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.hero__slide.is-active { opacity: 1; }

.hero__content {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 6rem 1.25rem 2.5rem;
}
@media (min-width: 768px)  { .hero__content { padding: 7rem 2rem 3.5rem; } }
@media (min-width: 1024px) { .hero__content { padding: 7rem 3rem 4rem; } }

.hero__content > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.hero__headline-row {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero__headline-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 2.5rem;
  }
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin: 0;
  flex: 1;
}
.hero__headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero__headline.is-in .word { opacity: 1; transform: translateY(0); }
.hero__headline .word:nth-child(1) { transition-delay: 0.05s; }
.hero__headline .word:nth-child(2) { transition-delay: 0.15s; }
.hero__headline .word:nth-child(4) { transition-delay: 0.30s; }
.hero__headline .word:nth-child(5) { transition-delay: 0.40s; }

.hero__controls {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.hero__arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  padding: 0.25rem;
}
.hero__arrow:hover { color: var(--white); }

.hero__divider {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
@media (min-width: 768px) { .hero__divider { margin-top: 2rem; } }

.hero__sub {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease 0.5s, transform 0.9s ease 0.5s;
}
.hero.is-loaded .hero__sub { opacity: 1; transform: none; }

.eyebrow,
.hero__divider,
.hero__controls {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero__content .eyebrow { transition-delay: 0.1s; }
.hero__divider          { transition-delay: 0.2s; }
.hero__controls         { transition-delay: 0.4s; }
.hero.is-loaded .eyebrow,
.hero.is-loaded .hero__divider,
.hero.is-loaded .hero__controls { opacity: 1; transform: none; }

/* ---------- SERVICES (WHAT I DO) ---------- */
.services {
  padding: 5rem 1.25rem 6rem;
  background: var(--bg);
}
@media (min-width: 768px)  { .services { padding: 6rem 2rem 7rem; } }
@media (min-width: 1024px) { .services { padding: 7rem 3rem 9rem; } }

.services__inner { max-width: var(--max); margin: 0 auto; }

.services__head {
  max-width: 56rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.services__head.is-in { opacity: 1; transform: translateY(0); }

.services__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0.75rem 0 0;
}

.services__lede {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.services__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px)  { .services__grid { gap: 3.5rem; } }
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.service.is-in { opacity: 1; transform: translateY(0); }
.service:nth-child(1) { transition-delay: 0ms; }
.service:nth-child(2) { transition-delay: 120ms; }
.service:nth-child(3) { transition-delay: 240ms; }

.service__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.service__image {
  aspect-ratio: 3 / 4;
  width: 100%;
  background-color: #d8d3c6;
  overflow: hidden;
}
.service__image-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service__caption {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.service__body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 5rem 1.25rem 6rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px)  { .about { padding: 6rem 2rem 7rem; } }
@media (min-width: 1024px) { .about { padding: 7rem 3rem 9rem; } }

.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: center;
  }
}

.about__media {
  position: relative;
  width: min(82vw, 23rem);
  justify-self: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
@media (min-width: 768px) {
  .about__media {
    width: min(62vw, 28rem);
  }
}
@media (min-width: 1024px) {
  .about__media {
    width: min(100%, 31rem);
    justify-self: start;
  }
}
.about__media.is-in { opacity: 1; transform: translateY(0); }

.about__portrait {
  width: 100%;
  height: auto;
  background-color: #d8d3c6;
  border-radius: 0.25rem;
  display: block;
  object-fit: contain;
}

.about__tag {
  position: absolute;
  left: 1rem;
  bottom: -1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-radius: 0.25rem;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) { .about__tag { left: 1.5rem; } }
.about__tag-line {
  width: 1.25rem;
  height: 1px;
  background: var(--champagne);
  display: inline-block;
}

.about__content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease 0.1s, transform 0.9s ease 0.1s;
}
.about__content.is-in { opacity: 1; transform: translateY(0); }

.about__heading {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.about__body {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 42rem;
}
.about__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.about__body p:last-child { color: var(--ink); }

.about__stats {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .about__stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.about__stat { display: flex; flex-direction: column; gap: 0.35rem; }
.about__stat dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin: 0;
}
.about__stat dd {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.about__stat a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}

/* ---------- CONTACT ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.contact__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2400&q=80');
  background-size: cover;
  background-position: center -20rem;
}

.contact__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    var(--bg) 38%,
    rgba(244, 241, 234, 0.6) 55%,
    rgba(244, 241, 234, 0) 72%,
    rgba(244, 241, 234, 0) 92%,
    rgba(23, 35, 31, 0.35) 100%
  );
}

.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}
@media (min-width: 768px)  { .contact__inner { padding: 4rem 2rem 6rem; } }
@media (min-width: 1024px) { .contact__inner { padding: 5rem 3rem 7rem; } }

.contact__card {
  background: rgba(23, 35, 31, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(23, 35, 29, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  padding: 2.5rem 1.5rem;
  border-radius: 0.25rem;
}
@media (min-width: 768px)  { .contact__card { padding: 3rem 2.5rem; } }
@media (min-width: 1024px) { .contact__card { padding: 3.5rem; } }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--white);
  margin: 0.75rem 0 0;
}

.contact__lede {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.contact__lede a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.contact__meta {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact__meta-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.contact__meta-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  min-width: 7rem;
}
.contact__meta-value {
  font-size: 0.875rem;
  color: var(--white);
  margin: 0;
}

.contact__form {
  display: grid;
  gap: 1.5rem;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .contact__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field--hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 0 0.5rem;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--white); }
.field textarea { min-height: 6rem; }

.contact__submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--white);
  padding: 0.5rem 0;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.4s ease;
}
.link-arrow:hover::after { transform: scaleX(0); transform-origin: right; }
.link-arrow__icon {
  display: inline-block;
  transition: transform 0.5s ease;
}
.link-arrow:hover .link-arrow__icon { transform: translateX(4px); }

.contact__note {
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.contact__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
}
.contact__footer p { margin: 0; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
