/* ——————————————————————————————————————————————————————
   davidrehkamp.de · Revamp 2026 · Light
   Layout, type and color. Animations live in motion.css.
—————————————————————————————————————————————————————— */

/* ——— Fonts (from /fonts) ——— */
@font-face {
  font-family: 'TomatoRegular';
  src: url('../fonts/tomatogrotesk-regular-webfont.woff2') format('woff2'),
       url('../fonts/tomatogrotesk-regular-webfont.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'TomatoMedium';
  src: url('../fonts/tomatogrotesk-medium-webfont.woff2') format('woff2'),
       url('../fonts/tomatogrotesk-medium-webfont.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'TomatoLight';
  src: url('../fonts/tomatogrotesk-light-webfont.woff2') format('woff2'),
       url('../fonts/tomatogrotesk-light-webfont.woff') format('woff');
  font-display: swap;
}

/* ——— Tokens (matches _color.scss, plus paper + sand) ——— */
:root {
  --antracita: #2F2F32;
  --antracita-2: #3A3A3E; /* hover surface on antracita */
  --amarillo:  #F4F85A;
  --darkgrey:  #4D4D4D;
  --grey:      #D9DEDC;
  --white:     #FFFFFF;
  --blue:      #4D18E5;

  --paper:     #F4F1EA;   /* page background */
  --sand:      #E4DED0;   /* photo blob */
  --rule:      #DDD7CA;   /* hairlines on paper */
  --muted-dk:  #B8B4A8;   /* secondary text on antracita */
  --green:     #1F9D55;   /* status dot */

  --f-regular: 'TomatoRegular', system-ui, sans-serif;
  --f-medium:  'TomatoMedium', 'TomatoRegular', sans-serif;
  --f-light:   'TomatoLight', 'TomatoRegular', sans-serif;

  --max: 1440px;
  --gutter: clamp(24px, 4vw, 72px);
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1); /* expo-out, used for the header collapse */
  --t-header: .7s;
}

/* ——— Base ——— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--antracita);
  font-family: var(--f-regular);
  font-size: 22px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
a { color: inherit; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .chip:focus-visible, .job-toggle:focus-visible { border-radius: var(--radius-pill); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); } /* sticky header offset for anchor links */
img { display: block; max-width: 100%; }
ul { list-style: none; }

h1, h2, .job-name, .brand-name { font-family: var(--f-medium); font-weight: 500; }
.light { font-family: var(--f-light); font-weight: 300; }
.gold  { color: var(--amarillo); }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--darkgrey);
}
.eyebrow-dark { color: var(--muted-dk); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px;
  border: 1.5px solid var(--antracita); border-radius: var(--radius-pill);
  font-size: 18px; text-decoration: none; color: var(--antracita);
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark    { background: var(--antracita); color: var(--paper); }
.btn.btn-dark:hover { background: var(--paper); border-color: var(--antracita); color: var(--antracita); box-shadow: 0 6px 0 var(--antracita); }  /* beats .btn:hover in motion.css */
.btn-outline { background: transparent; }
.btn-gold    { background: var(--amarillo); }
.btn-outline:hover, .btn-gold:hover { color: var(--antracita); }
.btn-sm      { min-height: 46px; padding: 0 22px; font-size: 17px; }
.btn-xl      { justify-content: space-between; min-height: 76px; padding: 0 28px; border-radius: 20px; font-size: 22px; width: 100%; }
.btn-grow    { flex: 1; }
.btn-row     { display: flex; gap: 12px; flex-wrap: wrap; }

/* ——— Header ——— */
/* Glass bar: fixed, translucent. main.js toggles .is-scrolled (name → "Say hi" button)
   and .is-dark (over the antracita Work section). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--header-h);
  color: var(--antracita);
  background: rgba(244, 241, 234, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 -1px 0 rgba(47, 47, 50, .08);
  transition: height var(--t-header) var(--ease-soft), background .4s, color .4s, box-shadow .4s;
}
.site-header.is-scrolled { height: 48px; }
.site-header.is-dark { color: var(--paper); background: rgba(47, 47, 50, .72); box-shadow: inset 0 -1px 0 rgba(244, 241, 234, .1); }
.header-inner { max-width: none; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Brand (logo, right) */
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; }
.brand:hover { color: var(--blue); }
.site-header.is-dark .brand:hover { color: var(--amarillo); }
.brand-logo { width: 60px; height: 40px; color: inherit; transition: transform .25s var(--ease), width var(--t-header) var(--ease-soft), height var(--t-header) var(--ease-soft); }
.site-header.is-scrolled .brand-logo { width: 39px; height: 26px; }  /* inline SVG, fill: currentColor */
.brand:hover .brand-logo { transform: translateX(3px); }

