/* ============================================================
   Agentic Lab — agenticlab.com.my
   Boutique editorial system. Heavy whitespace. High-end serif.
   v0.2 — illustrated, ornamented, warmer.
   ============================================================ */

:root {
  /* type */
  --serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* palette — paper / ink */
  --paper:    #f5f1ea;
  --paper-2:  #ece6dc;
  --paper-3:  #e3dccf;
  --ink:      #0e0e0c;
  --ink-2:    #2a2926;
  --muted:    #6c655c;
  --rule:     #1a1a17;
  --accent:   #8a6a3a;       /* aged brass */
  --accent-2: #5b6e57;       /* sage — secondary accent */
  --highlight:#e7d9bf;

  /* metrics */
  --max:    1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 168px);
}

/* -------------------------------------------- reset / base */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* paper ambience: subtle warm gradients + grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(138,106,58,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 90%, rgba(91,110,87,0.08), transparent 60%),
    radial-gradient(700px 500px at 50% 50%, rgba(14,14,12,0.03), transparent 70%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* -------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(26,26,23,0.08);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-mark { color: var(--ink); display: inline-flex; transition: transform .6s; }
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: italic; color: var(--accent); }

.site-nav {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 820px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* -------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* -------------------------------------------- hero */
.hero {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) var(--gutter) clamp(48px, 8vw, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 480px; margin: 0 auto; }
}

.hero-text { padding-top: clamp(0px, 2vw, 24px); }

.hero-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 14px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.hero-meta strong { color: var(--ink); font-weight: 500; }
.hero-meta .meta-line { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(91,110,87,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin: 0 0 clamp(24px, 3vw, 36px);
  color: var(--ink);
  text-wrap: balance;
}
.hero-h em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  position: relative;
}
.hero-h em::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  bottom: 0.06em;
  height: 6px;
  background: rgba(231,217,191,0.55);
  z-index: -1;
}
.hero-sub {
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 clamp(32px, 4vw, 44px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero figure */
.hero-figure {
  margin: 0;
  position: relative;
}
.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(14,14,12,0.08));
}
.ring-slow { animation: spin 60s linear infinite; transform-box: fill-box; }
.ring-mid  { animation: spin 30s linear infinite reverse; transform-box: fill-box; }
.ring-fast { animation: spin 12s linear infinite; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-rule {
  margin: clamp(48px, 7vw, 96px) 0 24px;
  height: 1px; background: var(--rule); opacity: 0.5;
}
.hero-footnote {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

/* -------------------------------------------- capability strip */
.capabilities {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cap-rail {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(26,26,23,0.18);
  border-bottom: 1px solid rgba(26,26,23,0.18);
  overflow: hidden;
}
.cap-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(26,26,23,0.2);
}
.cap-list {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  flex-wrap: wrap;
}
.cap-list li:nth-child(even) { color: var(--muted); font-style: normal; }

.cap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: rgba(26,26,23,0.18);
  border: 1px solid rgba(26,26,23,0.18);
}
.cap-stat {
  background: var(--paper);
  padding: clamp(20px, 2.4vw, 32px);
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .25s;
}
.cap-stat:hover { background: var(--paper-2); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat-num em {
  font-style: italic;
  color: var(--accent);
  font-size: 0.55em;
  margin-left: 4px;
  vertical-align: 0.3em;
}
.stat-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .cap-stats { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------- ornament dividers */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  max-width: 380px;
  margin: clamp(48px, 7vw, 80px) auto;
  color: var(--accent);
  position: relative; z-index: 1;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(138,106,58,0.5), transparent);
}
.ornament svg { color: var(--accent); flex-shrink: 0; }

/* -------------------------------------------- generic section */
.section {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.section-head { max-width: 780px; margin: 0 0 clamp(48px, 6vw, 80px); }
.eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
  padding: 4px 0;
  border-top: 1px solid rgba(26,26,23,0.25);
  border-bottom: 1px solid rgba(26,26,23,0.25);
  padding: 4px 12px 4px 0;
}
.section-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.section-h em { font-style: italic; color: var(--accent); font-weight: 400; }
.section-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

/* -------------------------------------------- timeline (Process) */
.timeline {
  position: relative;
  display: grid; gap: clamp(48px, 6vw, 80px);
  padding-left: clamp(72px, 10vw, 130px);
}
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(28px, 4vw, 52px);
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(26,26,23,0.05) 0%,
    rgba(26,26,23,0.4) 8%,
    rgba(138,106,58,0.4) 50%,
    rgba(26,26,23,0.4) 92%,
    rgba(26,26,23,0.05) 100%);
}
.timeline-item {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.timeline-marker {
  position: absolute;
  left: calc(-1 * clamp(72px, 10vw, 130px) + clamp(28px, 4vw, 52px));
  transform: translateX(-50%);
  top: 4px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s, color .25s, transform .35s;
}
.timeline-item:hover .timeline-marker {
  background: var(--ink);
  color: var(--highlight);
  transform: translateX(-50%) rotate(8deg);
}
.timeline-marker .marker-icon {
  display: block;
}
.timeline-marker .marker-num {
  position: absolute;
  top: -10px; right: -16px;
  background: var(--paper);
  padding: 0 6px;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 999px;
  line-height: 18px;
  letter-spacing: 0.04em;
}
.timeline-marker::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(26,26,23,0.22);
}
.timeline-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.timeline-body p {
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.timeline-body p em { color: var(--accent); font-style: italic; }
.timeline-meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.timeline-meta li { position: relative; padding-left: 14px; }
.timeline-meta li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 1px; background: var(--muted);
}

