/* ==========================================================================
   Soukaina Errouani — Portfolio
   Design tokens, base, layout, components, motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* ---- Type families ---- */
  --font-sans: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-tight: "Bricolage Grotesque", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Type scale (fluid, one scale for the whole site) ---- */
  --fs-hero: clamp(2.9rem, 5.6vw, 5.2rem);       /* h1 */
  --fs-display: clamp(2.6rem, 7vw, 5.6rem);      /* contact statement */
  --fs-h2: clamp(2.1rem, 4.6vw, 3.7rem);         /* section titles */
  --fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);         /* role titles */
  --fs-h4: 1.22rem;                              /* card titles */
  --fs-lead: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.95rem;
  --fs-mono: 0.78rem;
  --fs-mono-sm: 0.72rem;
  --track-display: -0.04em;
  --track-title: -0.03em;
  --track-mono: 0.14em;

  /* ---- Palette: Midnight ink & brass (dark, default) ---- */
  --bg: #0a0d14;
  --bg-2: #0e121a;
  --bg-3: #131822;
  --surface: rgba(226, 232, 255, 0.035);
  --surface-2: rgba(226, 232, 255, 0.065);
  --border: rgba(226, 232, 255, 0.09);
  --border-2: rgba(226, 232, 255, 0.17);
  --text: #f4f1ea;
  --text-2: #c7c4bc;
  --muted: #979590;
  --accent: #eab65a;
  --accent-2: #f5cb7c;
  --accent-ink: #1a1305;
  --bronze: #c98649;
  --silver: #b9c1ce;
  --gold: #eab65a;
  --stream: #63cfc1;
  --ok: #7bd48d;

  --glow: 0 0 0 1px rgba(234, 182, 90, 0.25), 0 20px 60px -20px rgba(234, 182, 90, 0.35);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* ---- Shape & rhythm ---- */
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5.5rem, 12vw, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---- Palette: Paper & brass (light) ---- */
[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-2: #efebe2;
  --bg-3: #e7e2d7;
  --surface: rgba(24, 20, 10, 0.035);
  --surface-2: rgba(24, 20, 10, 0.065);
  --border: rgba(24, 20, 10, 0.12);
  --border-2: rgba(24, 20, 10, 0.22);
  --text: #15171e;
  --text-2: #3e404a;
  --muted: #5f6169;
  --accent: #92600f;
  --accent-2: #7c5109;
  --accent-ink: #fffaf0;
  --bronze: #9c5d22;
  --silver: #6f7785;
  --gold: #92600f;
  --stream: #157d70;
  --ok: #2c8a46;
  --glow: 0 0 0 1px rgba(146, 96, 15, 0.25), 0 20px 60px -24px rgba(146, 96, 15, 0.3);
  --shadow: 0 30px 80px -40px rgba(30, 20, 0, 0.35);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; color: var(--text); }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--accent);
}

.section__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.section__index::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.9rem;
}

.section__title {
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: var(--track-title);
  max-width: 18ch;
  text-wrap: balance;
}
.section__title em { color: var(--accent); font-size: 1.06em; }

