/*
 * Disentangled Tech — Global Styles
 * Design tokens from colors_and_type.css + all shared component styles
 */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */

:root {
  /* Off-white / page base */
  --color-oat-50:   #FDFAF6;
  --color-oat-100:  #F8F4EE;
  --color-oat-200:  #EDE6DB;
  --color-oat-300:  #DDD3C5;
  --color-oat-400:  #C5B8A6;

  /* Warm neutrals / text */
  --color-bark-100: #E8DDD3;
  --color-bark-200: #C4B5A5;
  --color-bark-400: #A8998A;
  --color-bark-600: #6B5C4E;
  --color-bark-800: #4A3F35;
  --color-bark-900: #1E1510;

  /* Terracotta — primary accent */
  --color-terra-300: #E08B74;
  --color-terra-400: #C2604A;
  --color-terra-500: #A84C38;
  --color-terra-600: #8C3B29;

  /* Deep teal — secondary accent */
  --color-teal-100: #D4E8E9;
  --color-teal-300: #6BAAAD;
  --color-teal-500: #2A6B6E;
  --color-teal-700: #1F4E52;
  --color-teal-900: #132F31;

  /* Backgrounds */
  --bg-page:       var(--color-oat-100);
  --bg-surface:    #FFFFFF;
  --bg-subtle:     var(--color-oat-200);
  --bg-dark:       var(--color-teal-700);
  --bg-dark-deep:  var(--color-teal-900);

  /* Foreground / text */
  --fg-display:        var(--color-bark-900);
  --fg-body:           var(--color-bark-800);
  --fg-muted:          var(--color-bark-400);
  --fg-on-dark:        #FFFFFF;
  --fg-on-dark-muted:  var(--color-teal-100);

  /* Accent */
  --accent-primary:         var(--color-terra-400);
  --accent-primary-hover:   var(--color-terra-500);
  --accent-primary-press:   var(--color-terra-600);
  --accent-secondary:       var(--color-teal-500);
  --accent-secondary-hover: var(--color-teal-700);

  /* Borders */
  --border-default: var(--color-oat-200);
  --border-muted:   var(--color-bark-100);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(30, 21, 16, 0.05);
  --shadow-sm: 0 2px 8px rgba(30, 21, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 21, 16, 0.10);
  --shadow-lg: 0 8px 32px rgba(30, 21, 16, 0.13);

  /* Border radius */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  /* Spacing (8px base) */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  /* Font families */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.05em;
  --tracking-widest:   0.12em;

  /* Max widths */
  --max-w-text:    680px;
  --max-w-content: 1100px;
  --max-w-wide:    1280px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */

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

/* ─── BASE ───────────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-display);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-display);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl));
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--fg-display);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--fg-display);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-body);
}

a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
a:hover { color: var(--accent-primary); }

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

/* ─── LAYOUT ─────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--text {
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* Two-column grid — stacks on mobile */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

.grid-2col--center { align-items: center; }

@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .grid-2col { gap: 80px; }
}

/* Auto-fit card grid */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* ─── SECTION PATTERNS ───────────────────────────────────────────── */

.section        { padding: 64px var(--space-5); }
.section--oat   { background: var(--bg-page); }
.section--subtle { background: var(--bg-subtle); }
.section--dark  { background: var(--bg-dark); }
.section--deep  { background: var(--bg-dark-deep); }

@media (min-width: 768px) {
  .section { padding: 96px var(--space-5); }
}

/* ─── SECTION LABEL ──────────────────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.section-label span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-label--teal::before { background: var(--accent-secondary); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms, color 150ms, border-color 150ms, transform 100ms;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-primary-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 1.5px solid var(--accent-secondary);
}
.btn-secondary:hover { background: var(--accent-secondary); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.8); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: var(--text-lg); }
.btn-sm { padding: 10px 20px; font-size: var(--text-sm); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── HEADER ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, border-color 250ms ease;
}

.site-header.scrolled {
  background: rgba(248, 244, 238, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border-default);
}

.header-inner {
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wordmark { display: flex; flex-direction: column; }

.logo-wordmark__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg-display);
}

.logo-wordmark__tag {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.logo-wordmark__line {
  width: 14px;
  height: 1.5px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.logo-wordmark__tech {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-body);
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms, border-color 150ms;
  display: inline-block;
}

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

.nav-link[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.nav-cta {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms;
  white-space: nowrap;
  line-height: 1;
}
.nav-cta:hover { background: var(--accent-primary-hover); color: #fff; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-body);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}

.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--bg-page);
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-5) var(--space-6);
}

.mobile-nav.open { display: block; }

.mobile-nav .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: var(--text-base);
}

.mobile-nav .nav-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space-4);
  padding: 12px 20px;
  font-size: 15px;
}

@media (min-width: 768px) {
  .desktop-nav      { display: flex; }
  .mobile-menu-btn  { display: none; }
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-bark-900);
  padding: 40px var(--space-5);
}

.footer-inner {
  max-width: var(--max-w-content);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.footer-logo .logo-wordmark__name  { color: var(--color-oat-100); }
.footer-logo .logo-wordmark__tech  { color: var(--color-teal-300); }

.footer-nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-bark-400);
  text-decoration: none;
  transition: color 150ms;
}
.footer-nav a:hover { color: var(--color-oat-100); }

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-bark-600);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ─── PAIN CARDS ─────────────────────────────────────────────────── */

