/* =========================================================================
   pierrelouistalbot.fr — landing v2
   Direction: "atelier d'artisan numérique" — papier ivoire chaud, encre
   bleue de plan d'architecte, accent ocre brûlé pour les soulignements et
   un vert lichen discret pour les indicateurs. Typographie Fraunces
   (display, contraste à l'ancienne) + Manrope (body, lisible) + JetBrains
   Mono pour les annotations et le prix.
   ========================================================================= */

:root {
  --paper:        #f7f2e6;
  --paper-soft:   #ede6d3;
  --paper-card:   #fbf7eb;
  --ink:          #1a2b4a;
  --ink-soft:     #2b3e63;
  --ink-mute:     #5a6b8a;
  --ink-faint:    #8b97ad;
  --rule:         #d7cdb6;
  --rule-strong:  #a89b80;
  --accent:       #b8612e;
  --accent-deep:  #8a4317;
  --accent-warm:  #e8d5a8;
  --phosphor:     #5e7e57;
  --sage:         #7d9476;

  --serif:  'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:   'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --hairline: 1px solid var(--rule);
  --hairline-strong: 1px solid var(--ink);
  --maxw: 1200px;

  --t-fast: 160ms cubic-bezier(.2,.6,.2,1);
  --t-med:  280ms cubic-bezier(.2,.6,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.6,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'liga' 1, 'kern' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Faint blueprint-grid background — only visible at close range, gives
     the page a paper-with-rulings feel without competing with content. */
  background-image:
    linear-gradient(rgba(26,43,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,43,74,.025) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  background-position: 0 -1px, -1px 0;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6em 1em; font-family: var(--mono); font-size: .8em;
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ---------- typographic primitives ---------- */
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .01em; }
.small { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.rule {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- header ---------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--hairline);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
body > header.scrolled {
  background: rgba(239, 236, 228, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -.01em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.01em;
}

nav { display: flex; align-items: center; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links li { display: flex; }
.nav-links li > a:not(.nav-cta):not([data-lang]) {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav-links li > a:not(.nav-cta):not([data-lang])::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links li > a:not(.nav-cta):not([data-lang]):hover { color: var(--ink); }
.nav-links li > a:not(.nav-cta):not([data-lang]):hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  transition: background var(--t-fast);
}
.nav-cta:hover { background: var(--accent); }

/* language picker */
.language-picker { position: relative; }
.language-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  transition: border-color var(--t-fast);
}
.language-toggle:hover { border-color: var(--ink); }
.language-toggle .flag {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 4px 1px;
}
.language-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--paper-card);
  border: 1px solid var(--ink);
  min-width: 160px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
  z-index: 60;
}
.language-picker:hover .language-menu,
.language-picker:focus-within .language-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}
.language-menu li { display: block; }
.language-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  font-family: var(--mono); font-size: 12px;
}
.language-menu li.active a { background: var(--paper); }
.language-menu li:hover { background: var(--ink); color: var(--paper); }
.language-menu li:hover a { background: var(--ink); color: var(--paper); }

/* mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.mobile-menu-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast), top var(--t-fast);
}
.mobile-menu-toggle span:nth-child(1) { top: 9px; }
.mobile-menu-toggle span:nth-child(2) { top: 15px; }
.mobile-menu-toggle span:nth-child(3) { top: 21px; }
.mobile-menu-toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--accent);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--accent);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--accent);
  transform: translate(-1px, -1px);
}

/* ---------- section commons ---------- */
section { padding: 96px 0; border-bottom: var(--hairline); }
section:last-of-type { border-bottom: 0; }

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-num {
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.section-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding-top: 80px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Hand-drawn compass-rose mark, top-right corner of the hero,
     evokes a draughtsman's plan without being kitsch. */
  content: '';
  position: absolute;
  top: 72px; right: 6%;
  width: 220px; height: 220px;
  background-image:
    radial-gradient(circle, transparent 60%, rgba(184,97,46,.18) 60.5%, transparent 62%),
    radial-gradient(circle, transparent 38%, rgba(26,43,74,.10) 38.5%, transparent 40%);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}

/* Explicit grid-template-areas — replaces the previous
   grid-row: 1 / span 5 trick which produced an implicit-rows overlap
   bug on Edge / Chromium-Edge when the right column was taller than
   the cumulated left-column rows. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
  grid-template-areas:
    "meta  card"
    "title card"
    "lead  card"
    "cta   card";
  column-gap: 64px;
  row-gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
}

.hero-meta {
  grid-area: meta;
  display: flex; align-items: center;
  margin-bottom: 8px;
}

.hero-title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0;
}
.hero-title .reveal {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: rise var(--t-slow) cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .reveal:nth-child(1) { animation-delay: .05s; }
.hero-title .reveal:nth-child(2) { animation-delay: .18s; }
.hero-title .reveal:nth-child(3) { animation-delay: .32s; }
.hero-title .italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  grid-area: lead;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  max-width: 54ch;
  color: var(--ink-soft);
  margin: 8px 0 12px;
}

.hero-cta {
  grid-area: cta;
  display: flex; flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

/* status card — placed via grid-area `card`, no row-span trick. */
.hero-card {
  grid-area: card;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 24px 24px 20px;
  align-self: start;
  margin-top: 8px;
  box-shadow: 6px 6px 0 var(--accent);
  position: relative;
}
.hero-card::before {
  /* tiny corner "stamp" — page-of-an-engineer feel */
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  background: var(--ink);
}
.hero-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: var(--hairline);
}
.hero-card-head .small { color: var(--ink); }
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 0 3px rgba(61,110,58,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61,110,58,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(61,110,58,.06); }
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0 0 22px;
}
.hero-card-grid > div { display: flex; flex-direction: column; gap: 4px; }
.hero-card-grid dt { font-family: var(--mono); }
.hero-card-grid dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-card-grid dd .unit {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--ink-mute);
  margin-left: 4px;
  font-weight: 500;
}
.hero-card-grid dd sup { font-size: .55em; }

