/* ============================================================
   milicevic.se — "Stockholm midnatt"
   Warm near-black · editorial serif · ember accent · ledger
   ============================================================ */

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/SchibstedGrotesk-variable.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0f0d0a;
  --bg-raised: #15120e;
  --ink: #ede6da;
  --ink-soft: #c7bdad;
  --muted: #8d8273;
  --hairline: #272219;
  --accent: #ff5a28;
  --accent-soft: rgba(255, 90, 40, 0.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 72rem;
}

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

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

/* Anchored sections land below the sticky topbar */
[id] { scroll-margin-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Atmosphere: ember glow + grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48rem 34rem at 82% -8%, rgba(255, 90, 40, 0.16), transparent 62%),
    radial-gradient(50rem 35rem at -10% 45%, rgba(255, 90, 40, 0.05), transparent 55%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -200vw;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-dot { color: var(--accent); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.status:hover { color: var(--ink); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59c76e;
  box-shadow: 0 0 0 0 rgba(89, 199, 110, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(89, 199, 110, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(89, 199, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(89, 199, 110, 0); }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) var(--pad) clamp(4rem, 10vh, 7rem);
  position: relative;
}

/* Ghost glyph — typographic counterweight bleeding off the right edge */
.hero::after {
  content: 'N.';
  position: absolute;
  top: 50%;
  right: -0.08em;
  transform: translateY(-54%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18rem, 34vw, 34rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 90, 40, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
@media (max-width: 64rem) {
  .hero::after { display: none; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.6rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.5vw, 8.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.8rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2.6rem;
  text-wrap: pretty;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--accent);
  color: #16100c;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 40, 0.45);
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: #ff6f44;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(255, 90, 40, 0.55);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ---------- Marquee divider ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad) 0;
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.1rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.5rem);
}
/* Accent tick where the rule begins — a lit seam, not a decoration bar */
.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 1px;
  background: var(--accent);
}

.section-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Tjänster ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 56rem) {
  .services { grid-template-columns: 1fr; }
}

.service {
  background: var(--bg);
  padding: 2rem 1.8rem 2.2rem;
  position: relative;
  transition: background 0.25s ease;
}
.service:hover { background: var(--bg-raised); }
.service:hover .service-no { color: var(--accent); }

.service-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--muted);
  display: block;
  margin-bottom: 1.1rem;
  transition: color 0.25s ease;
}

.service h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Ledger (arbeten) ---------- */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li { border-bottom: 1px solid var(--hairline); }
.ledger li:first-child { border-top: 1px solid var(--hairline); }

.ledger a,
.ledger li > div {
  display: grid;
  grid-template-columns: 3rem 1fr 1.6fr auto 2rem;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ledger-no,
.ledger-name {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.2s ease;
}

.ledger a:hover,
.ledger a:focus-visible { background: var(--bg-raised); }
.ledger a:hover .ledger-no,
.ledger a:focus-visible .ledger-no,
.ledger a:hover .ledger-name,
.ledger a:focus-visible .ledger-name { transform: translateX(0.6rem); }
.ledger a:hover .ledger-name,
.ledger a:focus-visible .ledger-name { color: var(--accent); }
.ledger a:hover .ledger-arrow,
.ledger a:focus-visible .ledger-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.ledger-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.ledger-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
}

.ledger-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.ledger-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.is-live {
  color: var(--accent);
  border: 1px solid rgba(255, 90, 40, 0.4);
}
.is-wip {
  color: var(--muted);
  border: 1px solid var(--hairline);
}

.ledger-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

@media (max-width: 56rem) {
  .ledger a,
  .ledger li > div {
    grid-template-columns: 2.2rem 1fr auto;
    grid-template-areas:
      "no name status"
      "no desc status";
    row-gap: 0.2rem;
  }
  .ledger-no { grid-area: no; }
  .ledger-name { grid-area: name; }
  .ledger-desc { grid-area: desc; }
  .ledger-status { grid-area: status; align-self: center; }
  .ledger-arrow { display: none; }
}

/* ---------- Peek: hover preview of live work ---------- */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: clamp(16rem, 24vw, 22rem);
  aspect-ratio: 8 / 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -110%) scale(0.96) rotate(-1.5deg);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg-raised);
  overflow: hidden;
}
.peek.show {
  opacity: 1;
  transform: translate(-50%, -110%) scale(1) rotate(0deg);
}
.peek img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
@media (hover: none), (max-width: 56rem) {
  .peek { display: none; }
}

/* ---------- Om ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) 3fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 22rem; }
}

.about-photo {
  margin: 0;
  position: relative;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}
.about-photo figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.4rem;
}

.about-lede {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 1.4rem;
}
.about-lede em { color: var(--accent); }

.about-text p:not(.about-lede) {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.2rem;
  margin: 2.2rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.facts dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt ---------- */
