/* ==========================================================================
   Laura Amelli — Portfolio Site
   Design direction: a well-crafted research dossier — warm cream default,
   dark used sparingly for weight, mono type for structural precision,
   serif for human warmth. Restrained, not decorative.
   Single stylesheet for all pages. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color system */
  --color-bg: #EFECE6;        /* warm cream — PRIMARY background */
  --color-text: #1A1A1D;      /* near-black, on cream */
  --color-ink: #0B0B0D;       /* deep black — dark sections only */
  --color-ink-text: #F6F5F2;  /* warm white, on dark */
  --color-ink-muted: rgba(246, 245, 242, 0.62); /* secondary text on dark */
  --color-accent: #6B1E2A;    /* oxblood: hover states, labels, section numbers */
  --color-muted: #6B6B70;     /* grey, secondary text on cream */
  --color-rule: #C9C4B8;      /* hairline rules on cream */
  --color-rule-on-ink: rgba(246, 245, 242, 0.16); /* hairline rules on dark */

  /* Typography */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-size-base: 17px;
  --line-height-base: 1.6;

  /* Layout */
  --measure: 720px;        /* comfortable reading column */
  --content-width: 1200px; /* wide section width */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Motion */
  --transition-fast: 200ms ease;
  --transition-medium: 400ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

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

hr {
  border: 0;
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  font-variation-settings: "opsz" 60;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  font-variation-settings: "opsz" 144;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  font-variation-settings: "opsz" 40;
}

h3 {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 12;
}

em, i {
  font-style: italic;
}

/* Global scannability bold — weight only, never a color change. Pinned to
   600 since Inter Tight only loads up to 600; letting the browser synthesize
   a fake 700 looks chunky. */
strong, b {
  font-weight: 600;
  color: inherit;
}

p {
  margin: 0 0 var(--space-sm);
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Consistent, visible keyboard focus states everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.prose {
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-lg);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.section--ink {
  background-color: var(--color-ink);
  color: var(--color-ink-text);
}

.section--tight {
  padding-block: var(--space-md);
}

.section-heading {
  margin-bottom: var(--space-lg);
}

/* Structural mono eyebrow, e.g. "01 / METHOD" */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section--ink .section-label {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(239, 236, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 12;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.site-logo:hover {
  color: var(--color-text);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text);
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

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

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .main-nav ul {
    gap: var(--space-sm);
  }
}

/* Groups nav + language switcher together on the right side of the header */
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Language switcher — "EN | IT" in mono, active language inert, other a hover link */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.lang-switch__current {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-switch__rule {
  display: block;
  width: 1px;
  height: 12px;
  background-color: var(--color-rule);
}

.lang-switch__link {
  position: relative;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 2px;
}

.lang-switch__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.lang-switch__link:hover {
  color: var(--color-muted);
}

.lang-switch__link:hover::after,
.lang-switch__link:focus-visible::after {
  transform: scaleX(1);
}

/* Mobile nav toggle — hidden on desktop, becomes a hamburger/close icon
   button below 768px. Doubles as the drawer's "close, top-right" control:
   its icon swaps to an X while the drawer is open, and it stays fixed in
   the sticky header rather than living inside the drawer itself. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle__icon--close {
  display: none;
}

.nav-toggle.is-active .nav-toggle__icon--open {
  display: none;
}

.nav-toggle.is-active .nav-toggle__icon--close {
  display: block;
}

/* Dims the page behind the open mobile drawer; click to close */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 11, 13, 0.5);
  z-index: 998;
}

.nav-backdrop[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    /* Keeps the toggle button (and its X icon) paintable above the drawer
       and backdrop below — see z-index note on .site-header. */
    z-index: 1000;
  }

  /* .site-header's backdrop-filter makes it a containing block for its
     position:fixed descendants (same rule as transform/perspective/filter),
     which would resolve the drawer's top/right/bottom against the ~80px
     sticky header bar instead of the viewport, squeezing the full-screen
     drawer into a sliver. Drop the filter here only; the drawer already has
     its own solid background so nothing behind it needs blurring anyway. */
  .site-header {
    backdrop-filter: none;
    /* .site-header (z-index:100) is a lower stacking context than the open
       drawer/backdrop (999/998), so anything painted inside it — including
       .nav-toggle — would be covered and untappable once the drawer opens,
       regardless of any z-index set directly on .nav-toggle itself (a
       descendant can never out-rank a sibling context above its own
       ancestor). Raising the header's own context above both keeps the
       close (X) button reachable while the drawer is open. */
    z-index: 1000;
  }

  /* Nav + language switcher become a right-side slide-in drawer */
  .site-header__right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-lg);
    background-color: var(--color-bg);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 300ms ease-out, opacity 300ms ease-out;
    z-index: 999;
    overflow-y: auto;
  }

  .site-header__right.is-open {
    transform: translateX(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    font-size: 15px;
    /* Drawer background is now cream (var(--color-bg)); inherits the base
       .main-nav a color (var(--color-text), dark) instead of overriding to
       a light color meant for the old dark drawer. */
  }

  .lang-switch {
    margin-top: auto;
  }

  /* Drawer background is now cream; the base .lang-switch__link color
     (var(--color-muted), a grey meant for light backgrounds) already has
     correct contrast here, so the old dark-drawer override is dropped
     rather than swapped, and .lang-switch__current keeps its unconditional
     oxblood from the base rule above regardless of drawer state. */
}

