/* =========================================================================
   radoslawlatarski.pl — styles
   ========================================================================= */

/* Tokens -------------------------------------------------------------------*/
:root {
  --bg: #F6F2EB;
  --bg-2: #ECE6D9;
  --surface: rgba(26, 24, 18, 0.04);
  --ink: #1A1812;
  --ink-2: rgba(26, 24, 18, 0.78);
  --ink-muted: rgba(26, 24, 18, 0.62);
  --ink-subtle: rgba(26, 24, 18, 0.42);
  --line: rgba(26, 24, 18, 0.10);
  --line-2: rgba(26, 24, 18, 0.18);
  --accent: #B85C38;
  --accent-deep: #9E4A30;
  /* legacy aliases for back-compat — usuwamy stopniowo */
  --blue: #B85C38;
  --blue-glow: #9E4A30;
  --radius: 14px;
  --radius-lg: 22px;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-pad: 40px;
  --section-gap: 160px;
  --content-narrow: 720px;
  --content-wide: 960px;
}

@media (max-width: 1024px) {
  :root { --page-pad: 24px; --section-gap: 120px; }
}
@media (max-width: 640px) {
  :root { --page-pad: 20px; --section-gap: 96px; }
}

/* Reset --------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "ss01" 1, "cv11" 1;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Global background grid --------------------------------------------------*/
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(26, 24, 18, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 24, 18, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: 0 0, 0 0;
}

/* Aurora (animated, pulsing) ----------------------------------------------*/
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform, opacity;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.aurora-blob--1 {
  top: -12%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(circle,
    rgba(212, 130, 90, 0.55) 0%,
    rgba(184, 92, 56, 0.30) 28%,
    rgba(158, 74, 48, 0.10) 55%,
    rgba(246, 242, 235, 0) 75%);
  animation: aurora-pulse-1 14s ease-in-out infinite;
}
.aurora-blob--2 {
  top: 35%;
  right: -18%;
  width: 55vw;
  height: 55vw;
  max-width: 850px;
  max-height: 850px;
  background: radial-gradient(circle,
    rgba(220, 160, 130, 0.32) 0%,
    rgba(184, 92, 56, 0.15) 35%,
    rgba(246, 242, 235, 0) 70%);
  animation: aurora-pulse-2 18s ease-in-out infinite;
}
.aurora-blob--3 {
  bottom: -10%;
  left: 25%;
  width: 50vw;
  height: 50vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle,
    rgba(212, 130, 90, 0.22) 0%,
    rgba(158, 74, 48, 0.10) 40%,
    rgba(246, 242, 235, 0) 70%);
  animation: aurora-pulse-3 22s ease-in-out infinite;
}
@keyframes aurora-pulse-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.55; }
  50%      { transform: translate3d(40px, 30px, 0) scale(1.08); opacity: 0.38; }
}
@keyframes aurora-pulse-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.40; }
  50%      { transform: translate3d(-40px, 50px, 0) scale(1.12); opacity: 0.58; }
}
@keyframes aurora-pulse-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: 0.30; }
  50%      { transform: translate3d(30px, -40px, 0) scale(1.05); opacity: 0.45; }
}

/* Paper grain — mikro-tekstura nad gridem (warm dark dots) ---------------*/
.dot-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(26, 24, 18, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
}

/* Skip link ---------------------------------------------------------------*/
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
}

/* Focus states -------------------------------------------------------------*/
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, .project-card:focus-visible {
  border-radius: 4px;
}
.project-card:focus-visible { border-radius: var(--radius); }

/* Selection ---------------------------------------------------------------*/
::selection { background: rgba(184, 92, 56, 0.28); color: #1A1812; }

/* Page shell --------------------------------------------------------------*/
.page {
  position: relative;
  z-index: 1;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Topbar ------------------------------------------------------------------*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  margin: 0 calc(var(--page-pad) * -1);
  background: rgba(246, 242, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}
.topbar-inner {
  height: 100%;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar.scrolled { border-bottom-color: var(--line); }

.monogram {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--bg-2);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.monogram::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(184, 92, 56, 0.6);
}

.topbar-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.topbar-label .sep { margin: 0 0.5em; opacity: 0.6; }
.topbar-label .sec-name { color: var(--ink-2); }

/* Side tracker -----------------------------------------------------------*/
.side-tracker {
  display: none;
}
@media (min-width: 1180px) {
  .side-tracker {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .side-tracker a {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-subtle);
    transition: color 300ms ease;
  }
  .side-tracker .st-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--ink-subtle);
    transition: background 300ms ease, height 300ms ease, width 300ms ease;
  }
  .side-tracker a.active { color: var(--ink); }
  .side-tracker a.active .st-line {
    background: var(--blue);
    height: 2px;
  }
  .side-tracker a:hover { color: var(--ink-2); }
}

/* Type primitives --------------------------------------------------------*/
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.display-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink-subtle);
}
.h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* Sections ---------------------------------------------------------------*/
main { position: relative; z-index: 1; }
section { position: relative; }