.section__sub {
  margin-top: 1.25rem;
  max-width: 58ch;
  color: var(--text-2);
  font-size: 1.1rem;
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85rem;
  --pad-x: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(232, 180, 90, 0.6);
}
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 14px 34px -12px rgba(232, 180, 90, 0.8); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-2); }
.btn--sm { --pad-y: 0.6rem; --pad-x: 1.05rem; font-size: 0.9rem; min-height: 40px; }
.btn--lg { --pad-y: 1.05rem; --pad-x: 1.6rem; font-size: 1.05rem; }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.9rem var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.6);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-tight);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}
.nav__brand em { color: var(--accent); font-size: 1.12em; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.nav__links {
  display: flex;
  gap: 0.25rem;
}
.nav__links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__lang {
  display: inline-grid;
  place-items: center;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.12em;
  color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.nav__lang:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.ico-moon { display: none; }
[data-theme="light"] .ico-moon { display: block; }
[data-theme="light"] .ico-sun { display: none; }

.nav__burger { display: none; position: relative; }
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: -1;
  padding: 6.5rem var(--gutter) 2rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeIn 0.3s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-tight);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  letter-spacing: -0.02em;
}
.mobile-menu nav a span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.mobile-menu__foot a { color: var(--text); }
.mobile-menu[hidden] { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 45%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 1.5px) 0 0 / 28px 28px;
}
.hero::after {
  /* fade the dot grid toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.hero__content { position: relative; min-width: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin-bottom: 1.6rem;
}
.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(122, 212, 143, 0.6);
  animation: pulse 2.2s infinite;
}

.hero .eyebrow { margin-bottom: 1.2rem; }

.hero__title {
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: var(--track-display);
  max-width: 14ch;
}
.hero__title .line { display: block; }
html[lang="fr"] .hero__title { max-width: 16ch; }
.hero__title em {
  color: var(--accent);
  font-size: 1.08em;
  position: relative;
}

.hero__lede {
  margin-top: 1.8rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hero__facts {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.4rem;
  width: fit-content;
}
.hero__facts li { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__facts .k, .contact__meta .k {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.hero__facts .v, .contact__meta .v { font-size: var(--fs-small); color: var(--text); }

/* ---------- Hero visual: isometric Lakehouse stack ---------- */
.hero__visual {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  transition-delay: calc(var(--i, 0) * 110ms + 80ms);
}
.iso {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: iso-float 7s ease-in-out infinite;
}
.iso__layer, .iso__bi {
  transform: translate(calc(var(--px) * var(--d) * 14px), calc(var(--py) * var(--d) * 10px));
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
#iso-halo stop { stop-color: var(--accent); }
.iso__halo { opacity: 0.9; }
[data-theme="light"] .iso__halo { opacity: 0.55; }
[data-theme="light"] .iso__shadow { opacity: 0.35; }

.iso__face-top { fill: color-mix(in srgb, var(--tone) 14%, var(--bg-2)); stroke: color-mix(in srgb, var(--tone) 70%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.iso__face-right { fill: color-mix(in srgb, var(--tone) 26%, var(--bg)); stroke: color-mix(in srgb, var(--tone) 45%, transparent); stroke-width: 1; stroke-linejoin: round; }
.iso__face-left { fill: color-mix(in srgb, var(--tone) 12%, var(--bg)); stroke: color-mix(in srgb, var(--tone) 35%, transparent); stroke-width: 1; stroke-linejoin: round; }
.iso__grid line { stroke: color-mix(in srgb, var(--tone) 28%, transparent); stroke-width: 0.8; }
.iso__cell { fill: color-mix(in srgb, var(--tone) 55%, transparent); animation: iso-cell 3.6s ease-in-out infinite; }
.iso__cell:nth-of-type(2) { animation-delay: 1.2s; }
.iso__cell:nth-of-type(3) { animation-delay: 2.4s; }
.iso__leader { stroke: color-mix(in srgb, var(--tone) 60%, transparent); stroke-width: 1; }
.iso__label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; fill: var(--tone); }
.iso__sub { font-family: var(--font-mono); font-size: 11.5px; fill: var(--muted); }
.iso__src .iso__label { fill: var(--muted); }

.tone-bronze { --tone: var(--bronze); }
.tone-silver { --tone: var(--silver); }
.tone-gold { --tone: var(--gold); }
.iso__bi { --tone: var(--gold); }
.iso__src { --tone: var(--muted); }

.iso__rail { stroke: color-mix(in srgb, var(--tone) 35%, transparent); stroke-width: 1; stroke-dasharray: 2 6; fill: none; }
.iso__dot { fill: var(--tone); }
.iso__glow { fill: var(--tone); opacity: 0.22; }
.iso__bi-ring { fill: color-mix(in srgb, var(--gold) 12%, var(--bg-2)); stroke: var(--gold); stroke-width: 1.2; }
.iso__bi-icon { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes iso-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes iso-cell {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 1.05rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; }
.marquee li {
  padding: 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.marquee li::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 3%, var(--bg-2)), var(--bg-2) 30%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Profile ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.profile__text > * + * { margin-top: 1.4rem; }
.profile__text > p:not(.lead) { color: var(--text-2); max-width: 60ch; }

.profile__medal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem !important;
}
.medal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
}
.medal--bronze { color: var(--bronze); border-color: color-mix(in srgb, var(--bronze) 45%, transparent); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.medal--silver { color: var(--silver); border-color: color-mix(in srgb, var(--silver) 45%, transparent); background: color-mix(in srgb, var(--silver) 10%, transparent); }
.medal--gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.medal__caption { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 1.05rem; margin-left: 0.4rem; }

.spec {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.profile__side {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1rem;
}
.portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.portrait::after {
  /* keeps the caption legible over the backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 32%);
  pointer-events: none;
}
.portrait figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8e4dc;
}
.spec > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}
.spec dd { margin: 0; font-size: var(--fs-small); color: var(--text); line-height: 1.5; }

/* ---------- Experience / Timeline ---------- */
.timeline { margin-top: 4rem; position: relative; }
.role {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.role:last-child { border-bottom: 1px solid var(--border); }
.role__meta {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.role__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.role__period { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); }
.role__company { font-family: var(--font-tight); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.role__badge {
  width: fit-content;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
}
.role__title {
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: var(--track-title);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.role__list { display: grid; gap: 0.6rem; max-width: 66ch; }
.role__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-2);
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.role__list strong { color: var(--text); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.tags li:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Blueprints ---------- */
.bp { margin-top: 3.5rem; }
.bp__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.bp__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
  min-height: 44px;
}
.bp__tab:hover { border-color: var(--border-2); background: var(--surface-2); }
.bp__tab[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.bp__tab-n {
  grid-row: 1 / span 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent);
  width: 1.6rem;
}
.bp__tab-t { font-family: var(--font-tight); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.bp__tab-s { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.bp__stage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg-3);
  overflow: hidden;
}
.bp__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.5rem 1.75rem 0.5rem;
}
.bp__context { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bp__title { font-family: var(--font-tight); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 0.3rem; }
.bp__hint--mobile { display: none; }
.bp__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.bp__canvas {
  position: relative;
  padding: 1rem 1rem 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.bp__canvas svg {
  width: 100%;
  min-width: 880px;
  height: auto;
  font-family: var(--font-sans);
  animation: fadeIn 0.5s var(--ease);
}
.bp__canvas .grid-line { stroke: var(--border); stroke-width: 1; }
.bp__canvas .group { fill: color-mix(in srgb, var(--accent) 4%, transparent); stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-dasharray: 4 6; stroke-width: 1; }
.bp__canvas .group-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--accent); }
.bp__canvas .band { fill: color-mix(in srgb, var(--stream) 6%, transparent); stroke: color-mix(in srgb, var(--stream) 40%, transparent); stroke-dasharray: 4 6; }
.bp__canvas .band-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--stream); }

.bp__canvas .edge { fill: none; stroke: var(--border-2); stroke-width: 1.5; }
.bp__canvas .edge-flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 16; stroke-linecap: round; animation: flow 1.6s linear infinite; opacity: 0.85; }
.bp__canvas .edge-flow.stream { stroke: var(--stream); stroke-dasharray: 3 9; animation-duration: 0.9s; }
.bp__canvas .edge-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); letter-spacing: 0.04em; }
.bp__canvas .edge-label-bg { fill: var(--bg-3); }

.bp__canvas .node { cursor: pointer; outline: none; }
.bp__canvas .node rect { fill: var(--bg-2); stroke: var(--border-2); stroke-width: 1; transition: stroke 0.2s, fill 0.2s; }
.bp__canvas .node .node-accent { transition: opacity 0.2s; }
.bp__canvas .node-title { font-family: var(--font-tight); font-weight: 500; font-size: 14px; fill: var(--text); letter-spacing: -0.01em; }
.bp__canvas .node-sub { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); }
.bp__canvas .node-icon { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp__canvas .node.tone-bronze .node-icon, .bp__canvas .node.tone-bronze .node-accent { stroke: var(--bronze); fill: var(--bronze); }
.bp__canvas .node.tone-silver .node-icon, .bp__canvas .node.tone-silver .node-accent { stroke: var(--silver); fill: var(--silver); }
.bp__canvas .node.tone-gold .node-icon, .bp__canvas .node.tone-gold .node-accent { stroke: var(--gold); fill: var(--gold); }
.bp__canvas .node.tone-stream .node-icon, .bp__canvas .node.tone-stream .node-accent { stroke: var(--stream); fill: var(--stream); }
.bp__canvas .node .node-icon { fill: none !important; }
.bp__canvas .node:hover rect, .bp__canvas .node:focus-visible rect, .bp__canvas .node.is-active rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 9%, var(--bg-2)); }
.bp__canvas .node.is-dim { opacity: 0.35; }
.bp__canvas .edge.is-hot { stroke: var(--accent); stroke-width: 2; }
.bp__canvas .edge.is-dim, .bp__canvas .edge-flow.is-dim { opacity: 0.15; }
.bp__canvas .node, .bp__canvas .edge, .bp__canvas .edge-flow { transition: opacity 0.25s; }