.section-contact { padding-bottom: clamp(4rem, 10vh, 7rem); }

.contact-lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.3;
  max-width: 46rem;
  margin: 0 0 2.4rem;
  text-wrap: balance;
}
.contact-lede em { color: var(--accent); }

.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6.5vw, 5rem);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 2px solid var(--hairline);
  padding-bottom: 0.25rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color 0.25s ease, background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  word-break: break-all;
}
.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--accent);
  background-size: 100% 2px;
}

.contact-phone {
  display: block;
  width: max-content;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-phone:hover,
.contact-phone:focus-visible { color: var(--accent); }

.contact-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.6rem;
}
.contact-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(3rem, 8vh, 5rem);
  padding: 1.6rem var(--pad) 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer-note { font-family: var(--serif); font-style: italic; font-size: 0.95rem; }

/* ---------- Reveals ---------- */
.reveal-load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 80ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Stagger delays expressed in CSS (CSP forbids inline style attributes) */
.hero .reveal-load:nth-child(1) { --d: 0; }
.hero .reveal-load:nth-child(2) { --d: 1; }
.hero .reveal-load:nth-child(3) { --d: 2; }
.hero .reveal-load:nth-child(4) { --d: 3; }

.services .service:nth-child(1) { --d: 0; }
.services .service:nth-child(2) { --d: 1; }
.services .service:nth-child(3) { --d: 2; }

.ledger li:nth-child(1) .reveal, .ledger li:nth-child(1) { --d: 0; }
.ledger li:nth-child(2) { --d: 1; }
.ledger li:nth-child(3) { --d: 2; }
.ledger li:nth-child(4) { --d: 3; }

.about-photo { --d: 0; }
.about-text { --d: 1; }
.contact { --d: 1; }

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Två dörrar (hub) ---------- */
.doors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 56rem) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
}

.door {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 2.6rem 2.2rem 2.6rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  transition: background 0.3s ease;
}
/* Ghost numeral — same stroke language as the hero glyph */
.door::before {
  content: attr(data-no);
  position: absolute;
  top: -0.18em;
  right: -0.06em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 9.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 230, 218, 0.09);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.35s ease;
}
/* Ember rising from the threshold */
.door::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(26rem 15rem at 50% 118%, rgba(255, 90, 40, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.door:hover,
.door:focus-visible { background: var(--bg-raised); }
.door:hover::after,
.door:focus-visible::after { opacity: 1; }
.door:hover::before,
.door:focus-visible::before { -webkit-text-stroke-color: rgba(255, 90, 40, 0.22); }

.door > * { position: relative; }

.door-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.door-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}
.door-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 30rem;
  margin: 0 0 1.6rem;
}
.door-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.door-price span {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.door-cta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.door:hover .door-cta,
.door:focus-visible .door-cta { color: var(--accent); }
.door-arrow { transition: transform 0.2s ease; }
.door:hover .door-arrow,
.door:focus-visible .door-arrow { transform: translate(3px, -3px); }

.doors .door:nth-child(1) { --d: 0; }
.doors .door:nth-child(2) { --d: 1; }

/* ============================================================
   Konsult subpage (/konsult/) — inherits midnight tokens
   ============================================================ */
.backlink { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.backlink:hover { color: var(--ink); }

/* Wordier subpage headline — one step down from the hub's scale */
.hero--sub h1 { font-size: clamp(2.5rem, 7.4vw, 6.5rem); }

.page-lede {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}

.diff-intro { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.facts.facts--plain { border-top: 0; padding-top: 0; margin-top: 0; }

/* Competency grid */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 56rem) { .comp-grid { grid-template-columns: 1fr; } }

.comp {
  position: relative;
  background: var(--bg);
  padding: 1.6rem 1.6rem 1.7rem;
  transition: background 0.25s ease;
}
/* Lit seam along the left edge, revealed on hover */
.comp::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.comp:hover { background: var(--bg-raised); }
.comp:hover::before { transform: scaleY(1); }
.comp h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.comp p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* Experience */
.xp { list-style: none; margin: 0; padding: 0; }
.xp-item { border-top: 1px solid var(--hairline); padding: 1.8rem 0.25rem; }
.xp-item:last-child { border-bottom: 1px solid var(--hairline); }
.xp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.2rem;
}
.xp-role {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.15;
}
.xp-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.xp-company { color: var(--accent); font-size: 0.95rem; margin-bottom: 0.9rem; }
.xp-item ul { margin: 0; padding: 0; list-style: none; }
.xp-item li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}
.xp-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}
.xp-item li:last-child { margin-bottom: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load,
  html.js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .marquee-track { animation: none; }
  .status-dot { animation: none; }
  .btn, .ledger a, .peek, .door, .door-arrow,
  .door::before, .door::after, .comp::before, .contact-mail { transition: none; }
}