/* Morph (left): name block at the top of the page, "Say hi" pill once scrolled; the greeting rolls through languages.
   main.js writes --w-name / --w-cta so the pill width can animate. */
.morph {
  position: relative; display: block; height: 48px;
  width: calc(var(--w-name, 220px) + 40px);
  margin-left: -20px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: width var(--t-header) var(--ease-soft), height var(--t-header) var(--ease-soft), margin var(--t-header) var(--ease-soft), padding var(--t-header) var(--ease-soft), background .45s var(--ease-soft), border-color .45s var(--ease-soft), color .45s var(--ease-soft), transform .2s ease, box-shadow .2s ease;
}
html:not(.js) .morph { width: auto; }   /* no JS: no measurement, no morph */
.morph-name, .morph-cta {
  position: absolute; left: 20px; top: 0; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  transition: opacity .4s var(--ease-soft), transform var(--t-header) var(--ease-soft), left var(--t-header) var(--ease-soft);
}
.morph-name { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.morph-title { font-family: var(--f-medium); font-weight: 500; font-size: 17px; line-height: 1.2; }
.morph-sub { font-size: 14px; line-height: 1.2; color: var(--darkgrey); transition: color .35s; }
.site-header.is-dark .morph-sub { color: var(--muted-dk); }
.morph-cta { gap: 6px; font-size: 15px; opacity: 0; transform: translateY(12px); }
.morph-cta .arrow { width: 16px; height: 16px; }
/* Rolling greeting: a vertical strip of words, one visible at a time */
.hello { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: bottom;
  width: var(--hw, 1.1em); transition: width .5s var(--ease-soft); }
.hello-track { display: flex; flex-direction: column; transform: translateY(calc(var(--hi, 0) * -1.3em));
  transition: transform .9s cubic-bezier(.34, 1.3, .64, 1); }
.hello-track { width: max-content; }
.hello-track > span { display: block; width: max-content; height: 1.3em; white-space: nowrap; }
.hello-track.no-anim { transition: none; }

.site-header.is-scrolled .morph {
  width: calc(var(--w-cta, 120px) + 32px);
  height: 30px; margin-left: 0; padding: 0 16px;
  background: var(--antracita); border-color: var(--antracita); color: var(--paper);
}
.site-header.is-scrolled .morph-name { opacity: 0; transform: translateY(-12px); }
.site-header.is-scrolled .morph-cta { opacity: 1; transform: none; left: 16px; }
.site-header.is-scrolled .morph:hover { transform: translateY(-2px); background: var(--paper); border-color: var(--antracita); box-shadow: 0 4px 0 var(--antracita); color: var(--antracita); }
.site-header.is-dark.is-scrolled .morph { background: var(--amarillo); border-color: var(--amarillo); color: var(--antracita); }
.site-header.is-dark.is-scrolled .morph:hover { color: var(--antracita); box-shadow: 0 3px 0 rgba(244, 248, 90, .25); }
.morph:focus-visible { outline-offset: 2px; }

/* ——— Hero ——— */
/* Hero fills most of the first screen but is capped, so tall windows don't open a gap before About;
   content is centred in that height and paddings scale with the viewport width */
.hero { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: clamp(40px, 4vw, 72px);
  padding-block: clamp(48px, 5vw, 96px) clamp(64px, 7vw, 128px);
  min-height: min(calc(80svh - var(--header-h)), 900px);
  overflow-x: clip; }   /* the spinning badge's square box would otherwise widen the page on phones */
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--darkgrey); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-title { font-size: clamp(48px, 6.6vw, 100px); line-height: .95; letter-spacing: -0.04em; }
.hero-lead { max-width: 560px; font-size: 18px; color: var(--darkgrey); }
.hero-lead a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