/* -------------------------------------------- principles */
.principles { background: linear-gradient(180deg, rgba(231,217,191,0) 0%, rgba(231,217,191,0.18) 50%, rgba(231,217,191,0) 100%); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(26,26,23,0.2);
  border-bottom: 1px solid rgba(26,26,23,0.2);
}
.principle {
  padding: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s;
}
.principle + .principle { border-left: 1px solid rgba(26,26,23,0.18); }
.principle:hover { background: rgba(231,217,191,0.25); }
.principle-glyph {
  color: var(--accent);
  margin-bottom: 12px;
  transition: transform .5s;
}
.principle:hover .principle-glyph { transform: rotate(-6deg) scale(1.05); }
.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.06em;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.principle p:last-child {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 4px 0 0;
}
@media (max-width: 800px) {
  .principle-grid { grid-template-columns: 1fr; }
  .principle + .principle {
    border-left: 0;
    border-top: 1px solid rgba(26,26,23,0.18);
  }
}

/* -------------------------------------------- sandbox stage */
.sandbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-items: stretch;
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(56px, 5vw, 64px) clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
  border: 1px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(245,241,234,0) 0%, rgba(236,230,220,0.7) 100%),
    var(--paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14,14,12,0.18);
}
.stage-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(14,14,12,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,14,12,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
  pointer-events: none;
}
.stage-tape {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 22px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--highlight);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.stage-tape span:first-child { color: #c8e6c2; }
.stage-flow {
  position: absolute; inset: 80px 0 200px 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.6;
}
.stage-panel, .stage-core, .stage-readout { position: relative; z-index: 1; }
.stage-panel {
  border: 1px solid rgba(14,14,12,0.5);
  background: rgba(245,241,234,0.7);
  padding: 20px;
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 14px;
}
.panel-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px dashed rgba(26,26,23,0.3);
  padding-top: 10px;
  margin-top: auto;
}
.panel-rows { display: grid; gap: 8px; }
.panel-rows span {
  height: 8px; border-radius: 1px;
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) 30%, transparent 30%, transparent 100%);
  background-size: 200% 100%;
  animation: scan 4s linear infinite;
  opacity: 0.85;
}
.panel-rows span:nth-child(2) { animation-delay: .4s; }
.panel-rows span:nth-child(3) { animation-delay: .8s; }
.panel-rows span:nth-child(4) { animation-delay: 1.2s; }
.panel-rows span:nth-child(5) { animation-delay: 1.6s; }
@keyframes scan {
  0%   { background-position: -100% 0; }
  100% { background-position:  100% 0; }
}

.panel-bars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  height: 110px; align-items: end;
}
.panel-bars > div { display: flex; flex-direction: column; gap: 6px; align-items: center; height: 100%; justify-content: end; }
.panel-bars span {
  display: block; width: 100%;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--ink) 0%, var(--accent) 100%);
  border-radius: 1px;
  animation: bar-rise 1.2s ease-out backwards;
}
.panel-bars > div:nth-child(1) span { animation-delay: 0.1s; }
.panel-bars > div:nth-child(2) span { animation-delay: 0.25s; }
.panel-bars > div:nth-child(3) span { animation-delay: 0.4s; }
.panel-bars > div:nth-child(4) span { animation-delay: 0.55s; }
@keyframes bar-rise { from { height: 0; } }
.panel-bars small {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

.stage-core {
  display: grid; place-items: center;
  position: relative;
  min-height: 280px;
}
.core-ring {
  position: absolute;
  border: 1px solid rgba(14,14,12,0.4);
  border-radius: 50%;
}
.core-ring-1 { width: 80%;  height: 80%;  animation: spin 24s linear infinite; }
.core-ring-2 { width: 60%;  height: 60%;  border-style: dashed; animation: spin 16s linear infinite reverse; }
.core-ring-3 { width: 40%;  height: 40%;  animation: spin 10s linear infinite; }
.core-glyph { color: var(--ink); position: relative; }
.core-tag {
  position: absolute; bottom: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.core-pulse {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 22%; right: 22%;
  box-shadow: 0 0 0 0 rgba(91,110,87,0.5);
  animation: corepulse 2.6s ease-out infinite;
}
@keyframes corepulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,110,87,0.5); }
  100% { box-shadow: 0 0 0 24px rgba(91,110,87,0); }
}

