:root {
  --ink: #1c1b19;
  --ink-soft: #3d3a35;
  --mist: #f3f0eb;
  --stone: #e7e1d8;
  --sage: #5f6d52;
  --sage-deep: #4a5640;
  --paper: #faf8f5;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #ebe6dc 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, #dde3d4 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-hero-top {
  background-color: #2a2926;
}

body.is-past-hero {
  background-color: #ffffff;
}

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

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px))
    clamp(1.25rem, 4vw, 3rem) 0.55rem;
  background: transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    color 0.3s ease;
  color: var(--white);
}

.site-header.is-scrolled {
  background: #ffffff;
  backdrop-filter: none;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 27, 25, 0.06);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-cta {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.45rem 1.35rem;
  border: 1px solid currentColor;
  opacity: 0.9;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.header-cta:hover {
  opacity: 1;
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.site-header.is-scrolled .header-cta:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem)
    clamp(5.5rem, 12vh, 7rem);
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: hero-drift 18s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 26%,
    rgba(12, 11, 10, 0.48) 50%,
    rgba(12, 11, 10, 0.88) 78%,
    rgba(12, 11, 10, 0.96) 100%
  );
}

@media (max-width: 899px) {
  .hero-veil {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 22%,
      rgba(12, 11, 10, 0.45) 45%,
      rgba(12, 11, 10, 0.88) 72%,
      rgba(12, 11, 10, 0.96) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero h1,
.role {
  font-family: var(--font-display);
  font-size: clamp(3.55rem, 12.5vw, 4.1rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.98;
  margin: 0 0 1.35rem;
  max-width: none;
  white-space: normal;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

@media (min-width: 900px) {
  .brand {
    margin-bottom: 0.55rem;
  }

  .hero h1,
  .role {
    margin-bottom: 1rem;
  }
}

@media (min-width: 900px) {
  .hero-content {
    max-width: min(92vw, 56rem);
  }

  .brand {
    font-size: clamp(2.1rem, 2.8vw, 2.85rem);
  }

  .hero h1,
  .role {
    font-size: clamp(3rem, 4.2vw, 4.35rem);
    white-space: nowrap;
    max-width: none;
  }
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.35rem;
  font-weight: 300;
  opacity: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.22;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

@media (min-width: 768px) {
  .lede {
    font-size: 1.3rem;
    max-width: 40ch;
    line-height: 1.45;
  }
}

@media (min-width: 900px) {
  .hero h1,
  .role {
    line-height: 1.12;
  }
}

.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline: auto;
  color: var(--white);
  opacity: 0;
  animation:
    fade-in 0.9s ease 0.8s forwards,
    scroll-bounce 1.8s ease-in-out 1.7s infinite;
}

.scroll-hint-arrow {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  margin: 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 0.35rem, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.35rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-width: 12.5rem;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border: 1px solid var(--sage);
}

.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.contact .btn-ghost {
  color: var(--ink);
  border-color: rgba(28, 27, 25, 0.25);
}

.contact .btn-ghost:hover {
  background: rgba(28, 27, 25, 0.05);
  border-color: var(--ink);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1rem;
}

.services h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* ——— Services ——— */
.services {
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem)
    clamp(4.5rem, 10vh, 7rem);
}

.services-intro {
  margin-bottom: 2.5rem;
}

.services-intro .eyebrow {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .services-intro .eyebrow {
    font-size: 1rem;
  }
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(28, 27, 25, 0.12);
}

.service-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(28, 27, 25, 0.12);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--sage);
  padding-top: 0.15rem;
}

.service-list h3 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.service-list p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .service-list li {
    grid-template-columns: 5.5rem 1fr;
    gap: 1.75rem;
    padding: 1.25rem 0;
  }

  .service-num {
    font-size: 1.85rem;
  }

  .service-list h3 {
    font-size: 1.85rem;
  }

  .service-list p {
    font-size: 1.3rem;
  }
}

/* ——— Contact ——— */
.contact {
  margin: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vh, 4.5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background:
    linear-gradient(145deg, var(--stone) 0%, #dfe5d6 100%);
  overflow: hidden;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: none;
}

.contact-photo-wrap {
  order: -1;
  width: 100%;
  height: clamp(14rem, 48vw, 20rem);
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.1);
}

.contact-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 18%;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.break-mobile {
  display: block;
}

@media (min-width: 900px) {
  .break-mobile {
    display: none;
  }
}

.contact-copy .eyebrow {
  font-size: 0.9rem;
}

.contact .contact-name {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  max-width: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 900px) {
  .contact {
    padding: clamp(2rem, 4vh, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  }

  .contact-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    gap: 2rem;
    min-height: 24rem;
  }

  .contact-copy {
    order: 2;
    padding: 0 0.75rem 0 0.5rem;
    justify-content: flex-start;
  }

  .contact-mid {
    margin-top: auto;
    margin-bottom: 1.75rem;
    transform: translateY(0.85rem);
  }

  .contact-mid .eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
  }

  .contact-mid h2 {
    margin: 0 0 0.55rem;
  }

  .contact-name {
    margin: 0 0 0.75rem;
  }


  .contact-photo-wrap {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 100%;
    align-self: stretch;
  }

  .contact-actions {
    margin-top: 0;
    max-width: 40rem;
  }

  .contact-actions .btn {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }
}

.contact p:not(.eyebrow) {
  margin: 0 0 1.75rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.55;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.contact-actions .btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.contact-actions .btn-ghost {
  order: 1;
}

.contact-actions .btn-primary {
  order: 2;
}

@media (min-width: 640px) and (max-width: 899px) {
  .contact-actions {
    grid-template-columns: 1fr 1fr;
  }

  .contact-actions .btn-primary,
  .contact-actions .btn-ghost {
    order: 0;
  }
}

@media (min-width: 900px) {
  .contact-actions .btn-ghost {
    order: 1;
  }

  .contact-actions .btn-primary {
    order: 2;
  }

  .contact-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .contact-mid > p {
    margin: 0;
    font-size: 1.3rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-note {
  margin: 0;
  opacity: 0.7;
}

.site-footer p {
  margin: 0;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .brand,
  .hero h1,
  .lede,
  .scroll-hint,
  .hero-img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