.hero-visual { flex: 1 1 400px; min-width: 0; position: relative; padding: 24px 12px 12px 0; }
/* Portrait card: tall 2:3 frame with a hard offset shadow (echoes the speech bubble) */
.blob { width: min(100%, 440px); margin-left: auto; aspect-ratio: 2 / 3; background: #0D3B5E; overflow: hidden; border-radius: 28px; box-shadow: 12px 12px 0 var(--antracita); }
.blob { position: relative; }
.blob-img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 40%; }
.blob-pixel { position: absolute; inset: 0; width: 100%; height: 110%; object-fit: cover; object-position: 50% 40%; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.blob::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 55%, rgba(244,241,234,.18)); opacity: 0; pointer-events: none; }
.clock { font-variant-numeric: tabular-nums; }
.clock:empty::before { content: 'local time'; }

.badge-wrap { position: absolute; right: -40px; top: -36px; }
.badge {
  position: relative; width: 140px; height: 140px; border-radius: 50%;
  background: var(--amarillo);
  display: flex; align-items: center; justify-content: center;
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring text { font-family: var(--f-medium); font-size: 11.5px; letter-spacing: 3.1px; fill: var(--antracita); }
.asterisk { width: 36px; height: 36px; fill: var(--antracita); }

.bubble-wrap { position: absolute; left: -96px; bottom: 20px; }
/* Speech bubble as a chat message: sender row, typing dots, then the text */
.bubble {
  position: relative; width: 264px; padding: 14px 16px 16px;
  background: var(--white); border: 1.5px solid var(--antracita);
  border-radius: 20px 20px 20px 6px;            /* chat tail corner */
  box-shadow: 5px 5px 0 var(--antracita);
  font-size: 16px; line-height: 1.4;
}
.bubble-msg { position: relative; min-height: 1.4em; }
.typing { position: absolute; left: 0; top: .35em; display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--antracita); opacity: .35; }
.wave { display: inline-block; transform-origin: 70% 80%; }
.bubble-credit {
  position: absolute; right: -10px; bottom: -14px; transform: rotate(4deg);
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--amarillo); border: 1.5px solid var(--antracita);
  font-family: var(--f-medium); font-size: 11px; letter-spacing: .4px; white-space: nowrap;
}

/* ——— About ——— */
.about { padding-block: clamp(24px, 3vw, 56px) clamp(72px, 8vw, 144px); display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 80px); }
.about-head { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.about-title .w, .work-title .w, .contact-title .w { display: inline-block; }
.about-title { max-width: 1180px; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -0.03em; }

.about-grid { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 48px; }
.about-grid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: left; }
.about-text { position: relative; z-index: 1; flex: 1 1 420px; min-width: 0; max-width: 620px; font-size: clamp(20px, 1.5vw, 24px); line-height: 1.5; color: var(--darkgrey); }

/* Shapes drift behind the glass card at different speeds (data-parallax) */
.about-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; display: block; }
.orb-a { width: 420px; height: 420px; right: 6%; top: -140px; background: var(--amarillo); }
/* Label straddles the glass card's bottom edge: pulled up by half its own height, then 3px lower
   (half of line-height 1.2em + 2×10px padding + 2×1.5px border), hanging off the card's left edge */
.deco-sticker {
  position: relative; z-index: 3; rotate: -1deg;   /* own property, so it stacks with the float/mouse transforms */
  display: flex; width: fit-content; align-items: center; margin: calc(-.6em - 11.5px + 3px) 0 0 -60px; padding: 10px 18px;
  border-radius: var(--radius-pill); background: var(--amarillo); border: 1.5px solid var(--antracita); box-shadow: 4px 4px 0 var(--antracita);
  font-family: var(--f-medium); font-size: 16px; line-height: 1.2; letter-spacing: .3px; white-space: nowrap; color: var(--antracita);
}
.orb-c { width: 150px; height: 150px; right: 1%; top: -168px; background: none; border-radius: 0; }
.orb-asterisk { width: 100%; height: 100%; fill: var(--antracita); }

