
/* ============================================================
   1. DESIGN TOKENS (CSS Variables)
   ============================================================ */
:root {
  --paper:    #F7F4EE;
  --ink:      #1C1B19;
  --ink-soft: #54514B;
  --accent:   #1F4D46;
  --accent-2: #C2703D;
  --line:     #E2DCD1;
  --card:     #FFFFFF;
  --dark:     #161513;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --container: 1140px;
  --gutter: 24px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { max-width: 60ch; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 7.5rem 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  background-color: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  background-color: #183b36;
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.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;
}

/* ============================================================
   5. STICKY HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background-color: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header--scrolled {
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
  position: relative;
}
.site-nav__list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after { width: 100%; }
.site-nav__list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  max-width: 14ch;
}

.hero__subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero__cta {
  margin-top: 0.5rem;
}

/* Portrait placeholder */
.hero__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.875rem;
  overflow: hidden;
}
.hero__portrait svg {
  width: 64px;
  height: 64px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.2;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   7. SERVICE TILES
   ============================================================ */
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 600px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; }
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tile__icon {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.25rem;
}

.tile h3 {
  font-size: 1.1875rem;
  font-weight: 500;
}

.tile p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ============================================================
   8. ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}

.about__visual {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 0.875rem;
  overflow: hidden;
}
.about__visual svg {
  width: 56px;
  height: 56px;
  stroke: var(--paper);
  fill: none;
  stroke-width: 1.2;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__text p {
  line-height: 1.7;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.credential {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(31, 77, 70, 0.08);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ============================================================
   9. SERVICES DARK
   ============================================================ */
.services-dark {
  background-color: var(--dark);
  color: var(--paper);
}
.services-dark h2,
.services-dark h3 {
  color: var(--paper);
}
.service-card__icon {
  width: 40px;
  height: 40px;
  stroke: var(--paper);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}
.services-dark .eyebrow {
  color: var(--accent-2);
}
.services-dark p {
  color: rgba(255,255,255,0.72);
  max-width: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 600px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card p + p {
  margin-top: 0.5rem;
}

/* ============================================================
   10. RESULTS / STATS
   ============================================================ */
.results {
  text-align: center;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 3rem auto;
  max-width: 960px;
}
@media (min-width: 600px) {
  .results-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.stat__context {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
  opacity: 0.75;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.results .btn {
  margin-top: 2rem;
}

/* ============================================================
   11. GALLERY / PROOF
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease-out);
  cursor: default;
}
.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.gallery-item__image svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.2;
}
.gallery-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__caption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* Testimonials (hidden for now) */
.testimonials-strip {
  display: none;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial blockquote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   12. FINAL CTA BAND
   ============================================================ */
.cta-band {
  background-color: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}
.cta-band .btn {
  background-color: var(--paper);
  color: var(--ink);
}
.cta-band .btn:hover {
  background-color: #e8e3d9;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 600px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--paper);
  font-weight: 500;
}

.footer__tagline {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.footer__links a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.footer__links a:hover { color: var(--paper); }
.footer__links a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================================================
   14. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger */
.hero__stagger {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.7s var(--ease-out) forwards;
}
.hero__stagger:nth-child(1) { animation-delay: 0ms; }
.hero__stagger:nth-child(2) { animation-delay: 80ms; }
.hero__stagger:nth-child(3) { animation-delay: 160ms; }
.hero__stagger:nth-child(4) { animation-delay: 240ms; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portrait reveal */
.hero__portrait {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.7s var(--ease-out) 320ms forwards;
}

/* ============================================================
   15. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__stagger {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero__portrait {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   16. RESPONSIVE — MOBILE NAV
   ============================================================ */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  .site-nav__list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--paper);
    flex-direction: column;
    gap: 1rem;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    border-left: 1px solid var(--line);
    box-shadow: -4px 0 20px rgba(0,0,0,0.06);
    align-items: flex-start;
    z-index: 100;
  }
  .site-nav__list.is-open {
    transform: translateX(0);
  }

  .site-nav__list a {
    font-size: 1.0625rem;
  }

  .site-nav .btn {
    display: none;
  }

  .site-nav__list .btn--mobile {
    display: inline-flex;
    margin-top: 0.5rem;
  }
}

@media (min-width: 768px) {
  .site-nav__list .btn--mobile { display: none; }
}

/* ============================================================
   17. FOCUS STYLES (global)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