/* --------------------------------------------------------------------------
   5. Hero (home) — dark, full weight
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Top padding cut 40% relative to bottom — closes the gap under the sticky
     header without touching the generous bottom space above the next section. */
  padding-top: calc(var(--space-xl) * 0.6);
  padding-bottom: calc(var(--space-xl) + 3rem);
  text-align: center;
  overflow: hidden;
}

/* Full-section translucent oxblood tint — subtle warmth over the dark hero,
   not a boxed band around the text. Sits behind hero__inner/hero__scroll. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(107, 30, 42, 0.18);
  pointer-events: none;
  z-index: 0;
}

.hero__inner,
.hero__scroll {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 960px;
  margin-inline: auto;
}

.hero__title {
  margin-bottom: var(--space-md);
  line-height: 1.05;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero__title .word {
  display: inline-block;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
}

.eyebrow-pipe {
  color: var(--color-accent);
  margin: 0 12px;
  font-weight: 400;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-ink-muted);
  margin: 32px 0 0;
}

.hero__stats {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: var(--space-md) 0 0;
}

/* A small rhythmic red accent between stats, introducing oxblood early */
.hero__stats-divider {
  color: var(--color-accent);
}

/* Upwork badge tooltips in the hero stat strip — hover on desktop,
   tap-toggled via .is-active on touch (see js/motion.js). */
.strip-badge {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted rgba(217, 133, 148, 0.5);
  transition: border-color 200ms ease;
}

.strip-badge:hover,
.strip-badge:focus {
  border-bottom-color: var(--color-accent);
}

.strip-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 320px;
  padding: 12px 16px;
  background: var(--color-ink);
  color: var(--color-ink-text);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 100;
  white-space: normal;
  text-align: left;
}

.strip-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-accent);
}

.strip-badge:hover .strip-tooltip,
.strip-badge:focus .strip-tooltip,
.strip-badge.is-active .strip-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .strip-tooltip {
    min-width: 200px;
    font-size: 12px;
    padding: 10px 12px;
  }

  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hero__stats {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: var(--space-lg);
}

/* Text link with an animated underline that draws in on hover/focus —
   used wherever a link needs to sit inline with copy rather than as a button */
.link-underline {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink-text);
  padding-bottom: 2px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.link-underline:hover,
.link-underline:focus-visible {
  color: var(--color-ink-text);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

.link-underline--accent {
  color: var(--color-accent);
}

.link-underline--accent:hover,
.link-underline--accent:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .hero__subtitle {
    font-size: 17px;
  }
}

/* Scroll indicator at the base of the hero */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background-color: var(--color-rule-on-ink);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background-color: var(--color-accent);
  animation: scrollLine 1.9s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* Simpler cream hero used on interior pages (case studies index, about, contact) */