.hero-card-stack {
  border-top: var(--hairline);
  padding-top: 16px;
}
.hero-card-stack ul {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.hero-card-stack li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 8px 3px 6px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* trust bar */
.trustbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 28px;
  padding-top: 36px;
  border-top: var(--hairline);
}
.trustbar-label { color: var(--ink-mute); }
.trustbar ul {
  display: flex; flex-wrap: wrap; gap: 32px 40px;
  flex: 1;
}
.trustbar ul li {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -.005em;
  position: relative;
}
.trustbar ul li::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.trustbar ul li:hover::after { transform: scaleX(1); }

/* =========================================================================
   OFFERS
   ========================================================================= */
.offers { background: var(--paper-soft); }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.offer {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.offer:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--ink);
}
/* 5-offer asymmetric layout:
     row 1 — Audit (6) | CI/CD highlight (6)
     row 2 — Coaching k8s (6) | LLM platform highlight (6)
     row 3 — Training (12, wide)
*/
.offer-1 { grid-column: span 6; }
.offer-2 { grid-column: span 6; }
.offer-3 { grid-column: span 6; }
.offer-4 { grid-column: span 6; }
.offer-5 { grid-column: span 12; }
.offer-5 .offer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.offer-5 .offer-list li { border-bottom-style: dashed; }

.offer.highlight {
  background: var(--ink);
  color: var(--paper);
}
.offer.highlight .offer-tag { color: var(--paper); border-color: var(--paper); }
.offer.highlight h3 { color: var(--paper); }
.offer.highlight .price-amount { color: var(--paper); }
.offer.highlight .offer-desc { color: var(--paper-soft); }
.offer.highlight .offer-list li { border-bottom-color: rgba(239,236,228,.18); color: var(--paper-soft); }
.offer.highlight .offer-list li::before { color: var(--accent); }
.offer.highlight .offer-foot { border-top-color: rgba(239,236,228,.22); }
.offer.highlight .price-unit { color: var(--paper-soft); }
.offer.highlight .offer-meta { color: var(--paper-soft); }
.offer.highlight:hover { box-shadow: 6px 6px 0 var(--accent); }

.offer header { display: flex; flex-direction: column; gap: 10px; }
.offer-tag {
  display: inline-block;
  width: max-content;
  padding: 3px 7px 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px;
}
.offer h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
}
.offer-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}
.offer-list {
  display: flex; flex-direction: column;
  margin-top: 4px;
}
.offer-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: var(--hairline);
}
.offer-list li:last-child { border-bottom: 0; }
.offer-list li::before {
  content: '+';
  position: absolute;
  left: 0; top: 11px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.offer-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: var(--hairline);
}
.offer-price {
  display: flex; align-items: baseline; gap: 6px;
}
.price-amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.025em;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.price-unit {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
}
.offer-meta { color: var(--ink-mute); text-align: right; line-height: 1.3; }

/* =========================================================================
   CASES
   ========================================================================= */
.cases-list {
  display: flex; flex-direction: column;
  gap: 0;
}
.case {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--ink);
}
.case:last-child { border-bottom: 1px solid var(--ink); }
.case-mark { position: relative; }
.case-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.case-num::before {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--accent);
  margin-bottom: 14px;
}
.case-body {
  display: flex; flex-direction: column; gap: 18px;
}
.case-head { display: flex; flex-direction: column; gap: 8px; }
.case-client { color: var(--accent); }
.case h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}
.case p { color: var(--ink-soft); max-width: 68ch; margin: 0; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 8px 0 0;
  padding: 18px 0 0;
  border-top: var(--hairline);
}
.case-metrics div { display: flex; flex-direction: column; gap: 6px; }
.case-metrics dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.case-metrics dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}
.case-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.case-stack li {
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
}

/* =========================================================================
   METHOD
   ========================================================================= */
