/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --ink:          #0C0C0A;
  --ink-soft:     #1A1916;
  --parchment:    #F5F3EE;
  --cream:        #EDE9E0;
  --muted:        #7A7671;
  --divider:      rgba(0,0,0,0.10);
  --amber:        #C8913A;
  --amber-hover:  #A87428;
  --amber-light:  #F0D9B0;
  --white:        #FFFFFF;
  --white-dim:    rgba(255,255,255,0.55);
  --white-faint:  rgba(255,255,255,0.08);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --max-w: 1080px;
  --pad:   clamp(1.25rem, 5vw, 3.5rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
textarea, input { font-family: inherit; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Section Base ──────────────────────────────────────── */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--ink); color: var(--white); }

.section-label {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3rem;
}
.section-label--light { color: var(--amber); }

/* ─── Nav ───────────────────────────────────────────────── */
/* Logo ink tokens — flip on scroll */
.nav           { --logo-ink: #FFFFFF; }
.nav--scrolled { --logo-ink: #0C0C0A; }

/* Smooth fill/stroke transitions on inline SVG elements */
.nav__brand svg line,
.nav__brand svg text {
  transition: fill 0.4s var(--ease), stroke 0.4s var(--ease);
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(10px);
  border-color: var(--divider);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.35rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: color 0.3s;
}
.nav--scrolled .nav__brand { color: var(--ink); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links a {
  color: rgba(255,255,255,0.65);
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav--scrolled .nav__links a { color: var(--muted); }
.nav--scrolled .nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--amber) !important;
  font-weight: 500;
}
.nav__cta::after { background: var(--amber) !important; }
.nav--scrolled .nav__cta { color: var(--amber) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s;
}
.nav--scrolled .nav__toggle span { background: var(--ink); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--parchment);
  padding: 1.5rem var(--pad) 2rem;
  gap: 1.5rem;
  border-top: 1px solid var(--divider);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--ink); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn--amber:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 145, 58, 0.3);
}

.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline-light:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at 25% 55%, #1E1C17 0%, var(--ink) 65%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,0.012) 80px,
      rgba(255,255,255,0.012) 81px
    );
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10rem var(--pad) 7rem;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s var(--ease) 0.1s both;
}
.hero__rule {
  width: 3rem;
  height: 1px;
  background: var(--amber);
  margin-bottom: 2.5rem;
  animation: expandWidth 0.8s var(--ease) 0.3s both;
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to   { width: 3rem; opacity: 1; }
}
.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  animation: fadeUp 1s var(--ease) 0.4s both;
}
.hero__headline em {
  font-style: italic;
  color: var(--amber-light);
}
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin-bottom: 3rem;
  animation: fadeUp 1s var(--ease) 0.6s both;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
  animation: fadeUp 1s var(--ease) 0.8s both;
}
.hero__credential {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  animation: fadeUp 1s var(--ease) 1s both;
}
.hero__credential-dot { color: var(--amber); opacity: 0.5; }

.hero__scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: opacity 0.3s;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─── About ─────────────────────────────────────────────── */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
  align-items: start;
}
.pull-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding-top: 2.5rem;
}
.pull-quote::before {
  content: '"';
  font-family: var(--ff-display);
  font-size: 6rem;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  opacity: 0.35;
}
.about__text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.about__text p:last-child { margin-bottom: 0; }

/* ─── Differentiators ───────────────────────────────────── */
.differentiators {
  border-top: 1px solid var(--divider);
  margin-top: 2rem;
}
.diff-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--divider);
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: border-color 0.3s var(--ease);
}
.diff-item:hover { border-left-color: var(--amber); padding-left: 1rem; transition: border-color 0.3s var(--ease), padding 0.3s var(--ease); }
.diff-num {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--amber);
  padding-top: 0.2rem;
}
.diff-content h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.diff-content p {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── Services ──────────────────────────────────────────── */
.services__intro {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 3.5rem;
  margin-top: -1.5rem;
}
.services__list {
  border-top: 1px solid var(--divider);
}
.service-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 3rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--divider);
  border-left: 2px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.service-item:hover {
  border-left-color: var(--amber);
  padding-left: 1.5rem;
}
.service-item__header {
  padding-top: 0.2rem;
}
.service-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 0.75rem;
  transition: opacity 0.25s;
}
.service-item:hover .service-num { opacity: 1; }
.service-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.service-subtitle {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.service-body p {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ─── Case Studies ─────────────────────────────────────── */
.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.case-study {
  position: relative;
  padding-top: 2.5rem;
}
.case-study::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2rem;
  height: 1px;
  background: var(--amber);
}
.case-study__sector {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.case-study__title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.case-study__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.case-study__outcome {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.case-study__metric {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--amber-light);
  line-height: 1;
}
.case-study__metric-label {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* ─── CTA Band ──────────────────────────────────────────── */
.cta-band {
  background: var(--amber);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: left;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem 5rem;
  align-items: center;
}
.cta-band__headline {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  grid-column: 1;
}
.cta-band__sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(12,12,10,0.6);
  grid-column: 1;
  margin-top: -2.25rem;
}
.cta-band .btn--dark {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact { background: var(--ink-soft); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact__headline {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}
.contact__sub {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 2rem;
}
.contact__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(200,145,58,0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s, gap 0.25s;
}
.contact__linkedin span { transition: transform 0.25s var(--ease); }
.contact__linkedin:hover span { transform: translateX(4px); }
.contact__linkedin:hover { border-color: var(--amber); }

.contact__form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--white);
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.07);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-right: auto;
}
.footer__meta {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}
.footer__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  transition: opacity 0.2s;
}
.footer__link:hover { opacity: 0.75; }

/* ─── Scroll Reveal ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .case-studies__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta-band .container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .cta-band .btn--dark {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .service-item {
    grid-template-columns: 5rem 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .service-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-num { font-size: 2rem; margin-bottom: 0.25rem; }

  .diff-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { text-align: center; justify-content: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer__name { margin-right: 0; }
}