.page-hero {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-rule);
}

.page-hero__tag {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Dark hero used on individual case study pages */
.case-hero {
  padding-block: var(--space-lg);
}

.case-hero__tag {
  color: var(--color-ink-muted);
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--font-body);
}

.case-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}

/* --------------------------------------------------------------------------
   6. Heading size utilities & centered blocks
   Used across the home page's new sections to hit specific display sizes
   without breaking the h1-hero / h2-section heading hierarchy.
   -------------------------------------------------------------------------- */
.heading-40 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
}

.heading-44 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
}

.heading-52 {
  font-size: clamp(2.25rem, 3.2vw + 1rem, 3.25rem);
}

.center-block {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

/* Spacing utility — used sparingly, e.g. a second sub-heading inside a section */
.mt-lg {
  margin-top: var(--space-lg);
}

.center-block__body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.7;
}

.section--ink .center-block__body {
  color: var(--color-ink-muted);
}

.center-block__body--narrow {
  max-width: 600px;
}

/* Home Problem section — 3-stat visual block. Sits on the dark .section--ink
   background, so "muted"/"text" tokens here use the dark-context pair
   (--color-ink-muted / --color-ink-text) rather than the cream-context ones,
   or the numbers would be the only legible thing in the block. */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 64px;
  text-align: left;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  padding: 24px;
  border-top: 2px solid var(--color-accent);
}

.stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-text);
  margin-bottom: 12px;
}

.stat-descriptor {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
}

.stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
  opacity: 0.8;
}

.stat-closing {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--color-ink-muted);
}

/* Tall centered section — used by the thank-you page so a mostly-empty
   confirmation still feels substantive rather than a sliver of content. */