.wrap-narrow {
  max-width: var(--content-narrow);
  margin-left: auto;
  margin-right: auto;
}
.wrap-wide {
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.section-header .display-num { line-height: 0.85; }
.section-header .title-group { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.section-header .title-group .eyebrow { color: var(--ink-subtle); }

@media (max-width: 640px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 0;
    margin-bottom: 32px;
    border-bottom: none;
  }
}

.section {
  padding-top: var(--section-gap);
}

/* HERO -------------------------------------------------------------------*/
.hero {
  position: relative;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding-top: 140px;
  padding-bottom: 180px;
  padding-left: 48px;
}
@media (max-width: 1024px) { .hero { padding-top: 100px; padding-bottom: 120px; padding-left: 32px; } }
@media (max-width: 640px) { .hero { padding-top: 72px; padding-bottom: 96px; padding-left: 24px; } }

/* Signature vertical line */
.hero::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
@media (max-width: 1024px) { .hero::before { left: 16px; } }
@media (max-width: 640px) { .hero::before { left: 12px; } }

/* Signature blue square — anchored to .hero-signature, on the vertical line */
.hero-signature .sig-square {
  position: absolute;
  left: -24px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(184, 92, 56, 0.35);
}
@media (max-width: 1024px) { .hero-signature .sig-square { left: -16px; } }
@media (max-width: 640px)  { .hero-signature .sig-square { left: -12px; } }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: rgba(26, 24, 18, 0.025);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  flex-shrink: 0;
}

.hero h1 {
  margin-top: 32px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  /* Prevent widow breaks */
  text-wrap: balance;
}
.hero h1 .word {
  display: inline-block;
  white-space: nowrap;
}

.hero-lead {
  margin-top: 40px;
  max-width: 52ch;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-signature {
  position: relative;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-signature .hair {
  display: block;
  width: 240px;
  max-width: 50vw;
  height: 1px;
  background: var(--line-2);
}
.hero-signature .sig-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.meta-row {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-row .meta-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding-top: 4px;
}
.meta-row .meta-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.meta-row a.meta-value {
  transition: color 200ms ease;
}
.meta-row a.meta-value:hover { color: var(--blue-glow); }
@media (max-width: 640px) {
  .meta-row { grid-template-columns: 1fr; gap: 6px 0; padding: 24px 0; }
  .meta-row .meta-label { padding-top: 16px; }
  .meta-row .meta-label:first-child { padding-top: 0; }
}

/* 01 ABOUT ---------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.portrait .portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-subtle);
  z-index: 0;
}
.portrait img { position: relative; z-index: 1; }
.portrait img[data-broken] { display: none; }

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.about-body p strong { color: var(--ink-2); font-weight: 500; }

.competencies {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}
.competencies li {
  display: inline-flex;
  align-items: center;
}
.competencies li + li::before {
  content: '·';
  margin: 0 12px;
  color: rgba(26, 24, 18, 0.25);
  user-select: none;
}

/* 02 PROJECTS ------------------------------------------------------------*/
.projects-wrap { max-width: var(--content-narrow); margin: 0 auto; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  transition: background 280ms ease;
  position: relative;
  color: inherit;
}
.project-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.project-card .card-link { margin-top: auto; padding-top: 24px; }
.project-card:hover .project-cover,
.project-card:focus-visible .project-cover {
  background: rgba(184, 92, 56, 0.04);
  border-bottom-color: rgba(184, 92, 56, 0.25);
}
.project-card:hover .card-link,
.project-card:focus-visible .card-link {
  color: var(--blue-glow);
}
.project-card:hover .card-link .arr,
.project-card:focus-visible .card-link .arr {
  transform: translate(2px, -2px);
}
.project-card.is-soon:hover .card-link,
.project-card.is-soon:focus-visible .card-link { color: var(--ink-subtle); }
.project-card.is-soon:hover .card-link .arr,
.project-card.is-soon:focus-visible .card-link .arr { transform: none; }

.project-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  display: grid;
  place-items: center;
  transition: background 280ms ease, border-color 280ms ease;
  overflow: hidden;
}

.card-body { padding: 32px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
  text-transform: uppercase;
}
.card-body .h3 { margin-top: 20px; }
.card-body .card-desc {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 200ms ease;
}
.card-link .arr {
  display: inline-block;
  transition: transform 200ms ease;
}
.project-card.is-soon .card-link { color: var(--ink-subtle); }

/* Cover a) KnowForm — stacked mono metrics -------------------------------*/
.cover-knowform {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  height: 100%;
}
.cover-knowform .metrics {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}
.cover-knowform .metrics li {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.cover-knowform .metrics li:last-child { border-bottom: 0; }
.cover-knowform .metrics li:nth-child(1) { color: var(--ink); }
.cover-knowform .metrics li:nth-child(2) { color: var(--ink-2); }
.cover-knowform .metrics li:nth-child(3) { color: var(--ink-muted); }
.cover-knowform .metrics li .val {
  font-variant-numeric: tabular-nums;
}
.cover-knowform .metrics li .lbl {
  color: var(--ink-subtle);
  font-size: 11px;
}
.cover-knowform .vline {
  width: 1px;
  height: 80%;
  background: var(--blue);
  opacity: 0.4;
  align-self: center;
}

/* Cover b) FacePause — concentric arcs ----------------------------------*/
.cover-facepause {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}
.cover-facepause .arcs {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}
.cover-facepause .arcs svg { width: 100%; height: 100%; overflow: visible; display: block; }
.cover-facepause .fp-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* Cover c) DSW — big DSW letters ----------------------------------------*/
.cover-dsw {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 0;
}
.cover-dsw .letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cover-dsw .letter + .letter::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.5;
}
.cover-dsw .letter .big {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.cover-dsw .letter .lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* Cover d) Mini-kurs — pipeline -----------------------------------------*/
.cover-course {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.cover-course .pipeline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cover-course .pipe-box {
  position: relative;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(26, 24, 18, 0.015);
}
.cover-course .pipe-box.last::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(184, 92, 56, 0.7);
}
.cover-course .arr {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-subtle);
}
.cover-course .soon-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(184, 92, 56, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* 03 SERVICES ------------------------------------------------------------*/
.services-list .svc {
  position: relative;
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.services-list .svc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.services-list .svc-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}
.services-list .svc-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  position: relative;
  padding-left: 16px;
}
.services-list .svc-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--line-2);
  transform: translateY(-50%);
}
.services-list .svc-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.services-list .svc-desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
  text-wrap: pretty;
}
.services-list .svc-meta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.services-note {
  margin-top: 40px;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .services-list .svc { padding: 28px 0; }
  .services-list .svc-name { font-size: 19px; }
  .services-list .svc-desc { font-size: 15px; }
}