.method { background: var(--ink); color: var(--paper); }
.method .section-num { color: var(--accent); }
.method .section-title { color: var(--paper); }
.method .section-title em { color: var(--accent); }

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  grid-template-areas:
    "head fig"
    "list fig";
  gap: 32px 48px;
  align-items: start;
}
.method-head { grid-area: head; }
.method-list { grid-area: list; }
.method-figure {
  grid-area: fig;
  position: sticky;
  top: 96px;
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 18px;
}
.method-figure img { width: 100%; height: auto; display: block; }
.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(239,236,228,.2);
}
.step {
  padding: 36px 28px 36px 0;
  display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid rgba(239,236,228,.2);
}
.step:nth-child(1) { padding-right: 36px; }
.step:nth-child(2) { padding-left: 28px; padding-right: 36px; }
.step:nth-child(3) { padding-left: 28px; border-right: 0; }

.step-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--paper);
}
.step p { color: var(--paper-soft); margin: 0; font-size: 16px; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-head { grid-column: 1 / -1; }
.about-body { font-size: 18px; line-height: 1.65; max-width: 60ch; }
.about-body p { color: var(--ink-soft); }
.about-body a {
  border-bottom: 1px solid var(--accent);
  transition: color var(--t-fast), background var(--t-fast);
}
.about-body a:hover { color: var(--accent); }

.about-figure {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper-card);
  padding: 28px 24px 20px;
  box-shadow: 6px 6px 0 var(--ink);
}
.van-ascii {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  white-space: pre;
  color: var(--ink);
  margin: 0 0 14px;
  overflow-x: auto;
}
.about-figure figcaption {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px;
  border-top: var(--hairline);
  color: var(--ink-mute);
}

/* =========================================================================
   JOURNAL
   ========================================================================= */
.journal { background: var(--paper-soft); }

.journal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.entry {
  padding: 32px 28px 32px 0;
  border-right: var(--hairline);
  display: flex; flex-direction: column; gap: 14px;
}
.entry:nth-child(2) { padding-left: 28px; padding-right: 36px; }
.entry:nth-child(3) { padding-left: 28px; border-right: 0; }
.entry-head { display: flex; align-items: center; gap: 16px; }
.entry-head time { color: var(--ink-mute); }
.entry-tag {
  padding: 3px 8px 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.entry h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
}
.entry h3 a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-med);
}
.entry h3 a:hover { background-size: 100% 1px; }
.entry p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.entry code {
  font-family: var(--mono);
  font-size: .85em;
  padding: 1px 5px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.faq-list details {
  border-bottom: var(--hairline);
}
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list .chev {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  transition: transform var(--t-med);
  flex-shrink: 0;
}
.faq-list details[open] .chev { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 28px;
  max-width: 70ch;
}
.faq-answer p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-num { color: var(--accent); }
.contact .section-title { color: var(--paper); }
.contact .section-title em { color: var(--accent); font-style: italic; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-head p { color: var(--paper-soft); font-size: 18px; line-height: 1.6; max-width: 50ch; }

.contact-channels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(239,236,228,.25);
}
.channel {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(239,236,228,.25);
  align-items: center;
  transition: color var(--t-fast), padding var(--t-fast);
}
.channel:hover {
  color: var(--accent);
  padding-left: 12px;
}
.channel-tag {
  color: var(--accent) !important;
}
.channel-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.01em;
}
.channel-arrow {
  font-family: var(--mono);
  font-size: 22px;
  transition: transform var(--t-med);
}
.channel:hover .channel-arrow { transform: translateX(8px); }

/* =========================================================================
   FOOTER
   ========================================================================= */
body > footer {
  padding: 36px 0 28px;
  background: var(--paper);
  border-top: var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand p { margin: 0 0 4px; color: var(--ink-mute); }
.footer-stack { display: flex; flex-direction: column; gap: 8px; }
.footer-stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-stack ul li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.footer-source a {
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-source a:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card { grid-column: 1 / -1; grid-row: auto; }
  .hero::before { display: none; }

  .offer-1, .offer-2, .offer-3, .offer-4 { grid-column: 1 / -1; }
  .method-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "fig" "list";
  }
  .method-figure { position: static; max-width: 420px; margin: 0 auto; }
  .method-list { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(239,236,228,.2); padding: 28px 0 !important; }
  .step:last-child { border-bottom: 0; }

  .journal-list { grid-template-columns: 1fr; }
  .entry { border-right: 0; border-bottom: var(--hairline); padding: 28px 0 !important; }
  .entry:last-child { border-bottom: 0; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .channel { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .channel .channel-tag { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 36px; }

  /* mobile nav */
  .mobile-menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 24px 28px;
    gap: 4px;
    border-top: 1px solid var(--ink);
    transform: translateX(100%);
    transition: transform var(--t-med);
    z-index: 40;
    overflow-y: auto;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links li > a:not(.nav-cta):not([data-lang]) {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: var(--hairline);
  }
  .nav-links li > a:not(.nav-cta):not([data-lang])::after { display: none; }
  .nav-cta { margin-top: 16px; width: 100%; text-align: center; padding: 14px; }

  .logo-name { display: none; }
  .case { grid-template-columns: 64px 1fr; gap: 20px; }
  .case-metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .case-metrics dd { font-size: 28px; }
  .hero-card-grid dd { font-size: 28px; }
  .price-amount { font-size: 36px; }
  .offer { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-title .reveal { opacity: 1; transform: none; }
}