.section--tall {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.section--tall .container {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. Method section (home) — numbered mono/serif rows
   -------------------------------------------------------------------------- */
.method-intro {
  max-width: 800px;
  margin: 0 0 var(--space-lg);
}

/* Home method section — 4-card grid, subtle oxblood tint */
.method-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .method-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .method-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.method-card {
  text-align: left;
  background-color: rgba(107, 30, 42, 0.1);
  border: 1px solid rgba(107, 30, 42, 0.25);
  border-radius: 6px;
  padding: 32px 28px;
  transition: background-color 300ms ease-out, transform 300ms ease-out;
}

.method-card:hover {
  background-color: rgba(107, 30, 42, 0.18);
  transform: translateY(-4px);
}

.method-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.method-card__rule {
  width: 40px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 16px 0;
}

.method-card__desc {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.method-steps {
  border-top: 1px solid var(--color-rule);
}

.method-step {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
}

.method-step__label {
  flex: 0 0 160px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.method-step__desc {
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 20;
  font-size: 20px;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 767px) {
  .method-step {
    flex-direction: column;
    gap: 0.5rem;
  }

  .method-step__label {
    flex-basis: auto;
  }
}

/* --------------------------------------------------------------------------
   8. Services — asymmetric stacked rows, each with a large mono index
   -------------------------------------------------------------------------- */
.service-intro {
  max-width: 800px;
  margin: 0 0 var(--space-lg);
}

.service-rows {
  border-top: 1px solid var(--color-rule);
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-block: 5rem;
  border-bottom: 1px solid var(--color-rule);
}

.service-row__head {
  flex: 0 0 30%;
}

.service-row__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 64px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.service-row__name {
  margin: 0;
  font-size: 28px;
  font-variation-settings: "opsz" 32;
}

.service-row__desc {
  flex: 1 1 auto;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* Selective bold within service copy — heavier weight only, no color shift */
.service-description strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Service row copy, restructured: short intro paragraph + bulleted list
   instead of one long paragraph. Lives inside .service-row__desc. */
.service-row__intro {
  margin: 0 0 var(--space-sm);
}

.service-bullets {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.service-bullets li {
  display: flex;
  gap: 0.75em;
  align-items: baseline;
}

.service-bullets__marker {
  flex: 0 0 auto;
  width: 20px;
  color: var(--color-accent);
  font-weight: 600;
}

.service-bullets__text {
  flex: 1 1 auto;
}

.service-bullets__label {
  margin: 0 0 0.4em;
  font-weight: 600;
}

.service-row__closing {
  margin: var(--space-sm) 0 0;
}

.service-row__closing--italic {
  font-style: italic;
}

.service-row__closing--muted {
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .service-row {
    flex-direction: column;
    gap: var(--space-sm);
    padding-block: var(--space-lg);
  }

  .service-row__head {
    flex-basis: auto;
  }

  .service-row__num {
    font-size: 40px;
  }
}

/* --------------------------------------------------------------------------
   8b. Services intro — interconnection chain visual (cream section)
   -------------------------------------------------------------------------- */
.interconnection-chain {
  padding: 32px;
  background: rgba(107, 30, 42, 0.06);
  border-radius: 6px;
  border-left: 3px solid var(--color-accent);
  margin: var(--space-lg) 0;
}

.chain-intro {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.chain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.chain-node {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text);
}

.chain-arrow {
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.chain-outro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   9. Quick Answers — Q&A list (home)
   -------------------------------------------------------------------------- */
.qa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.qa-layout__portrait {
  order: -1;
}

.qa-portrait {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-accent);
}

@media (min-width: 768px) {
  .qa-layout {
    grid-template-columns: 60% 40%;
    align-items: stretch;
  }

  .qa-layout__text {
    grid-column: 1;
    grid-row: 1;
  }

  .qa-layout__portrait {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }

  .qa-portrait {
    height: 100%;
    max-height: none;
  }
}

.qa-list {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid var(--color-rule);
}

.qa-item {
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
}

.qa-item__q {
  font-size: 24px;
  font-variation-settings: "opsz" 24;
  margin-bottom: 0.5rem;
}

.qa-item__a {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9b. Accordion — shared by Quick Answers and the FAQ section
   -------------------------------------------------------------------------- */
.accordion {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid var(--color-rule);
}

.accordion-item {
  border-bottom: 1px solid var(--color-rule);
}

.accordion-item__header {
  margin: 0;
}

.accordion-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding-block: 1.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.accordion-item__question {
  font-family: var(--font-serif);
  font-size: 22px;
  font-variation-settings: "opsz" 22;
  color: var(--color-text);
}

.accordion-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 250ms ease;
}

.accordion-item__icon::before,
.accordion-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--color-accent);
  transform: translate(-50%, -50%);
}

.accordion-item__icon::before {
  width: 14px;
  height: 2px;
}

.accordion-item__icon::after {
  width: 2px;
  height: 14px;
}

.accordion-item__trigger[aria-expanded="true"] .accordion-item__icon {
  transform: rotate(45deg);
}

.accordion-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}

.accordion-item__answer {
  padding-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Selected Work — dark cards on a cream section (home)
   -------------------------------------------------------------------------- */
.work-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-ink);
  color: var(--color-ink-text);
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(11, 11, 13, 0.28);
  transition: transform 300ms ease-out;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
}

/* Oxblood text alone reads muddy on the near-black card — give it a solid
   oxblood pill instead so the accent has a surface to sit on. */
.work-card__label {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  background-color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-text);
  margin-bottom: 0.75rem;
}

.work-card__title {
  font-size: 22px;
  font-variation-settings: "opsz" 24;
  color: var(--color-ink-text);
  margin: 0 0 0.5rem;
}

.work-card__context {
  font-size: 15px;
  color: var(--color-ink-muted);
  margin: 0;
}

.work-card__rule {
  width: 40px;
  height: 1px;
  background-color: rgba(246, 245, 242, 0.2);
  margin: 16px 0;
}

.work-card__outcome-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.4rem;
}

.work-card__outcome {
  font-family: var(--font-serif);
  font-style: italic;
  font-variation-settings: "opsz" 20;
  font-size: 17px;
  color: var(--color-ink-text);
  margin: 0 0 1.25rem;
}

.work-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 4px 10px;
  border-radius: 3px;
  background-color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-text);
  transition: transform var(--transition-fast);
}

