/* Layout: one full-screen view per tab (no page scroll), shared deep-space canvas behind all views:
   tiny twinkling stars, diagonal shooting stars, a star-trail cursor and Saturn. */
:root {
  --void: #020203;
  --ink: #f4f4f6;
  --mist: #a6a6ae;
  --dim: #63636c;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: rgba(8, 8, 11, 0.62);
  --ok: #bff5cf;
  --err: #ffb4b4;

  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.76rem, 0.74rem + 0.1vw, 0.82rem);
  --step-0: clamp(0.92rem, 0.9rem + 0.12vw, 1rem);
  --step-1: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
  --pager-h: 18px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--void); }
body { margin: 0; background: var(--void); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
.lite .panel, .lite .chip, .lite .tab, .lite .filter, .lite .sphere button { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .panel { background: linear-gradient(180deg, rgba(14,14,18,.9), rgba(6,6,8,.92)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--void); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--void); border-radius: 999px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- sky ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.65)); }
.wrap { width: 100%; min-width: 0; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons & chips ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: 14px; border: 1px solid rgba(255,255,255,.78);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.6)), #050506; color: var(--ink); font-weight: 600; font-size: var(--step-0); cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 0 14px rgba(255,255,255,.28), 0 0 34px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 0 22px rgba(255,255,255,.5), 0 0 60px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.35); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 0 8px rgba(255,255,255,.35), inset 0 2px 8px rgba(0,0,0,.8); }
.btn--solid { background: var(--ink); color: var(--void); border-color: var(--ink); }
.btn--solid:hover { background: #fff; }
.btn--ghost { border-color: var(--line-strong); box-shadow: none; background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(255,255,255,.7); box-shadow: 0 0 18px rgba(255,255,255,.2); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .42em .95em; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(10,10,12,.7); font-size: var(--step--1); backdrop-filter: blur(8px); box-shadow: 0 0 0 4px rgba(255,255,255,.02); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px var(--ink); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--ink); } }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.8); box-shadow: 0 0 18px rgba(255,255,255,.35); background: rgba(255,255,255,.07); }
.icon-btn:active { transform: translateY(0) scale(.94); }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--mist); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--mist); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(14,14,18,.72), rgba(6,6,8,.72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- nav ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100; padding-block: 14px; }
.nav__bar { margin-inline: auto; max-width: 100%; transition: max-width .8s var(--ease), padding .8s var(--ease), gap .8s var(--ease); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: flex; align-items: center; height: 42px; padding: 0 15px; border-radius: 12px; font-size: .92rem; color: var(--mist); white-space: nowrap; transition: color .2s, background .2s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); box-shadow: 0 0 8px var(--ink); }
.nav__links a { border: 1px solid transparent; }
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav__links a:active { background: rgba(255,255,255,.12); }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(255,255,255,.06); font-weight: 600; }
.nav__links a[aria-current="page"]::after, .nav__links a:hover::after { transform: scaleX(1); }
.brand { flex: 0 0 auto; display: flex; align-items: center; height: 42px; padding: 0 6px; margin: 0 -6px; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: .06em; color: var(--ink); text-shadow: 0 0 18px rgba(255,255,255,.28); white-space: nowrap; transition: max-width .8s var(--ease), flex-grow .8s var(--ease), padding .8s var(--ease), margin .8s var(--ease), opacity .45s var(--ease), text-shadow .3s; }
.brand:hover { text-shadow: 0 0 22px rgba(255,255,255,.55); }
.brand:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__right { max-width: 460px; transition: max-width .8s var(--ease), flex-grow .8s var(--ease), padding .8s var(--ease), margin .8s var(--ease), opacity .45s var(--ease); white-space: nowrap; overflow: hidden; padding: 12px; margin: -12px; } /* the padding keeps the button glow from being clipped */
@media (min-width: 861px) {
  /* everything eases together: the bar narrows while EPS and the buttons fold away on both sides, so the links stay centred */
  .nav.is-compact .nav__bar { max-width: var(--compact-w, 640px); padding: 6px; gap: 0; }
  .nav.is-compact .brand { flex-grow: 0; max-width: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
  .nav.is-compact .nav__right { flex-grow: 0; max-width: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
}
.nav__cta { height: 42px; padding: 0 1.05em; font-size: .88rem; border-radius: 12px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); cursor: pointer; position: relative; transition: background .2s, border-color .2s; }
.burger:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- views (one per page) ---------- */
.views { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
/* big screens: js/fit.js sets --z so the content grows with the window (vh sizes inside are divided by --z so zoom does not double them) */
.nav, .view > .wrap, .modal__box { zoom: var(--z, 1); }
.view { position: absolute; inset: 0; padding-top: calc(var(--nav-h) * var(--z, 1) + env(safe-area-inset-top, 0px) + 12px); padding-bottom: calc(var(--pager-h) + env(safe-area-inset-bottom, 0px) + 8px);
  display: grid; align-content: center; align-content: safe center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.view::-webkit-scrollbar { display: none; }
.view.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .08s, transform .8s var(--ease) .08s, visibility 0s; }
.view.is-active { pointer-events: auto; }
#projects { align-content: start; }
.view.is-leaving { transform: translateY(-14px) scale(.985); }
.head { display: grid; gap: 10px; margin-bottom: clamp(18px, calc(3vh / var(--z, 1)), 30px); }
.head h2 { font-size: var(--step-3); font-weight: 300; }
.head h2 strong { font-weight: 500; }
.head p { color: var(--mist); max-width: 62ch; }


/* ---------- about (home) ---------- */
.home { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.home__copy { display: grid; gap: clamp(14px, calc(2.2vh / var(--z, 1)), 22px); justify-items: start; min-width: 0; }
.home h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
.home h1 strong { font-weight: 500; }
.home h1 .hi { display: block; font-size: .58em; font-weight: 300; letter-spacing: -0.02em; color: var(--mist); margin-bottom: .1em; }
.home h1 .name { display: block; white-space: nowrap; font-size: min(1em, 11.5vw); } /* the whole name stays on one line */
.home .sub { font-family: var(--f-display); font-size: var(--step-1); font-weight: 300; color: var(--ink); }
.cycler { display: inline-block; background: linear-gradient(180deg, #fff 30%, #8d8d96); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--ink); vertical-align: -0.12em; animation: blink 1s steps(2) infinite; box-shadow: 0 0 8px var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
.home .lede { color: var(--mist); max-width: 54ch; }
.stats { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1px; width: 100%; max-width: 620px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: rgba(5,5,7,.88); padding: 13px 14px; display: grid; gap: 1px; transition: background .3s; }
.stat:hover { background: rgba(24,24,28,.95); }
.stat b { font-family: var(--f-display); font-size: var(--step-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: var(--step--1); color: var(--mist); }
.stat b.stat__place { font-size: var(--step-1); line-height: 1.9; }
.stat--uni b.stat__place, .stat--city b.stat__place { font-size: var(--step-0); white-space: normal; line-height: 1.25; min-height: 2.4em; display: flex; align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
/* Languages box beside "View projects": same height as the buttons */
.langs { display: inline-grid; grid-template-columns: auto auto; align-items: center; align-content: center; column-gap: 10px; row-gap: 1px; padding: 6px 18px 6px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.78); color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.6)), #050506; }
.langs > svg { grid-row: span 2; width: 20px; height: 20px; color: var(--ink); }
.langs__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.langs__list { font-size: var(--step--1); white-space: nowrap; }
.langs__list span + span::before { content: "·"; margin: 0 .5em; color: var(--dim); }
/* The frame crops the photo to Adam's head and upper body (source x 170-610, y 40-710 of the photo at 765px wide; the files are 2x and 4x that).
   A cut-out copy of the same photo sits on top, clipped to everything outside the frame (minus the frame's bottom
   corners), so the arms and hands reach out over the frame's edge. */
.photo { position: relative; height: min(calc(60vh / var(--z, 1)), 540px); aspect-ratio: 440 / 670; justify-self: center; --r: 28px; }
.photo__art { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.photo__frame { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: #0b0b0d; }
.photo__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.24); background: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.45)); transition: border-color .3s, box-shadow .4s; }
.photo img { position: absolute; left: -38.636%; top: -5.97%; width: 173.864%; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.photo__pop { position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(evenodd, -80% -40%, 180% -40%, 180% calc(100% - var(--r)), -80% calc(100% - var(--r)), -80% -40%,
    2px 2px, calc(100% - 2px) 2px, calc(100% - 2px) calc(100% - var(--r)), 2px calc(100% - var(--r)), 2px 2px); }
.photo__pop img { filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.photo:hover .photo__art { transform: rotate(-1deg); }
.photo:hover .photo__frame::after { border-color: rgba(255,255,255,.6); box-shadow: 0 0 40px rgba(255,255,255,.1); }
.photo__ring { position: absolute; inset: -18px; border-radius: 36px; border: 1px solid rgba(255,255,255,.07); pointer-events: none; }
.photo__ring::before { content: ""; position: absolute; top: -4px; left: 30%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 12px var(--ink), 0 0 26px var(--ink); animation: orbit 14s linear infinite; offset-path: inset(0 round 36px); }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.logos { width: 100%; max-width: 620px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-top: 4px; }
.logos__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logo-item { display: inline-flex; align-items: center; gap: 8px; color: #85858d; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; transition: color .25s, text-shadow .25s; }
.logo-item:hover { color: var(--ink); text-shadow: 0 0 14px rgba(255,255,255,.6); }
.logo-item svg { width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.skills__left { display: grid; gap: 16px; min-width: 0; }
.verb { font-family: var(--f-display); font-size: var(--step-3); font-weight: 300; line-height: 1.1; }
.verb__swap { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.verb__swap span { display: block; font-weight: 600; letter-spacing: .02em; transition: transform .6s var(--ease); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab, .filter { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8,8,10,.78); backdrop-filter: blur(6px); font-size: .85rem; color: var(--mist); cursor: pointer; transition: color .2s, border-color .2s, background .2s, box-shadow .25s, transform .15s; }
.tab:hover, .filter:hover { color: var(--ink); border-color: var(--line-strong); }
.tab:active, .filter:active { transform: scale(.96); }
.tab[aria-selected="true"], .filter[aria-pressed="true"] { color: var(--void); background: var(--ink); border-color: var(--ink); box-shadow: 0 0 18px rgba(255,255,255,.35); }
.filter sup { font-family: var(--f-mono); font-size: .64rem; margin-left: 4px; opacity: .7; }
.tabpanel { padding: 20px 22px; display: grid; gap: 14px; min-height: 196px; align-content: start; }
.bar { display: grid; gap: 6px; }
.bar__top { display: flex; justify-content: space-between; font-size: .9rem; }
.bar__top span:last-child { font-family: var(--f-mono); font-size: .74rem; color: var(--mist); font-variant-numeric: tabular-nums; }
.bar__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar__fill { height: 100%; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.35), #fff); box-shadow: 0 0 10px rgba(255,255,255,.6); transform-origin: 0 50%; animation: fill 1.2s var(--ease) both; }
@keyframes fill { from { transform: scaleX(0); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; background: rgba(255,255,255,.02); transition: border-color .2s, background .2s, transform .2s; }
.tag:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.tag--learning { border-style: dashed; color: var(--mist); }
.sphere-wrap { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.sphere { position: relative; width: min(420px, 82vw, calc(52vh / var(--z, 1))); aspect-ratio: 1; }
.sphere button { position: absolute; left: 0; top: 0; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(8,8,10,.82); backdrop-filter: blur(4px); font-size: .78rem; white-space: nowrap; cursor: pointer; will-change: transform, opacity; transition: border-color .2s, box-shadow .2s, background .2s, opacity .3s; opacity: 0; }
.sphere button:hover, .sphere button.is-on { border-color: var(--ink); box-shadow: 0 0 16px rgba(255,255,255,.5); background: rgba(30,30,34,.95); }
.skill-detail { width: 100%; max-width: 400px; padding: 14px 18px; display: grid; gap: 4px; min-height: 84px; }
.skill-detail h4 { font-size: 1rem; font-weight: 500; display: flex; justify-content: space-between; gap: 10px; }
.skill-detail h4 small { font-family: var(--f-mono); font-size: .7rem; color: var(--mist); font-weight: 400; }
.skill-detail p { color: var(--mist); font-size: .88rem; }

/* ---------- projects ---------- */
.proj-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(16px, calc(2.5vh / var(--z, 1)), 24px); }
.proj-top .head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .5s var(--ease), border-color .3s, box-shadow .4s; }
.card.rv { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s), filter 1.2s var(--ease) var(--d, 0s), border-color .3s, box-shadow .4s; }
.card.rv.in { opacity: 1; transform: none; filter: none; }
#projects .proj-top { transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
#projects:not(.revealed) .proj-top { opacity: 0; transform: translateY(18px); }
#projects .exp-head { transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); margin-bottom: clamp(14px, calc(2vh / var(--z, 1)), 20px); }
#projects:not(.revealed) .exp-head { opacity: 0; transform: translateY(18px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card:hover, .card:focus-visible { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 30px rgba(255,255,255,.08); }
.card:active { transform: scale(.985); }
.card__media { position: relative; aspect-ratio: 16/7; max-height: calc(15vh / var(--z, 1)); width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__media .shot { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.card:hover .card__media .shot { transform: scale(1.06); }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.card__body { padding: 14px 18px 16px; display: grid; gap: 6px; align-content: start; }
.card__body h3 { font-size: 1.08rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__body h3 svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.card:hover .card__body h3 svg { transform: translate(3px, -3px); }
.card__body p { color: var(--mist); font-size: .86rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
/* real photos in cards and the project slider */
.shot--img { display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 40%, #1b1b20, #070708); }
.shot--img { overflow: hidden; }
.shot--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot--img.is-contain img { object-fit: contain; padding: 10px; box-sizing: border-box; }
.shot--img.is-contain img.shot__bg { object-fit: cover; padding: 0; filter: blur(22px) brightness(.55) saturate(.8); transform: scale(1.15); }
/* the featured project: two columns wide, photo beside the text, with a few headline numbers */
.card--feature { grid-column: span 2; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: none; }
.card--feature .card__media { aspect-ratio: auto; max-height: none; min-height: 230px; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.card--feature .card__body { padding: 20px 22px; gap: 10px; align-content: center; }
.card--feature .card__body h3 { font-size: var(--step-2); font-weight: 600; }
.card--feature .card__body p { -webkit-line-clamp: 4; font-size: .9rem; }
.kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.kpis span { display: grid; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); font-size: .7rem; color: var(--mist); line-height: 1.3; }
.kpis b { font-size: .98rem; font-weight: 600; color: var(--ink); }
/* Experience: real work above the projects grid */
.exp { margin-bottom: clamp(30px, calc(5vh / var(--z, 1)), 52px); }
.exp .card--feature { width: 100%; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.exp .card__media { min-height: 300px; }
.exp .card__body { padding: 26px 30px; gap: 10px; }
.exp .card__body p { -webkit-line-clamp: 3; font-size: .95rem; max-width: 60ch; }
.card__role { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.card__when { font-size: .8rem; color: var(--mist); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .82rem; font-weight: 500; }
.card__more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.card:hover .card__more svg { transform: translate(3px, -3px); }
/* the story timeline in the modal */
.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .74rem; color: var(--mist); }
.journey li { display: inline-flex; align-items: center; }
.journey li:not(:last-child)::after { content: ""; width: 22px; height: 1px; margin: 0 8px; background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.1)); }
.journey li::before { content: ""; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px rgba(255,255,255,.6); }
.journey li:last-child { color: var(--ink); }
.stack span { font-family: var(--f-mono); font-size: .68rem; color: var(--mist); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); }
.shot { background: #0c0c0f; }
.shot::before, .shot::after { content: ""; position: absolute; }
.shot--a { background: radial-gradient(60% 80% at 70% 30%, #3a3a42, transparent 60%), linear-gradient(135deg, #111114, #050506); }
.shot--a::before { inset: 18% 12% auto 12%; height: 10%; border-radius: 6px; background: rgba(255,255,255,.12); }
.shot--a::after { inset: auto 12% 16% 12%; height: 40%; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 22%, transparent 22% 26%); }
.shot--b { background: conic-gradient(from 200deg at 50% 60%, #050506, #2c2c33, #050506 40%, #18181c 70%, #050506); }
.shot--b::before { width: 30%; aspect-ratio: 1; left: 35%; top: 14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 40px rgba(255,255,255,.15) inset; }
.shot--c { background: linear-gradient(180deg, #16161a, #060607); }
.shot--c::before { inset: 14% 10%; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.1) 0 28%, transparent 28%), repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 12%, transparent 12% 20%); border: 1px solid rgba(255,255,255,.12); }
.shot--d { background: radial-gradient(circle at 20% 80%, #2e2e35, transparent 45%), radial-gradient(circle at 80% 20%, #24242a, transparent 40%), #070708; }
.shot--d::before { left: 10%; right: 10%; bottom: 14%; height: 60%; background: linear-gradient(0deg, rgba(255,255,255,.25), transparent); clip-path: polygon(0 100%, 0 70%, 15% 55%, 30% 65%, 45% 30%, 60% 45%, 75% 15%, 90% 35%, 100% 20%, 100% 100%); }
.shot--e { background: repeating-radial-gradient(circle at 50% 50%, #0b0b0d 0 10px, #141418 10px 11px); }
.shot--e::before { inset: 26% 34%; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); }
.shot--f { background: linear-gradient(120deg, #050506 0 40%, #1d1d22 40% 60%, #0a0a0c 60%); }
.shot--f::before { left: 12%; top: 22%; width: 44%; height: 14%; border-radius: 6px; background: rgba(255,255,255,.18); box-shadow: 0 30px 0 -8px rgba(255,255,255,.08); }
.shot__label { position: absolute; right: 10px; bottom: 8px; font-family: var(--f-mono); font-size: .6rem; color: rgba(255,255,255,.35); z-index: 1; }
.empty { color: var(--mist); padding: 30px 0; }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); animation: fade .3s; }
.modal__box { position: relative; width: min(860px, 100%); max-height: calc((100svh - 32px) / var(--z, 1)); overflow: auto; background: #08080a; border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 40px rgba(255,255,255,.06); animation: pop .45s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.slider { position: relative; aspect-ratio: 16/8; overflow: hidden; border-bottom: 1px solid var(--line); }
.slider__track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.slider__track .shot { position: relative; flex: 0 0 100%; height: 100%; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; background: rgba(0,0,0,.6); }
.slider__nav:hover { transform: translateY(-50%); }
.slider__nav:active { transform: translateY(-50%) scale(.92); }
.slider__nav--prev { left: 12px; } .slider__nav--next { right: 12px; }
.sdots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.sdots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.sdots button:hover { background: rgba(255,255,255,.6); }
.sdots button[aria-current="true"] { width: 22px; background: var(--ink); }
.modal__body { padding: 24px clamp(20px, 4vw, 32px) 28px; display: grid; gap: 14px; }
.modal__body h3 { font-size: var(--step-2); font-weight: 400; }
.modal__body p, .modal__body ul { color: var(--mist); }
.modal__body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.modal__body [hidden] { display: none; }
.m-desc { display: grid; gap: 10px; }
.m-desc p { margin: 0; }

/* ---------- education: climbing scene ---------- */
.climb { position: relative; height: clamp(210px, calc(33vh / var(--z, 1)), 380px); }
#climb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ms-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.milestone { padding: 12px 14px; display: grid; gap: 2px; align-content: start; opacity: .55; transform-origin: 50% 100%; transition: opacity .5s var(--ease), transform .6s var(--ease), border-color .4s, box-shadow .5s, background .4s; }
.milestone:hover, .milestone:focus-within { opacity: .9; border-color: var(--line-strong); }
.milestone.is-on { opacity: 1; transform: translateY(-6px) scale(1.07); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 44px rgba(255,255,255,.22), 0 18px 40px rgba(0,0,0,.5); z-index: 2; }
.milestone.is-on .ms__code { text-shadow: 0 0 14px rgba(255,255,255,.8); }
.ms__year { font-family: var(--f-display); font-size: .88rem; font-weight: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; white-space: nowrap; }
.ms__year .chip { font-size: .58rem; padding: .2em .55em; gap: .35em; font-family: var(--f-body); font-weight: 500; }
.chip--done { color: #86efac; border-color: rgba(74,222,128,.45); background: rgba(22,101,52,.22); }
/* Glass reflection on the "Open to internships" chip and the Languages box: a soft highlight on the top half,
   plus a light glint that sweeps across now and then */
.chip--open, .langs { position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.5), 0 0 18px rgba(255,255,255,.07); }
.langs { box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 0 14px rgba(255,255,255,.28), 0 0 34px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.25); } /* same glow as the buttons */
.chip--open::before, .langs::before { content: ""; position: absolute; inset: 0 0 50% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02)); border-radius: inherit; }
.chip--open::after, .langs::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.3) 50%, transparent 80%); transform: translateX(-160%) skewX(-12deg); animation: glint 7s ease-in-out infinite; }
.langs::after { animation-delay: 3.5s; }
@keyframes glint { 0%, 55% { transform: translateX(-160%) skewX(-12deg); } 85%, 100% { transform: translateX(340%) skewX(-12deg); } }
.chip--open .dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; } /* green dot, white text */
.chip--done .dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: none; }
.ms__code { font-weight: 600; letter-spacing: 0; padding-right: 7px; border-right: 1px solid var(--line-strong); }
.milestone b { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.milestone span.ms__where { color: var(--mist); font-size: .78rem; }
.ms__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ms__links a { font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background .2s, box-shadow .2s, border-color .2s; }
.ms__links a:hover { background: rgba(255,255,255,.1); border-color: var(--ink); box-shadow: 0 0 12px rgba(255,255,255,.3); }
.ms__links a:active { transform: scale(.95); }
.climb-hint { position: absolute; left: 0; bottom: 0; font-family: var(--f-mono); font-size: .66rem; color: var(--dim); }
.certs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: clamp(18px, calc(3.5vh / var(--z, 1)), 34px) 0 12px; }
.certs-head h3 { font-size: var(--step-1); font-weight: 400; }
.certs-head h3 strong { font-weight: 600; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cert { position: relative; overflow: hidden; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.cert::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.09) 50%, transparent 65%); transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
.cert:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 22px rgba(255,255,255,.07); }
.cert:hover::after { transform: translateX(100%); }
/* the same reflection, played now and then on its own (js/education.js) */
.milestone { position: relative; overflow: hidden; }
.milestone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.1) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.cert.is-glint::after, .milestone.is-glint::after { opacity: var(--glint, 1); animation: glintpass 1.6s var(--ease) both; }
@keyframes glintpass { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.cert:active { transform: translateY(-1px) scale(.99); }
.seal { grid-row: span 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,.02)); box-shadow: 0 0 16px rgba(255,255,255,.12); }
.seal svg { width: 22px; height: 22px; }
.seal--img { border: 0; background: none; box-shadow: 0 0 16px rgba(86,140,255,.25); overflow: hidden; }
.seal--img img { width: 100%; height: 100%; object-fit: contain; }
.cert b { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.cert span { color: var(--mist); font-size: .78rem; }
.cert em { font-style: normal; font-family: var(--f-mono); font-size: .66rem; color: var(--dim); letter-spacing: .08em; }
.cert--add { border-style: dashed; background: rgba(6,6,8,.4); cursor: default; }
.cert--add .seal { border-style: dashed; box-shadow: none; background: none; }
.cert--add em { color: var(--dim); }
.modules h4, .tabpanel h4 { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--mist); font-weight: 400; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.contact__side { display: grid; gap: 16px; }
.contact__side h2 { font-size: var(--step-3); font-weight: 300; }
.contact__side h2 strong { font-weight: 500; }
.contact__side > p { color: var(--mist); }
.links { display: grid; gap: 8px; }
.link-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8,8,10,.6); transition: border-color .25s, background .25s, transform .3s var(--ease); min-width: 0; }
.link-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); transform: translateX(4px); }
.link-row:active { transform: translateX(2px) scale(.99); }
.link-row > svg { width: 18px; height: 18px; flex: none; }
.link-row span { display: grid; min-width: 0; }
.link-row small { color: var(--dim); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.link-row b { font-weight: 500; overflow-wrap: anywhere; font-size: .92rem; }
.copy { margin-left: auto; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; font-size: .74rem; cursor: pointer; transition: background .2s, box-shadow .2s; flex: none; }
.copy:hover { background: rgba(255,255,255,.1); box-shadow: 0 0 10px rgba(255,255,255,.3); }
.copy:active { transform: scale(.95); }
.form { padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; color: var(--mist); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.55); color: var(--ink); font: inherit; font-size: .94rem; transition: border-color .2s, box-shadow .25s, background .2s; }
.field textarea { min-height: 110px; max-height: calc(26vh / var(--z, 1)); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.42); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 18px rgba(255,255,255,.18); background: rgba(0,0,0,.75); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.err { font-size: .76rem; color: var(--err); min-height: 1em; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form__status { font-size: .86rem; color: var(--mist); max-width: 40ch; }
.form__status.ok { color: var(--ok); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 160; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: 12px; background: var(--ink); color: var(--void); font-size: .88rem; font-weight: 600; box-shadow: 0 0 30px rgba(255,255,255,.35); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-height: 760px) and (min-width: 861px) {
  .home h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); }
  .card__body p { -webkit-line-clamp: 1; }
  .logos { display: none; }
}
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .burger { display: block; }
  /* phones: EPS on the left and the menu button on the right, without a bar behind them */
  .nav__bar { justify-content: space-between; padding: 6px 0; background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__social, .nav__cta { display: none; }
  .nav__links { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(8,8,10,.95); backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { height: auto; padding: 13px 16px; font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .view { align-content: start; }
  .home, .skills, .contact { grid-template-columns: minmax(0, 1fr); }
  .climb { height: 240px; }
  .ms-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ms__year { flex-wrap: wrap; white-space: normal; gap: 2px 8px; font-size: .95rem; }
  .ms__code { border-right: 0; padding-right: 0; width: 100%; }
  .photo { height: min(300px, calc(42vh / var(--z, 1))); order: -1; --r: 22px; }
  .card__media { max-height: none; }
}
@media (min-width: 861px) {
  .nav__links .m-only { display: none; }
  /* EPS on the left, links centred, buttons on the right */
  /* EPS and the buttons get equal room on each side, so the links sit in the exact middle */
  .brand { flex: 1 1 0; min-width: 0; max-width: 460px; }
  .nav__right { flex: 1 1 0; min-width: 0; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .card--feature { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .card--feature .card__media { aspect-ratio: 16 / 9; min-height: 0; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .exp .card--feature { grid-template-columns: minmax(0, 1fr); }
  .exp .card__media { aspect-ratio: 4 / 3; min-height: 0; }
  .exp .card__body { padding: 18px 18px 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat--uni b.stat__place, .stat--city b.stat__place { min-height: 0; }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


.filters[hidden] { display: none; }
.stat--uni b.stat__place { font-size: calc(var(--step-0) * .9); line-height: 1.2; } /* full university name wraps to 2-3 short lines */