.stage-readout {
  grid-column: 1 / -1;
  border: 1px solid rgba(14,14,12,0.5);
  background: var(--ink);
  color: #e7d9bf;
  border-radius: 2px;
  padding: 18px 22px;
  overflow-x: auto;
  position: relative;
}
.stage-readout::before {
  content: "● ● ●";
  position: absolute; top: 8px; right: 14px;
  font-size: 8px; letter-spacing: 4px;
  color: rgba(231,217,191,0.4);
}
.stage-readout pre { margin: 0; }
.stage-readout code {
  font-family: var(--mono);
  font-size: 13px; line-height: 1.7;
  white-space: pre;
  color: #efe6cf;
}
.rd-prompt { color: #8a6a3a; }
.rd-cmd    { color: #f5f1ea; }
.rd-ok     { color: #c8e6c2; }
.rd-pass   { color: #5fd07b; font-weight: 500; }
.rd-link   { color: #e7d9bf; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 820px) {
  .sandbox-stage { grid-template-columns: 1fr; }
  .stage-core { min-height: 220px; }
  .stage-flow { display: none; }
}

.sandbox-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.sandbox-list li {
  padding-top: 18px;
  border-top: 1px solid rgba(26,26,23,0.2);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.sandbox-list .sl-icon {
  color: var(--accent);
  display: inline-flex;
}
.sandbox-list strong { color: var(--ink); font-weight: 500; }

/* -------------------------------------------- technical cards */
.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(26,26,23,0.18);
  border: 1px solid rgba(26,26,23,0.18);
  box-shadow: 0 30px 60px -40px rgba(14,14,12,0.16);
}
.tech-card {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: background .3s, transform .3s;
}
.tech-card:hover { background: var(--paper-2); }
.tech-head {
  display: flex; justify-content: space-between; align-items: center;
}
.tech-icon {
  display: inline-flex;
  color: var(--ink);
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition: background .25s, color .25s, transform .5s;
}
.tech-card:hover .tech-icon { background: var(--ink); color: var(--highlight); transform: rotate(-8deg); }
.tech-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tech-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}
.tech-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.tech-spec {
  margin: 6px 0 0;
  display: grid; gap: 10px;
  border-top: 1px solid rgba(26,26,23,0.15);
  padding-top: 18px;
}
.tech-spec > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.tech-spec dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tech-spec dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
}

/* -------------------------------------------- CTA / form */
.cta-shell {
  background: linear-gradient(160deg, var(--paper-2) 0%, var(--paper) 70%);
  border: 1px solid rgba(26,26,23,0.18);
  border-radius: 4px;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-shell::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,106,58,0.18) 0%, transparent 70%);
}
.cta-shell::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,110,87,0.14) 0%, transparent 70%);
}
.cta-shell .section-head { position: relative; z-index: 1; max-width: 700px; }
.cta-shell .consult-form { position: relative; z-index: 1; }

.consult-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  max-width: 880px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0 12px;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.field textarea { border: 1px solid var(--ink); padding: 14px; border-radius: 2px; background: rgba(245,241,234,0.6); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }

.field-actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 8px;
}
.form-status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-note {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 4px 0 0;
}
.form-note a { color: var(--ink); border-bottom: 1px solid var(--ink); }

@media (max-width: 640px) {
  .consult-form { grid-template-columns: 1fr; }
}

/* -------------------------------------------- FAQ */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 880px;
  border-top: 1px solid rgba(26,26,23,0.2);
}
.faq-list details {
  border-bottom: 1px solid rgba(26,26,23,0.2);
  padding: 24px 0;
}
.faq-list summary {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  letter-spacing: -0.005em;
  transition: color .2s;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  transition: transform .2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

/* -------------------------------------------- footer */
.site-footer {
  position: relative; z-index: 1;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 96px) var(--gutter) 32px;
  margin-top: clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.005em;
}
.footer-brand em { font-style: italic; color: var(--highlight); }
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(245,241,234,0.7);
  margin: 8px 0 0;
}
.footer-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
  margin: 0 0 14px;
}
.site-footer ul { display: grid; gap: 8px; font-family: var(--serif); font-size: 17px; }
.site-footer a { color: var(--paper); border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--highlight); color: var(--highlight); }
.footer-rule {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 72px) auto 18px;
  height: 1px; background: rgba(245,241,234,0.2);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,241,234,0.55);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------- scroll progress bar */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 50;
  pointer-events: none;
  background: transparent;
}
.scroll-bar > span {
  display: block; height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width .12s ease-out;
}

/* -------------------------------------------- reveal anim */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ring-slow, .ring-mid, .ring-fast,
  .core-ring-1, .core-ring-2, .core-ring-3,
  .core-pulse, .panel-rows span, .panel-bars span,
  .hero-meta .dot { animation: none !important; }
}