.work-card:hover .work-card__link,
.work-card:focus-within .work-card__link {
  transform: translateX(4px);
}

.work-more {
  margin-top: var(--space-md);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Section hosting the carousel clips at its own edge, so the track's
   horizontal scroll never bleeds into page-level horizontal scroll. */
.has-carousel {
  overflow-x: hidden;
}

/* Horizontal scrollable carousel — Selected Work (home) */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding-bottom: 24px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 30, 42, 0.3) transparent;
}

.carousel__track.is-grabbing {
  cursor: grabbing;
  user-select: none;
}

.carousel__track::-webkit-scrollbar {
  height: 6px;
}

.carousel__track::-webkit-scrollbar-track {
  background: transparent;
}

.carousel__track::-webkit-scrollbar-thumb {
  background-color: rgba(107, 30, 42, 0.3);
  border-radius: 3px;
}

.carousel__track .work-card {
  flex-shrink: 0;
  width: min(380px, 80vw);
  scroll-snap-align: start;
}

/* Edge fade hinting there's more to scroll to */
.carousel__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 24px;
  width: 12px;
  background: linear-gradient(to right, transparent, var(--color-bg));
  pointer-events: none;
}

.carousel__hint {
  display: none;
  margin-top: var(--space-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: opacity 400ms ease;
}

.carousel__hint.is-hidden {
  opacity: 0;
}

@media (max-width: 767px) {
  .carousel__hint {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   11. Reach out — checklist (home)
   -------------------------------------------------------------------------- */
.reach-intro {
  max-width: 720px;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.checklist {
  list-style: none;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(107, 30, 42, 0.15);
  color: var(--color-accent);
}

.checklist__text {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
}

/* Compact checkmark list — same pattern as .checklist above (mark + text
   row) but sized to sit inline inside flowing copy, e.g. an accordion
   answer, rather than as a standalone centered section element. */
.answer-checklist {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.answer-checklist__mark {
  flex: 0 0 auto;
  color: var(--color-accent);
  font-size: 15px;
  line-height: 1.6;
}

.answer-checklist__text {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.reach-outro {
  max-width: 720px;
  margin: var(--space-md) auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--color-muted);
}

.reach-cta {
  margin-top: var(--space-lg);
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Grid & case cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
  transition: border-color var(--transition-fast);
}

.case-card:hover,
.case-card:focus-within {
  border-top-color: var(--color-accent);
}

.case-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.case-card__title {
  font-size: 1.4rem;
  font-variation-settings: "opsz" 24;
  margin: 0;
}

.case-card__context {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.case-card__outcome {
  margin: var(--space-xs) 0 0;
  font-size: 0.95rem;
}

.case-card__outcome strong {
  color: var(--color-accent);
  font-weight: 600;
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.case-card:hover .case-card__link,
.case-card:focus-within .case-card__link,
.case-card__link:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   12b. Case studies index — vertical stacked cards
   -------------------------------------------------------------------------- */
.case-index-card {
  background-color: var(--color-accent);
  border: 1px solid #4A1520;
  border-radius: 6px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(11, 11, 13, 0.2);
}

.case-index-card:last-child {
  margin-bottom: 0;
}

.case-index-card__name {
  font-size: 32px;
  font-variation-settings: "opsz" 32;
  color: var(--color-ink-text);
  margin: 0.75rem 0 0;
}

.case-index-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .case-index-card__body {
    grid-template-columns: 3fr 2fr;
  }
}

.case-index-card__context {
  color: rgba(246, 245, 242, 0.9);
  margin: 0;
}

.case-index-card__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-index-meta__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.15rem;
}

.case-index-meta__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-ink-text);
}

.case-index-card__outcome-wrap {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(246, 245, 242, 0.25);
}

.case-index-card__outcome-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.4rem;
}

.case-index-card__outcome {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--color-ink-text);
  margin: 0;
}

.case-index-card__link-wrap {
  margin-top: var(--space-md);
  text-align: right;
}

.case-index-card__link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--color-ink-text);
  border-radius: 999px;
  color: var(--color-ink-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.case-index-card__link:hover {
  background-color: var(--color-ink-text);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   13. Buttons / CTA
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-ink-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.button:hover {
  background-color: transparent;
  border-color: var(--color-ink-text);
  color: var(--color-ink-text);
}

/* Larger variant for the final, high-commitment CTA */
.button--lg {
  padding: 20px 40px;
  border-radius: 6px;
  font-size: 18px;
  margin-top: 40px;
}

.section:not(.section--ink) .button {
  color: var(--color-ink-text);
}

.section:not(.section--ink) .button:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
}

.cta h2 {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   14. Case study detail page
   -------------------------------------------------------------------------- */
/* Inline figure inside case study body copy (e.g. the Bulunmaz tracking sheet).
   It lives inside .container.prose, which caps its parent at 720px (--measure)
   — narrower than the figure is meant to be. Rather than restructure the
   surrounding HTML (which would split .case-study-section's bordered block
   and break its padding/rule rhythm), this breaks the figure out of that
   720px column with the standard "full-bleed from a centered parent" trick:
   margin-left: 50% + translateX(-50%) re-centers it on the viewport (valid
   here because .prose is itself centered on the viewport, so their centers
   coincide), while width: calc(100vw - padding) + max-width together make it
   track .container's own width at moderate sizes and cap at 1200px on very
   large viewports, without ever bleeding edge-to-edge. */
.case-study-figure {
  width: 100%;
  margin-block: 40px;
}

@media (min-width: 768px) {
  .case-study-figure {
    width: calc(100vw - 2 * var(--space-sm));
    max-width: 1200px;
    margin: 56px 0 56px 50%;
    transform: translateX(-50%);
  }
}

.case-study-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(107, 30, 42, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.case-study-figure figcaption {
  max-width: 800px;
  margin: 12px auto 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .case-study-figure figcaption {
    margin-top: 16px;
    font-size: 16px;
  }
}

/* Discreet hours/engagement line above the closing CTA — kept out of the
   top metadata bar so hours read as a footnote, not a headline number. */
.case-engagement-footer {
  padding-block: 24px;
  text-align: center;
}

.case-engagement-footer::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 24px;
  background-color: var(--color-accent);
}

.case-engagement-footer p {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--color-muted);
}

.case-study-section {
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
}

.case-study-section:last-of-type {
  border-bottom: none;
}

.case-study-section h2 {
  margin-bottom: var(--space-sm);
}

.tools-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tools-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--color-rule);
  border-radius: 2px;
  padding: 0.4rem 0.8rem;
  color: var(--color-muted);
}

