:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #0e0d16;
  --bg-alt: #13121a;
  --text: #f5f3ef;
  --muted: #a9a4a0;
  --accent: #e0b07a;
  /* "Few are well-designed" (hero) + phrase tags, CTA line – change hex to try other colors */
  --accent-brass: #c49f63;
  --border-subtle: rgba(244, 239, 232, 0.08);
  --max-width: 960px;
  --radius-lg: 18px;
  --motif-size: 5px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #18161f 0, var(--bg) 50%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  orphans: 2;
  widows: 2;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(14, 13, 22, 0.94), transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-family: "Minion Pro", "Minion", serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 160ms ease-out;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-flowfield-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Blurred silhouettes – full viewport width, subtle morph */
.hero-silhouettes {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  margin-left: -50vw;
  z-index: 0;
  pointer-events: none;
}

.hero-silhouettes-svg {
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(245, 243, 239, 0.22);
  filter: blur(50px);
  animation:
    hero-silhouettes-glow-on 1.8s ease-in 1s both,
    hero-silhouettes-drift 10s ease-in-out 2.8s infinite;
}

@keyframes hero-silhouettes-glow-on {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-silhouettes-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5%); }
}

.hero-silhouettes-svg .silhouette-1 { opacity: 0.95; }
.hero-silhouettes-svg .silhouette-2 { opacity: 1; }
.hero-silhouettes-svg .silhouette-3 { opacity: 0.9; }
.hero-silhouettes-svg .silhouette-4 { opacity: 0.75; }
.hero-silhouettes-svg .silhouette-5 { opacity: 0.8; }

/* Hero: self-contained block with its own dark overlay; ends cleanly above the next section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 13, 22, 0.88) 0%,
    rgba(14, 13, 22, 0.75) 50%,
    rgba(14, 13, 22, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@keyframes hero-accent-dissolve {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-subtitle-dissolve {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-title-line1-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes eyebrow-draw-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes eyebrow-wipe-text {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(196, 184, 168, 0.9);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--border-subtle);
  transform-origin: left;
  animation: eyebrow-draw-line 0.5s ease-out 0s both;
}

.eyebrow-text {
  clip-path: inset(0 100% 0 0);
  animation: eyebrow-wipe-text 1.2s ease-out 0.5s both;
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
  font-family: "Minion Pro", "Minion", serif;
  font-weight: 400;
}

.hero-title-line1 {
  animation: hero-title-line1-in 1s ease-out 1.5s both;
}

.hero-accent {
  color: #ddab5b;
  animation: hero-accent-dissolve 1s ease-out 3s both;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: calc(1rem + 3px);
  color: rgba(196, 184, 168, 0.92);
  line-height: 1.6;
  orphans: 2;
  widows: 2;
  animation: hero-subtitle-dissolve 2s ease-out 5.1s both;
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border-subtle);
}

#why.section {
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

#why .section-inner {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: radial-gradient(ellipse 100% 60% at 0% 0%, #15141c 0, var(--bg) 55%);
}

#working-with-us.section {
  position: relative;
}

#working-with-us.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 0% 0%, #15141c 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

#working-with-us .section-inner {
  position: relative;
  z-index: 1;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 2.75rem;
  align-items: flex-start;
  position: relative;
}

/* Analog: faint vertical margin line beside body copy */
.section-content {
  position: relative;
}
.section-content::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-subtle) 8%, var(--border-subtle) 92%, transparent);
  opacity: 0.6;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 5.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
/* Motif: small square marker next to section labels */
.section-label::before {
  content: "";
  flex-shrink: 0;
  width: var(--motif-size);
  height: var(--motif-size);
  background: var(--accent);
  opacity: 0.7;
}

.section-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 0.25rem;
  orphans: 2;
  widows: 2;
}

.section-content p {
  margin: 0 0 1.1rem;
  break-inside: avoid;
}

.section-content strong {
  color: rgba(196, 184, 168, 0.82);
  font-weight: 600;
}

.section-content strong.accent-underline {
  border-bottom: 1px solid var(--border-subtle);
}

#working-with-us .section-content strong.accent-underline {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: normal;
  color: #a9a4a0;
}

.section-content p.phrase-tag-block {
  margin-bottom: 0;
}

.section-content .phrase-tag-block + p {
  margin-top: 0.25rem;
  margin-bottom: 1.1rem;
}

.section-content .cta-line {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.section-content .cta-line .accent-text {
  font-size: 1rem;
  color: var(--accent-brass);
}

/* Line with no .accent-text (e.g. "If this sounds like...") — same size as other CTA lines */
.section-content .cta-line:not(:has(.accent-text)) {
  max-width: 34rem;
  margin-top: calc(1.5rem + 12px);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(196, 184, 168, 0.92);
}

.pull-quote {
  margin-top: 1.8rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--border-subtle);
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}


.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 176, 122, 0.35);
  background: linear-gradient(180deg, #2a2622 0%, #1c1a18 50%, #161412 100%);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out,
    border-color 140ms ease-out;
}

.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 176, 122, 0.5);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.cta-reveal {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
}

.cta-reveal .primary-button {
  margin-top: 0;
}

/* CTA: one button; first click turns it into copyable email in place */
.cta-reveal-btn {
  cursor: pointer;
  font: inherit;
  user-select: none;
}

.cta-reveal-btn.is-revealed {
  user-select: text;
  cursor: pointer;
}

.cta-reveal-btn .cta-reveal-email-text,
.cta-reveal-btn .cta-reveal-icon,
.cta-reveal-btn .cta-reveal-copied {
  display: none;
}

.cta-reveal-btn.is-revealed .cta-reveal-email-text,
.cta-reveal-btn.is-revealed .cta-reveal-icon {
  display: inline-flex;
}

.cta-reveal-btn.is-revealed .cta-reveal-label {
  display: none;
}

/* Revealed state: same style as old copy-email pill (muted, border, icon) */
.cta-reveal-btn.is-revealed {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  gap: 0.5rem;
}

.cta-reveal-btn.is-revealed:hover {
  color: var(--text);
  border-color: rgba(196, 159, 99, 0.4);
  background: rgba(196, 159, 99, 0.06);
}

.cta-reveal-btn.is-revealed .cta-reveal-email-text {
  opacity: 0.78;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.cta-reveal-btn .cta-reveal-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.cta-reveal-btn .cta-reveal-icon svg {
  display: block;
}

.cta-reveal-btn.is-copied .cta-reveal-email-text,
.cta-reveal-btn.is-copied .cta-reveal-icon {
  display: none;
}

.cta-reveal-btn.is-copied .cta-reveal-copied {
  display: inline;
  color: var(--accent-brass);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.4rem 0 1.8rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #baafa0;
}

.footer-brand .logo,
.footer-brand .footer-meta {
  color: #baafa0;
}

.footer-meta {
  opacity: 1;
}

/* Phrase tags as subheadlines – own line, uniform small caps, brassy gold */
.phrase-tag {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  font-size: 1em;
  color: var(--accent-brass);
}

#approach .phrase-tag {
  font-size: calc(1em + 1px);
}

.phrase-tag-block {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0;
}


@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .header-inner .logo {
    padding-left: 0.5rem;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-content::before {
    left: -0.5rem;
  }

  .section-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .section-label {
    position: static;
  }

  /* CTA: same in-place behavior on mobile/tablet */
  .cta-reveal {
    justify-content: center;
  }
}

/* Warm “Night Shift”–style tint over the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 200, 150, 0.38);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