/* 04 CONTACT -------------------------------------------------------------*/
.contact-list { border-top: 1px solid var(--line); }
.contact-list .crow {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list .crow .clabel {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.contact-list .crow .cvalue {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 200ms ease;
  overflow-wrap: anywhere;
}
.contact-list .crow .cvalue .arr {
  display: inline-block;
  transition: transform 200ms ease;
}
.contact-list .crow a.cvalue:hover { color: var(--blue-glow); }
.contact-list .crow a.cvalue:hover .arr { transform: translate(2px, -2px); }

@media (max-width: 640px) {
  .contact-list .crow { grid-template-columns: 1fr; gap: 8px; }
}

/* FOOTER -----------------------------------------------------------------*/
.footer {
  padding-top: 96px;
  padding-bottom: 48px;
  margin-top: var(--section-gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  max-width: var(--content-narrow);
  margin-left: auto;
  margin-right: auto;
}
.footer .foot-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer .foot-left .name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer .foot-right {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  text-align: right;
}
@media (max-width: 640px) {
  .footer { flex-direction: column; align-items: flex-start; padding-top: 64px; }
  .footer .foot-right { text-align: left; }
}

/* =========================================================================
   MOTION
   ========================================================================= */

/* Scroll reveal base state (default = up) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Variant: scale (display numbers) — soft pop with tiny back-out */
[data-reveal][data-reveal-variant="scale"] {
  opacity: 0;
  transform: translateY(12px) scale(0.86);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.34, 1.45, 0.64, 1);
}
[data-reveal][data-reveal-variant="scale"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Variant: spring (project cards, services) — slight bounce on enter */
[data-reveal][data-reveal-variant="spring"] {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.34, 1.40, 0.64, 1);
}
[data-reveal][data-reveal-variant="spring"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero mount sequence ---------------------------------------------------*/
.hero .eyebrow-pill,
.hero h1 .word,
.hero-lead,
.hero-signature,
.meta-row {
  opacity: 0;
  transform: translateY(16px);
}
.hero.mounted .eyebrow-pill {
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 0ms both;
}
.hero.mounted h1 .word {
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero.mounted h1 .word:nth-child(1) { animation-delay: 150ms; }
.hero.mounted h1 .word:nth-child(2) { animation-delay: 230ms; }
.hero.mounted h1 .word:nth-child(3) { animation-delay: 310ms; }
.hero.mounted h1 .word:nth-child(4) { animation-delay: 390ms; }
.hero.mounted .hero-lead {
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 400ms both;
}
.hero.mounted .hero-signature {
  animation: fade 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 600ms both;
}
.hero.mounted .meta-row {
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Links — hover underline ------------------------------------------------*/
.inline-link,
.about-body a,
.services-note a {
  color: var(--ink);
  transition: color 200ms ease;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.inline-link:hover,
.about-body a:hover,
.services-note a:hover {
  color: var(--blue-glow);
  text-decoration: underline;
}

/* Reduced motion ---------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero .eyebrow-pill,
  .hero h1 .word,
  .hero-lead,
  .hero-signature,
  .meta-row { opacity: 1; transform: none; animation: none !important; }
}

/* LENIS smooth scroll ---------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