/* Scannable metadata bar under a case study hero (dark) */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 960px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule-on-ink);
  text-align: left;
}

.case-meta__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.case-meta__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-ink-muted);
}

@media (max-width: 767px) {
  .case-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* "Coming soon" strip above an unfinished case study */
.coming-soon-banner {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-rule);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Internal note marking copy that still needs Laura's input */
.draft-flag {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   15. About page
   -------------------------------------------------------------------------- */
.about-hero {
  text-align: center;
}

.about-hero__portrait {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(11, 11, 13, 0.18);
}

.about-hero__name {
  font-size: 38px;
  font-variation-settings: "opsz" 38;
  margin-bottom: 0.5rem;
}

.about-hero__title {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 0.35rem;
}

.about-hero__location {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-muted);
  margin: 0;
}

/* Tool stack — five sub-groups, 2 columns desktop / 1 column mobile */
.tool-groups {
  display: grid;
  gap: var(--space-lg) var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tool-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-group__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.tool-group__list {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Testimonial card */
.testimonial {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  background-color: rgba(107, 30, 42, 0.05);
  border: 1px solid rgba(107, 30, 42, 0.25);
  border-radius: 6px;
  padding: 48px 40px;
}

.testimonial__mark {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text);
}

.testimonial__rule {
  width: 40px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 24px 0 16px;
}

.testimonial__name {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
}

.testimonial__role {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  margin: 0.15rem 0 0;
}

.testimonial__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}

.testimonial__tags li {
  padding: 4px 10px;
  border-radius: 3px;
  background-color: rgba(107, 30, 42, 0.15);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   16. Contact page
   -------------------------------------------------------------------------- */
.heading-hero {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

.contact-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 900px;
  margin: var(--space-lg) auto 0;
}

@media (min-width: 768px) {
  .contact-options {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
    text-align: center;
  }

  .contact-options li {
    flex: 1 1 0;
  }
}

.contact-options a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-variation-settings: "opsz" 24;
}

.contact-options span {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section--ink .contact-options span {
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   16a-2. Contact form (Netlify Forms compatible)
   -------------------------------------------------------------------------- */
.contact-form-section {
  padding-top: var(--space-lg);
}

.contact-form {
  max-width: 720px;
  margin-inline: auto;
}

.contact-form-intro {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.form-field {
  margin-bottom: 28px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.form-field__helper {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background-color: var(--color-surface, #E5E1D8);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent) 50%), linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-honeypot {
  display: none;
}

.form-note {
  margin-top: var(--space-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

/* Calendly booking block — secondary option below the contact form
   (currently IT contact page only). */
.calendly-block {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.calendly-block .button {
  margin-top: var(--space-sm);
}

.calendly-body {
  margin: 0 0 var(--space-sm);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   16b. Blog page
   -------------------------------------------------------------------------- */
.theme-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
}

.theme-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.theme-list li::before {
  content: "— ";
}

/* --------------------------------------------------------------------------
   16c. Translation placeholder (Italian skeleton pages)
   -------------------------------------------------------------------------- */
.translation-placeholder {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  color: var(--color-muted);
  font-size: 17px;
}

.translation-placeholder a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-lg);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__piva {
  margin-top: 2px !important;
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* Circular social icon button — border only until hover, then fills */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-muted);
  color: var(--color-accent);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social svg {
  fill: currentColor;
}

.footer-social:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink-text);
}

/* Lets a visitor withdraw cookie consent and re-trigger the banner (GDPR) */
.footer-cookie-link {
  display: inline-block;
  margin-top: var(--space-sm);
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: var(--color-accent);
}

/* Separator between the "Cookie preferences" control and the Privacy link */
.footer-legal-sep {
  display: inline-block;
  margin-top: var(--space-sm);
  margin-inline: 0.4em;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
}

/* Bullet lists inside long-form prose (e.g. the privacy policy) — the
   global reset strips list-style/padding from every <ul>, so restore it
   here, scoped to .prose only, without touching any of the site's other
   custom-marker lists (.checklist, .service-bullets, .tools-list, etc). */
.prose ul {
  margin: 0 0 var(--space-sm) 1.25em;
  padding: 0;
}

.prose li {
  list-style: disc;
  margin-bottom: 0.4em;
}

.prose h2 {
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   17c. Cookie consent banner — injected by js/cookie-consent.js, every page.
   GA4 only loads after "Accept" is clicked; see that file for the logic.
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background-color: var(--color-ink);
  color: var(--color-ink-text);
  padding: 20px 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  transition: opacity 300ms ease, transform 300ms ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__text {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink-text);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cookie-banner__btn--accept {
  border: 1px solid var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-ink-text);
}

.cookie-banner__btn--accept:hover {
  background-color: transparent;
  border-color: var(--color-ink-text);
}

.cookie-banner__btn--decline {
  border: 1px solid var(--color-ink-text);
  background-color: transparent;
  color: var(--color-ink-text);
}

.cookie-banner__btn--decline:hover {
  background-color: var(--color-ink-text);
  color: var(--color-ink);
}

.cookie-banner__privacy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   18. Scroll-reveal (progressive enhancement — see js/motion.js)
   Elements only receive the hidden starting state once JS confirms it can
   run the reveal; without JS, content renders normally and stays visible.
   -------------------------------------------------------------------------- */
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

[data-reveal].reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: calc(var(--space-xl) * 0.6);
    padding-bottom: calc(var(--space-xl) + 4rem);
  }

  .work-card {
    padding: 28px;
  }
}

/* --------------------------------------------------------------------------
   20. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