.pain-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 28px 28px 32px;
  border-left: 3px solid var(--accent-primary);
}

.pain-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--fg-display);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.pain-card__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-bark-600);
  line-height: var(--leading-relaxed);
}

/* ─── HERO CALLOUT CARD ─────────────────────────────────────────── */

.hero-callout {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 40px 36px;
}

.hero-callout__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-teal-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-callout__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.hero-callout__step:last-of-type { margin-bottom: 0; }

.hero-callout__step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1;
  flex-shrink: 0;
}

.hero-callout__step-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-teal-100);
  line-height: var(--leading-normal);
  padding-top: 4px;
}

.hero-callout__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(212, 232, 233, 0.2);
}

.hero-callout__footer span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-teal-300);
}

/* ─── STEP LIST ──────────────────────────────────────────────────── */

.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-default);
}

.step:first-child { padding-top: 0; }
.step:last-child  { border-bottom: none; padding-bottom: 0; }

.step__num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.step__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-display);
  margin-bottom: var(--space-2);
}

.step__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-bark-600);
  line-height: var(--leading-relaxed);
}

/* ─── CARD (numbered) ────────────────────────────────────────────── */

.card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 28px 28px 32px;
}

.card--surface { background: var(--bg-surface); }

.card__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg-display);
  margin-bottom: var(--space-2);
}

.card__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-bark-600);
  line-height: var(--leading-relaxed);
}

/* ─── CHECKLIST ──────────────────────────────────────────────────── */

.checklist { display: flex; flex-direction: column; }

.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-default);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-item__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checklist-item__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-body);
  line-height: var(--leading-normal);
}

/* ─── BULLET LIST ────────────────────────────────────────────────── */

.bullet-list { display: flex; flex-direction: column; gap: var(--space-4); }

.bullet-item { display: flex; gap: var(--space-3); }

.bullet-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ─── PRICING CARD ───────────────────────────────────────────────── */

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.pricing-card__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  color: var(--fg-display);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.pricing-card__note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
}

.pricing-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--fg-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

/* ─── WHAT'S INCLUDED LIST ───────────────────────────────────────── */

.included-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.included-item { display: flex; gap: var(--space-3); align-items: flex-start; }

.included-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

.included-item__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--fg-body);
  line-height: var(--leading-relaxed);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; }

.faq details { border-bottom: 1px solid var(--border-default); }
.faq details:first-child { border-top: 1px solid var(--border-default); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg-display);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8998A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 200ms;
}

.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] summary { color: var(--accent-primary); }

.faq__answer {
  padding: 0 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--fg-body);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

/* ─── PROOF POINT ────────────────────────────────────────────────── */

.proof-stat {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 600;
  color: var(--fg-on-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.proof-stat-sub {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-teal-300);
  line-height: var(--leading-snug);
}

/* ─── CTA SECTION (dark deep) ────────────────────────────────────── */

.cta-section {
  background: var(--bg-dark-deep);
  padding: 96px var(--space-5);
  text-align: center;
}

.cta-section__inner {
  max-width: var(--max-w-text);
  margin-inline: auto;
}

.cta-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.cta-section__eyebrow::before,
.cta-section__eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-terra-300);
}

.cta-section__eyebrow span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-teal-300);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-on-dark);
  margin-bottom: var(--space-5);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--color-teal-100);
  margin-bottom: var(--space-7);
}

.cta-section__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── ABOUT PHOTO BLOCK ──────────────────────────────────────────── */

.photo-wrap {
  display: flex;
  justify-content: center;
}

.photo-block {
  position: relative;
  display: inline-block;
}

.photo-block__img {
  width: 280px;
  height: 340px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 768px) {
  .photo-block__img {
    width: 340px;
    height: 420px;
  }
}

.photo-block__badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.photo-block__badge span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── CREDENTIALS CARD ───────────────────────────────────────────── */

.creds-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.creds-row {
  display: flex;
  gap: var(--space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-default);
}

.creds-row:last-child  { border-bottom: none; padding-bottom: 0; }
.creds-row:first-child { padding-top: 0; }

.creds-row__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 90px;
  flex-shrink: 0;
  padding-top: 1px;
}

.creds-row__value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--fg-body);
  line-height: var(--leading-normal);
}

/* ─── ESSAY (About page long-form) ──────────────────────────────── */

.essay p + p { margin-top: var(--space-5); }

.essay .pull-tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--fg-display);
  line-height: var(--leading-snug);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}

/* ─── CONTACT FORM ───────────────────────────────────────────────── */

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.form-group { display: flex; flex-direction: column; gap: var(--space-5); }

.field { display: flex; flex-direction: column; gap: var(--space-2); }

.field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-body);
}

.field .field-hint {
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-body);
  background: var(--bg-surface);
  outline: none;
  transition: border-color 150ms;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent-secondary);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8998A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.field-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--fg-muted);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.form-success.visible { display: block; }

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--fg-display);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: 15px;
  color: var(--fg-body);
  line-height: var(--leading-relaxed);
}

.form-error {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-terra-500);
  margin-top: var(--space-3);
  display: none;
  text-align: center;
}

.form-error.visible { display: block; }

/* ─── UTILITY ────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted   { color: var(--fg-muted); }

.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