.bp__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid var(--border);
}
.bp__detail-k, .bp__decisions > .bp__detail-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.bp__detail-t { display: block; font-family: var(--font-tight); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.bp__detail-p { color: var(--text-2); font-size: 0.98rem; max-width: 52ch; }
.bp__decisions ul { display: grid; gap: 0.45rem; }
.bp__decisions li { position: relative; padding-left: 1.2rem; color: var(--text-2); font-size: 0.95rem; }
.bp__decisions li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--accent); }

/* ---------- Expertise / Bento ---------- */
.bento {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card {
  grid-column: span 4;
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s;
}
.card--lg { grid-column: span 6; grid-row: span 2; }
.card--wide { grid-column: span 6; }
.card:hover { border-color: var(--border-2); }
.card__head { display: flex; align-items: center; gap: 0.85rem; }
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  flex: none;
}
.card h3 { font-family: var(--font-tight); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 0.98rem; text-wrap: pretty; }
.card .tags { margin-top: auto; }

/* mouse-following glow */
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%);
}
.glow:hover::before { opacity: 1; }

.layers { display: grid; gap: 0.45rem; margin: 0.25rem 0 0.5rem; }
.card--lg .layers { flex: 1; grid-auto-rows: minmax(56px, 1fr); }
.layers__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.layers__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.layers__row b { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; width: 4.2rem; }
.layers__row i { font-style: normal; font-size: 0.86rem; color: var(--muted); }
.layers__row--gold::before { background: var(--gold); } .layers__row--gold b { color: var(--gold); }
.layers__row--silver::before { background: var(--silver); } .layers__row--silver b { color: var(--silver); }
.layers__row--bronze::before { background: var(--bronze); } .layers__row--bronze b { color: var(--bronze); }

