/* ============================================================
   TOKENS — Premium Light / "The Interface"
============================================================ */
:root {
  --pearl: #faf8f4;
  --pearl-deep: #f3efe8;
  --navy: #17253b;
  --navy-soft: #44506a;
  --emerald: #0e5c49;
  --emerald-deep: #0a4438;
  --gold: #b98a2e;
  --gold-soft: #d8b46a;
  --hairline: #e4ddd0;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 500; }

a { color: inherit; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
}
.wordmark-dot { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy-soft);
  transition: color 0.16s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--emerald); }
.nav-cta {
  color: var(--emerald) !important;
  border: 1px solid var(--emerald);
  border-radius: 999px;
  padding: 7px 18px;
  transition: all 0.16s ease !important;
}
.nav-cta:hover { background: var(--emerald); color: var(--pearl) !important; }

/* ============================================================
   HERO + INTERFACE LINE MOTIF
============================================================ */
.hero {
  position: relative;
  padding: 130px 0 150px;
  overflow: hidden;
}
.interface-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.interface-line svg { width: 100%; height: 100%; display: block; }
.iface-stroke {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
.iface-gold { stroke: var(--gold-soft); }
.iface-emerald { stroke: var(--emerald); opacity: 0.5; animation-delay: 0.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-text { max-width: 620px; }
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.lede {
  font-size: 18.5px;
  color: var(--navy-soft);
  max-width: 58ch;
  margin: 26px 0 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-solid, .btn-line {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.btn-solid {
  background: var(--emerald);
  color: var(--pearl);
}
.btn-solid:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.btn-line {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-line:hover { border-color: var(--emerald); color: var(--emerald); }

/* ============================================================
   SECTION SHARED
============================================================ */
section { padding: 84px 0; }

.sect-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}
.sect-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.01em;
}
/* the interface mark: two short meeting strokes — the motif in miniature */
.iface-mark {
  display: inline-block;
  width: 40px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.iface-mark::before, .iface-mark::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
}
.iface-mark::before {
  top: 3px;
  background: var(--gold-soft);
  transform: rotate(-4deg);
}
.iface-mark::after {
  bottom: 3px;
  background: var(--emerald);
  transform: rotate(4deg);
}
.iface-mark-gold::after { background: var(--gold); }

/* ============================================================
   WHO I WORK WITH
============================================================ */
.clients { padding-top: 30px; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.client-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 37, 59, 0.07);
}
.client-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.client-card p { color: var(--navy-soft); font-size: 15px; margin: 0; }

/* ============================================================
   SERVICES
============================================================ */
.services {
  background-color: var(--pearl-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%230e5c49' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M28 8 L52 22 L52 50 L28 64 L4 50 L4 22 Z'/%3E%3Cpath d='M28 64 L52 78 L52 97 M28 64 L4 78 L4 97'/%3E%3C/g%3E%3C/svg%3E");
}
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.service-row:last-child { border-bottom: none; }
.service-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--emerald);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-row h3 { font-size: 22px; }
.service-row p { color: var(--navy-soft); font-size: 15.5px; margin: 0; }

/* ============================================================
   SELECTED WORK
============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-item {
  border-top: 2px solid var(--gold-soft);
  padding-top: 20px;
}
.work-domain {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
}
.work-desc {
  color: var(--navy-soft);
  font-size: 15px;
  margin: 0 0 10px;
}
.work-how {
  font-size: 13.5px;
  color: var(--emerald);
  margin: 0 0 10px;
  line-height: 1.5;
}
.work-context {
  font-size: 13px;
  font-style: italic;
  color: #8a8272;
  margin: 0;
}

.section-bridge {
  font-size: 15.5px;
  font-style: italic;
  color: var(--navy-soft);
  max-width: 56ch;
  margin: -24px 0 40px;
}

/* ============================================================
   INSIGHTS
============================================================ */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.insight-card {
  display: block;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px 28px 24px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 37, 59, 0.07);
}
.insight-tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.insight-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.insight-read {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald);
}

/* ============================================================
   INSIGHT ARTICLE PAGES
============================================================ */
.article-header {
  padding: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-soft);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--emerald); }

.article-hero { padding: 64px 0 20px; }
.article-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.article-hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.18;
  max-width: 20ch;
}
.article-lede {
  font-size: 18px;
  color: var(--navy-soft);
  max-width: 62ch;
  margin: 22px 0 0;
}

.article-body {
  max-width: 680px;
  padding: 20px 0 40px;
}
.article-body h2 {
  font-size: 24px;
  margin: 42px 0 16px;
}
.article-body p {
  font-size: 16.5px;
  color: var(--navy-soft);
  margin: 0 0 20px;
}
.article-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--navy-soft);
  font-size: 16.5px;
}
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--gold); }
.article-body strong { color: var(--navy); }