/* Facts as a frosted glass card, overlapping the hairline above */
/* Right column: glass card + sticker move together (data-parallax) */
.about-side { position: relative; z-index: 2; flex: 1 1 400px; min-width: 0; margin-left: auto; max-width: 560px; margin-top: -96px; }
.about-facts { position: relative; }
.glass {
  padding: 28px 34px;
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(47, 47, 50, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
/* Rows: fixed number column + label column, vertically centred, equal rhythm */
.fact { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: last baseline; column-gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(47, 47, 50, .12); }
.fact-num { text-align: right; }  /* numbers hug the label; label's last line sits on the number's baseline */
.fact:first-child { padding-top: 4px; }
.fact:last-child { border-bottom: 0; padding-bottom: 4px; }
.fact-num { font-family: var(--f-medium); font-weight: 500; font-size: clamp(38px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fact-label { display: block; min-width: 0; max-width: 30ch; font-size: 16px; line-height: 1.4; color: var(--darkgrey); text-wrap: pretty; }
.fact-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.fact-head a { font-family: var(--f-medium); font-weight: 500; font-size: 18px; color: var(--antracita); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fact-head a:hover { color: var(--blue); }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: var(--radius-pill);
  background: var(--amarillo); color: var(--antracita);
  font-family: var(--f-medium); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.3;
}
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.about-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--rule); }
.how { position: relative; padding: 32px 40px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.how + .how { padding-left: 40px; border-left: 1px solid var(--rule); margin-left: -40px; }
.how-idx { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 28px; border-radius: var(--radius-pill); background: var(--amarillo); font-family: var(--f-medium); font-size: 13px; letter-spacing: 1px; }
.how-title { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 6px; }
.how-text { max-width: 36ch; font-size: 18px; line-height: 1.5; color: var(--darkgrey); }

/* ——— Clients ——— */
.clients { display: flex; flex-direction: column; gap: 18px; padding-bottom: 112px; }
.marquee { overflow: hidden; }
.track { display: flex; width: max-content; }
.track-group { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
.track-label { padding: 0 12px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--darkgrey); }
.chip {
  display: flex; align-items: center; min-height: 64px; padding: 0 30px;
  border: 1.5px solid var(--antracita); border-radius: var(--radius-pill);
  font-size: 24px; white-space: nowrap; text-decoration: none; color: var(--antracita);
}
.chip-dark { background: var(--antracita); color: var(--paper); }
.chip-gold { background: var(--amarillo); }
span.chip { cursor: default; }
/* Website peek on hover: a tiny browser window with a screenshot and the industry */
.chip-peek {
  position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; width: 300px;
  background: var(--white); color: var(--antracita); border: 1.5px solid var(--antracita);
  border-radius: 14px; box-shadow: 5px 5px 0 var(--antracita); overflow: hidden;
  opacity: 0; scale: .92; transform-origin: 0 100%;
  transition: opacity .18s ease, scale .25s cubic-bezier(.34, 1.56, .64, 1);
}
.chip-peek.on { opacity: 1; scale: 1; }
.peek-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1.5px solid var(--antracita); background: var(--paper); }
.peek-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.peek-bar i:first-child { background: #FF5F57; } .peek-bar i:nth-child(2) { background: #FEBC2E; } .peek-bar i:nth-child(3) { background: #28C840; }
.chip-peek-url { flex: 1; margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--white); font-size: 11px; color: var(--darkgrey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--grey); }
.peek-foot { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-family: var(--f-medium); font-size: 13px; }
.peek-industry::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--amarillo); border: 1px solid var(--antracita); vertical-align: 0; }
.chip-peek .arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Work ——— */
.work { background: var(--antracita); color: var(--paper); }
.work .container { padding-block: 96px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 40px; }
.work-title { font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -0.035em; }
/* Timeline: years sit left of a vertical rail, one node per job; the rail fills yellow
   as you scroll (main.js writes --tl 0…1 on .jobs and .is-past on passed jobs).
   --rail = x of the rail centre = toggle padding 12 + years 160 + half the 56px gap. */
.jobs { --rail: 200px; --rule-x: calc(var(--rail) + 28px); position: relative;
  background: linear-gradient(var(--darkgrey), var(--darkgrey)) no-repeat var(--rule-x) 100% / calc(100% - var(--rule-x)) 1px; }