.aws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: auto;
}
.aws-grid li {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: border-color 0.2s, color 0.2s;
}
.aws-grid li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.aws-grid li:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Principles ---------- */
.principles {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.principle {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background-color 0.3s;
}
.principle:last-child { border-right: 0; }
.principle:hover { background: var(--surface); }
.principle__n { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--accent); }
.principle h3 { font-family: var(--font-tight); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.principle p { color: var(--text-2); font-size: 0.96rem; text-wrap: pretty; }

/* ---------- Credentials ---------- */
.creds {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cred {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.cred:hover { border-color: var(--border-2); }
.cred--featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: var(--glow); }
.cred__year { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--accent); }
.cred__badge { color: var(--accent); margin: 0.2rem 0; }
.cred h3 { font-family: var(--font-tight); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; margin-top: auto; text-wrap: balance; }
.cred p { color: var(--muted); font-size: 0.9rem; }
.cred__verify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.2s;
}
.cred__verify:hover { border-color: var(--accent); }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding-bottom: clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.contact .section__index::before { display: none; }
.contact__title {
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: var(--track-display);
  max-width: 14ch;
  margin-inline: auto;
  text-wrap: balance;
}
.contact__title em { color: var(--accent); font-size: 1.08em; }
.contact__sub { margin: 1.5rem auto 0; max-width: 50ch; color: var(--text-2); font-size: 1.1rem; text-wrap: pretty; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.4rem; }
/* contact form */
.cform {
  margin: 3rem auto 0;
  max-width: 760px;
  text-align: left;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  backdrop-filter: blur(8px);
}
.cform__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  background: var(--surface-2);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d9534f; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.25rem; }
.cform__status { font-size: var(--fs-small); color: var(--text-2); min-height: 1.5em; }
.cform__status.is-ok { color: var(--ok); }
.cform__status.is-error { color: #e2716c; }
[data-theme="light"] .cform__status.is-error { color: #b3261e; }
.cform.is-busy button[type="submit"] { opacity: 0.7; pointer-events: none; }

.contact__meta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.contact__meta li { display: flex; flex-direction: column; gap: 0.25rem; align-items: center; }
.contact__meta a { border-bottom: 1px solid var(--border-2); transition: border-color 0.2s; }
.contact__meta a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 0.5rem;
  background: var(--bg-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__name { font-family: var(--font-tight); font-weight: 500; font-size: 1.05rem; color: var(--text); }
.footer__name em { color: var(--accent); font-size: 1.12em; }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { color: var(--text-2); border-bottom: 1px solid var(--border-2); transition: color 0.2s, border-color 0.2s; }
.footer__links a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 212, 143, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(122, 212, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 212, 143, 0); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -21; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .marquee__track, .status__dot, .bp__canvas .edge-flow, .bp__canvas svg, .iso, .iso__cell { animation: none; }
  .iso__layer, .iso__bi { transition: none; }
  .bp__canvas .edge-flow { stroke-dasharray: none; opacity: 0.5; }
  .btn svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-top: 1.5rem; }
  .iso__layer, .iso__bi { transform: none; }
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
  .mobile-menu[hidden] { display: none; }
  .bento .card { grid-column: span 6; }
  .card--lg { grid-column: span 12; grid-row: auto; }
  .card--wide { grid-column: span 12; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile__side { position: static; }
  .role { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.25rem 0; }
  .role__meta { position: static; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; }
  .role__index { grid-row: 1 / span 2; margin: 0; }
  .role__badge { grid-column: 2; }
  .bp__tabs { grid-template-columns: 1fr; }
  .bp__head { flex-direction: column; align-items: flex-start; padding-inline: 1.25rem; }
  .bp__foot { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .bp__hint--desktop { display: none; }
  .bp__hint--mobile { display: inline; }
  .hero__facts { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { padding: 0.65rem 0.8rem; }
  .nav__cta, .nav__social { display: none; }
  .nav__name { font-size: 0.95rem; }
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero__visual { max-width: 100%; }
  .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .bento .card { grid-column: span 12; }
  .creds { grid-template-columns: 1fr; }
  .cred { min-height: auto; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: 0; }
  .spec > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .cform__grid { grid-template-columns: 1fr; }
  .cform__foot .btn { width: 100%; justify-content: center; }
  .contact__meta { gap: 1.5rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