.article-expertise {
  max-width: 680px;
  background: var(--pearl-deep);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 26px 30px;
  margin: 12px 0 44px;
}
.article-expertise p {
  color: var(--navy);
  font-size: 16.5px;
  margin: 0;
}
.article-expertise p:first-child { margin-bottom: 12px; }

.article-cta {
  max-width: 680px;
  padding: 8px 0 60px;
}
.article-cta .btn-solid { margin-right: 14px; }

/* ============================================================
   FAQ
============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 22px;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 18.5px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.faq-item p {
  color: var(--navy-soft);
  font-size: 15.5px;
  margin: 0;
}
.faq-item p a {
  color: var(--emerald);
  text-decoration: underline;
}

.engagement {
  background: var(--navy);
  color: var(--pearl);
}
.sect-head-light h2 { color: var(--pearl); }
.engagement-text {
  font-size: 17.5px;
  line-height: 1.7;
  color: #cdd4e2;
  max-width: 68ch;
  margin: 0;
}

/* ============================================================
   ABOUT
============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 100px;
}
.about-photo img {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--hairline);
  filter: saturate(0.92) contrast(1.04);
}
.photo-caption {
  font-size: 12.5px;
  font-style: italic;
  color: #8a8272 !important;
  margin: 10px 2px 0 !important;
}
.about-text p {
  color: var(--navy-soft);
  font-size: 16.5px;
  margin: 0 0 18px;
}
.about-punch {
  font-family: var(--serif);
  font-size: 22px !important;
  line-height: 1.4;
  color: var(--emerald) !important;
  margin: 26px 0 !important;
}
.about-cred {
  font-size: 14px !important;
  color: #8a8272 !important;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  position: relative;
  text-align: center;
  padding: 120px 0 110px;
  overflow: hidden;
}
.interface-line-flip { opacity: 0.7; }
.contact-inner { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 26px; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 3px;
  transition: border-color 0.16s ease;
}
.contact-email:hover { border-color: var(--emerald); }
.contact-meta { color: var(--navy-soft); font-size: 15px; margin-top: 22px; }
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* --- trust line under hero --- */
.trust-line {
  margin: 30px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #8a8272;
}

/* --- hero illustration: materials -> business --- */
.hero-visual { width: 100%; }
.hero-visual svg { width: 100%; height: auto; overflow: visible; }

.molecule {
  animation: molecule-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: 100px 190px;
}
@keyframes molecule-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.orbit-ring {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  opacity: 0.35;
  animation: spin 40s linear infinite;
  transform-origin: 100px 190px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.molecule line {
  stroke: var(--emerald);
  stroke-width: 1.3;
  opacity: 0.55;
}
.molecule polygon {
  fill: rgba(14, 92, 73, 0.05);
  stroke: var(--emerald);
  stroke-width: 1.3;
  opacity: 0.7;
}
.atom {
  fill: var(--pearl);
  stroke: var(--emerald);
  stroke-width: 2;
}
.atom-lg { fill: var(--emerald); }

.bridge {
  stroke-width: 2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.bars .baseline { stroke: var(--hairline); stroke-width: 1.5; }
.bar {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.bar-1 { animation-delay: 1.5s; }
.bar-2 { animation-delay: 1.62s; }
.bar-3 { animation-delay: 1.74s; }
.bar-4 { animation-delay: 1.86s; }
@keyframes bar-rise {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
.trend {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  opacity: 0;
  animation: fade-in 0.6s ease 2.3s forwards;
}
.trend-dot {
  fill: var(--pearl);
  stroke: var(--navy);
  stroke-width: 1.5;
  opacity: 0;
  animation: fade-in 0.6s ease 2.3s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.visual-label {
  font-family: var(--sans);
  font-style: italic;
  font-size: 13px;
  fill: #8a8272;
  text-anchor: middle;
}

/* --- download lead-capture card --- */
.download-card {
  margin: 64px auto 0;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 36px 36px 32px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(23, 37, 59, 0.06);
}
.download-intro h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.download-intro p {
  color: var(--navy-soft);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--emerald);
}
.btn-download {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  width: 100%;
}
.form-note {
  font-size: 13.5px;
  color: var(--emerald);
  margin: 12px 0 0;
  min-height: 1em;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 44px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #8a8272;
}

/* ============================================================
   REVEAL ON SCROLL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ACCESSIBILITY & RESPONSIVE
============================================================ */
a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iface-stroke { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .molecule, .bar, .trend, .trend-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
  .orbit-ring { animation: none; }
  * { transition-duration: 0.001ms !important; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .client-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { position: static; max-width: 240px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 90px 0 110px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .download-card { padding: 28px 22px; }
}