.jobs::before, .jobs::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail) - 1px); width: 2px; border-radius: 2px; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.jobs::before { background: var(--darkgrey); }
.jobs::after  { background: var(--amarillo); transform: scaleY(var(--tl, 0)); transform-origin: top; }
.job { position: relative; }
.job::after { content: ""; position: absolute; top: 0; left: var(--rule-x); right: 0; height: 1px; background: var(--darkgrey); }
.job-toggle {
  position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 56px;
  padding: 28px 12px; background: none; border: 0; color: var(--paper);
  font: inherit; text-align: left; cursor: pointer;
  --dot-y: 50%;
}
/* node on the rail */
.job-toggle::before {
  content: ""; position: absolute; z-index: 1; left: var(--rail); top: var(--dot-y); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--antracita); border: 2px solid var(--darkgrey);
  transition: background .3s, border-color .3s, box-shadow .3s, scale .4s cubic-bezier(.34, 1.56, .64, 1);
}
.job.is-past .job-toggle::before { background: var(--amarillo); border-color: var(--amarillo); }
.job.is-open .job-toggle::before { background: var(--amarillo); border-color: var(--amarillo); scale: 1.35; box-shadow: 0 0 0 6px rgba(244, 248, 90, .18); }
.job-years { flex: 0 0 160px; font-size: 17px; color: var(--muted-dk); text-align: right; }
.job.is-open .job-years, .job.is-past .job-years { color: var(--paper); }
.job .job-years.is-repeat { color: transparent; user-select: none; }   /* same year as the job above: node only, year stays for screen readers */
.job-name  { flex: 999 1 320px; min-width: 0; font-size: 36px; letter-spacing: -0.01em; }
.job-toggle:focus-visible { outline-offset: -2px; border-radius: 12px; }
.job-chev { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--muted-dk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job-toggle:hover .job-chev { stroke: var(--paper); }
.job.is-open .job-chev { stroke: var(--amarillo); rotate: 180deg; }

/* Panel height animates via grid rows 0fr → 1fr (no fixed max-height) */
.job-panel { display: grid; grid-template-rows: 0fr; overflow: hidden; }
.job.is-open .job-panel { grid-template-rows: 1fr; }
.job-panel-inner { min-height: 0; display: flex; padding: 0 12px 0 calc(12px + 160px + 56px); }   /* content starts under the name */
.job.is-open .job-panel-inner { padding-bottom: 40px; }   /* only when open, or a closed row keeps a 40px strip */
/* role · employment · place, one line above the text */
.job-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 16px; color: var(--muted-dk); }
.job-meta > span + span::before { content: "·"; margin: 0 10px; color: var(--darkgrey); }
.job-role { font-family: var(--f-medium); color: var(--paper); }
.job-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.job-body p + .job-link { margin-top: 4px; }
.job-body p { max-width: 780px; font-size: clamp(19px, 1.4vw, 22px); line-height: 1.6; color: var(--grey); }
.job-body p a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.job-body p a:hover { color: var(--amarillo); }
.job-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: max-content; color: var(--amarillo); font-size: 19px; text-decoration: none; }
.job-link:hover { color: var(--amarillo); }
.job-link svg, .arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Contact ——— */
.contact { display: flex; flex-direction: column; gap: 36px; padding-block: 128px 72px; }
.say-big { font-size: clamp(72px, 13vw, 220px); line-height: .9; letter-spacing: -0.05em; white-space: nowrap; margin-left: -.04em; }
.say-word { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: top; margin-top: -.15em;
  width: var(--sw, 1.1em); transition: width .6s var(--ease-soft); font-family: var(--f-light); font-weight: 300; }
.say-track { display: flex; flex-direction: column; width: max-content; transform: translateY(calc(var(--si, 0) * -1.2em));
  transition: transform .9s cubic-bezier(.34, 1.3, .64, 1); }
.say-track > span { display: block; height: 1.2em; width: max-content; }

.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.copy-wrap { position: relative; }
.mail-copy {
  display: inline-flex; align-items: center; gap: 18px; min-height: 76px; padding: 0 12px 0 28px;
  border: 1.5px solid var(--antracita); border-radius: var(--radius-pill); background: var(--amarillo); color: var(--antracita);
  font: inherit; font-family: var(--f-medium); font-size: clamp(20px, 2vw, 28px); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mail-copy:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--antracita); }
.mail-copy-hint { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--antracita); color: var(--paper); font-family: var(--f-regular); font-size: 16px; }
.copy-toast {
  position: absolute; left: 24px; bottom: calc(100% + 14px); padding: 10px 14px; white-space: nowrap;
  background: var(--white); border: 1.5px solid var(--antracita); border-radius: 16px 16px 16px 4px; box-shadow: 4px 4px 0 var(--antracita);
  font-size: 15px; opacity: 0; translate: 0 8px; pointer-events: none; transition: opacity .2s ease, translate .3s cubic-bezier(.34, 1.56, .64, 1);
}
.copy-toast.on { opacity: 1; translate: 0 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--darkgrey); }
.status-line .sep { color: var(--rule); }
.status-line a { color: var(--antracita); text-underline-offset: 3px; }

.site-footer { }
.footer-inner { max-width: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px 48px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--darkgrey); }
.footer-inner a { color: var(--darkgrey); }

/* ——————————————————————————————————————————————————————
   MOBILE  (same breakpoint as _type.scss)
—————————————————————————————————————————————————————— */
@media (max-width: 979px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }
  :root { --header-h: 64px; }
  .brand-logo { width: 45px; height: 30px; }
  .morph-title { font-size: 16px; }
  .morph-sub { display: none; }
  .morph-cta { font-size: 14px; }
  .site-header.is-scrolled .brand-logo { width: 33px; height: 22px; }
  .site-header.is-scrolled { height: 44px; }
  .hero { padding-block: 56px 48px; gap: 36px; min-height: 0; }
  .hero-title { font-size: clamp(38px, 11vw, 48px); line-height: .98; letter-spacing: -0.035em; }
  .hero-lead { font-size: 17px; }
  .btn { min-height: 52px; padding: 0 22px; font-size: 17px; }
  .btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .hero-visual { flex-basis: 100%; padding-top: 8px; }
  .blob { width: 100%; max-width: 360px; border-radius: 22px; box-shadow: 8px 8px 0 var(--antracita); }
  .badge-wrap { right: -14px; top: -28px; }
  .badge { width: 112px; height: 112px; }
  .asterisk { width: 28px; height: 28px; }
  .bubble-wrap { left: -14px; bottom: 8px; }
  .bubble { width: 228px; font-size: 14px; box-shadow: 4px 4px 0 var(--antracita); }
  .about { padding-block: 48px 64px; gap: 36px; }
  .about-head { gap: 12px; }
  .about-title { font-size: 38px; line-height: 1.1; }
  .about-grid { padding-top: 32px; gap: 28px; }
  .about-text { font-size: 19px; }
  .about-side { max-width: none; margin-top: 0; }
  .glass { padding: 20px 20px 34px; border-radius: 22px; }  /* extra bottom room for the label on the edge */
  .fact { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; }
  .fact-num { font-size: 34px; }
  .fact-label { font-size: 15px; }
  .orb-a { width: 240px; height: 240px; right: -70px; top: 190px; }
  .deco-sticker { margin-left: -8px; font-size: 15px; }
  .orb-c { display: none; }
  .about-how { grid-template-columns: 1fr; gap: 0; }
  .how { padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .how:last-child { border-bottom: 0; }
  .how + .how { padding-left: 0; border-left: 0; margin-left: 0; }
  .how-title { font-size: 26px; }
  .how-text { font-size: 17px; max-width: none; }
  .clients { padding-bottom: 56px; gap: 14px; }
  .chip { min-height: 48px; padding: 0 20px; font-size: 17px; }
  .track-group { gap: 10px; padding-right: 10px; }
  .work .container { padding-block: 48px; }
  .work-title { font-size: 44px; }
  .jobs { --rail: 7px; --rule-x: 28px; }
  .job-toggle { padding: 20px 0 20px 28px; gap: 6px 14px; --dot-y: 29px; }   /* node lines up with the year */
  .job-years { flex-basis: 100%; order: -1; font-size: 14px; text-align: left; }
  .job-years.is-repeat { position: absolute; width: 1px; height: 1px; overflow: hidden; }   /* no empty line; node moves to the name */
  .job-toggle:has(.is-repeat) { --dot-y: 36px; }
  .job-name { flex: 1 1 0; font-size: 24px; }
  .job-chev { width: 24px; height: 24px; }
  .job-panel-inner { padding: 0 0 0 28px; }   /* matches the toggle inset */
  .job.is-open .job-panel-inner { padding-bottom: 24px; }
  .job-meta { font-size: 15px; }
  .job-body p { font-size: 18px; }
  .contact { padding-block: 72px 40px; gap: 24px; }
  .say-big { font-size: 15vw; white-space: normal; }
  .mail-copy { width: 100%; justify-content: space-between; min-height: 64px; font-size: 18px; padding-left: 20px; }
  .mail-copy-hint { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .contact-links { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .contact-links .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .status-line { font-size: 14px; }
  .btn-xl { min-height: 64px; font-size: 19px; }
}
