/* NOWON · one page: NOW OR NEVER folds into NOWON, who I am, where the name comes from, how I work,
   what I made (a run of hits), where I worked, how to reach me.
   One column for everything (.wrap), one split for every two-column row (.split, 5fr / 7fr),
   one spacing scale (--s-sec, --s-head, --s-grp, --s-in), five type sizes, three colours: black, white and NOWON red.
   League Spartan sits .7em above and .22em below the baseline, capitals are .66em tall: a line of height L has its
   capitals (L/2 - .42)em under its top. The cap-top alignments below are built on that. */

:root{
  --bg:#050505;
  --ink:#F5F5F2;
  --soft:rgba(245,245,242,.84);   /* running text beside a heading */
  --dim:rgba(245,245,242,.64);    /* dates, counters, labels: never a sentence */
  --line:rgba(245,245,242,.14);
  --red:#FF0000;            /* NOWON red: the only colour beside black and white */
  --on-red:#050505;
  --gut:clamp(20px,6.94vw,100px);
  --gap:clamp(16px,2.2vw,32px);
  --nav:64px;   /* the hero's top band (the language switch); the hero is laid out as it was under the old bar */
  --f:'League Spartan',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  /* six sizes, far apart: label, text, lead, title, number, heading */
  --fs-s:16px;
  --fs-b:19px;
  --fs-l:clamp(20px,1.7vw,24px);
  --fs-t:clamp(26px,2.5vw,36px);
  --fs-n:clamp(44px,4.4vw,64px);
  --fs-h:clamp(48px,7.6vw,108px);   /* 108: the longest heading (Yaptıklarım) stays inside the 5fr column */
  --s-sec:clamp(96px,12.8vw,184px);   /* section to section */
  --s-head:clamp(40px,5vw,72px);      /* a section's heading to its content */
  --s-grp:clamp(64px,6.7vw,96px);     /* group to group inside a section */
  --s-in:24px;                        /* a group's title to its content */
  --e-out:cubic-bezier(.23,1,.32,1);
  --e-io:cubic-bezier(.77,0,.175,1);
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark;-webkit-text-size-adjust:100%}   /* links jump, they never glide */
body{margin:0;background:var(--bg);color:var(--ink);font:400 var(--fs-b)/1.45 var(--f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:6px}
::selection{background:var(--red);color:var(--on-red)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.wrap{width:100%;max-width:1440px;margin-inline:auto;padding-inline:var(--gut)}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap)}

/* ── buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:4px 28px 0;border-radius:999px;
  border:1.5px solid currentColor;font-weight:700;font-size:var(--fs-b);line-height:1;white-space:nowrap;
  transition:transform .16s var(--e-out),background-color .2s ease,color .2s ease,border-color .2s ease}
.btn:active{transform:scale(.97)}
.btn--fill{background:var(--red);border-color:var(--red);color:var(--on-red);transition:transform .16s var(--e-out),background-color .7s ease,border-color .7s ease,color .7s ease}
@media (hover:hover) and (pointer:fine){
  .btn:not(.btn--fill):hover{background:var(--ink);border-color:var(--ink);color:var(--bg)}
  .btn--fill:hover{transform:translateY(-2px)}
  .btn--fill:active{transform:scale(.97)}
}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
/* a text link where a button would be too much (the CV): the buttons' height and type, underlined */
.txt{display:inline-flex;align-items:center;min-height:52px;padding:4px 16px 0;font-weight:600;font-size:var(--fs-b);line-height:1;white-space:nowrap;
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:.28em;transition:color .2s ease}
@media (hover:hover) and (pointer:fine){.txt:hover{color:var(--red)}  #contact .txt:hover{color:#050505}}

/* ── language: there is no nav bar. The switch sits where the bar's right end was, top right of the hero (it scrolls
   away with it), and once more at the end of the footer ── */
.lang{position:relative;display:grid;place-items:center end;height:44px;padding:3px 0 0 10px;font-size:var(--fs-b);font-weight:600;color:var(--ink);transition:color .2s ease}   /* its last letter ends on the page edge */
.lang::after{content:"";position:absolute;inset:0 -12px 0 -2px}   /* the tap target stays 44px */
@media (hover:hover) and (pointer:fine){.lang:hover{color:var(--red)}}
/* in the hero the switch sits with the buttons: the translate icon and the language it switches to, both in the
   text colour. A press turns the icon once and rolls the new code in (site.js) */
.lang--ico{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 10px}
.lang--ico::after{content:none}
.lang--ico svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.5;flex:none;transition:transform .16s ease-out}
.lang--ico:active svg{transform:scale(.9)}
@media (hover:hover) and (pointer:fine){.lang--ico:hover{color:var(--ink)}}   /* white, hover included */
.lang__code{display:inline-block;padding-top:4px;line-height:1}

/* ── hero: NOW OR NEVER folds into the mark; beside it the line and who I am ── */
#hero{position:relative;min-height:100svh;display:flex;flex-direction:column;padding:calc(var(--nav) + 24px) 0 40px;overflow:hidden}
#bg-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.9;pointer-events:none}
#hero::after{content:"";position:absolute;inset:auto 0 0;height:22%;background:linear-gradient(to bottom,transparent,var(--bg));pointer-events:none}
.hero__in{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;gap:32px}
/* The hero has its own split, half and half. At that width the mark is as tall as the text beside it: the headline's
   cap line sits on the top of the letters and the buttons end where the smile ends. Where the text is shorter than
   the mark the spare room is shared between the two gaps. Below 1181px the text no longer fits beside the mark, so
   the hero stacks: mark, then text. */
.hero__top{margin-block:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;row-gap:24px}
.hero__say{display:flex;flex-direction:column;justify-content:space-between}
#hero-word{align-self:center;width:100%;aspect-ratio:1261/665.6}
#hero-word svg{width:100%;height:100%;overflow:visible}
#hero-word path{transform-box:fill-box;transform-origin:center}
#hero-word .w{fill:var(--ink)}
#hero-word .o{fill:var(--red)}
/* the promise is the headline; under it, who says it */
#hero-line{display:block;max-width:15em;margin-top:-.07em;font-size:clamp(30px,4vw,58px);font-weight:700;line-height:.98;letter-spacing:-.038em;text-wrap:balance}   /* -.07em: the cap line, not the line box, is the top edge */
#hero-bio{margin-top:clamp(12px,1.25vw,18px);max-width:30em;font-size:var(--fs-l);line-height:1.36;color:var(--soft);text-wrap:pretty}
.hero__say .actions{padding-top:clamp(16px,1.6vw,23px)}   /* the smallest gap; space-between adds the rest */
.hero__meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 22px;font-size:var(--fs-s);color:var(--dim)}   /* status under the mark, clock under the language button */
.hero__meta span{display:inline-flex;align-items:center;gap:10px;padding-top:3px}
.dot{width:9px;height:9px;margin-top:-3px;border-radius:50%;background:var(--red);transition:background-color .7s ease}
#clock{font-variant-numeric:tabular-nums}

/* the way down: a link over the arrowhead the hero glass cracks into (fx.js draws the crack, site.js places it). Its
   foot is the crack's tip, on the status line in the middle of the page. With reduced motion it holds a still drawing. */
#cue{position:absolute;left:50%;bottom:22px;z-index:2;width:64px;height:132px;margin-left:-32px;display:grid;place-items:end center;
  transition:opacity .3s ease,visibility 0s linear 0s}
#cue svg{width:56px;height:116px;overflow:visible;opacity:.85}
#cue path{fill:none;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#cue .cue__sh{stroke:#000;stroke-opacity:.32;stroke-width:1.8}
#cue .cue__ed{stroke:#F5F5F2}
#cue.away{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}

/* the opening: NOW OR NEVER lands word by word, R and EVER fall away, what is left closes up into NOWON */
#noe{position:absolute;left:var(--gut);right:var(--gut);top:0;font-weight:900;line-height:.84;letter-spacing:-.02em;white-space:nowrap;color:var(--ink);pointer-events:none}
.noe__w{display:block;width:max-content}
.noe__probe{position:absolute;left:0;top:0;visibility:hidden}
.noe__c{display:inline-block;transform-origin:0 0;will-change:transform,opacity}
.noe__b{display:inline-block;width:0;height:0}
html.intro-done #noe{display:none}
html.js:not(.intro-done) .late{opacity:0;pointer-events:none}
html.js:not(.intro-done) #hero-word path{opacity:0}
@keyframes rise{from{opacity:0;transform:translateY(var(--dy,18px))}to{opacity:1;transform:none}}
html.js.intro-done .late{animation:rise .6s var(--e-out) backwards}
html.js.intro-done .hero__meta{animation-delay:90ms}

/* ── impacts: the cracks that pass, the red flash, the hero glass that keeps its cracks ── */
#fx{position:fixed;inset:0;width:100%;height:100%;z-index:60;pointer-events:none}
#flash{position:fixed;inset:0;z-index:59;background:var(--red);opacity:0;pointer-events:none}
#crack{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#hero{cursor:crosshair}
#hero a,#hero button{cursor:pointer}
/* the tear: the element slips sideways in slices with a red ghost, then sits back */
@keyframes tear{
  0%{transform:none;clip-path:inset(0);filter:none}
  14%{transform:translateX(-.06em) skewX(-6deg);clip-path:inset(12% 0 58% 0);filter:drop-shadow(.08em 0 0 #FF0000)}
  28%{transform:translateX(.05em);clip-path:inset(54% 0 8% 0);filter:drop-shadow(-.07em 0 0 #FF0000)}
  42%{transform:translateX(-.03em) skewX(4deg);clip-path:inset(30% 0 36% 0);filter:drop-shadow(.05em 0 0 #FF0000)}
  56%{transform:translateX(.02em);clip-path:inset(0 0 72% 0);filter:none}
  70%{transform:translateX(-.015em);clip-path:inset(0);filter:drop-shadow(.03em 0 0 #FF0000)}
  100%{transform:none;clip-path:inset(0);filter:none}}
.glitch{animation:tear .28s steps(1,end)}
/* the rip: harder, longer, red and white ghosts pulled apart */
@keyframes rip{
  0%{transform:none;clip-path:inset(0);filter:none}
  8%{transform:translate(-.09em,0) skewX(-14deg) scaleY(1.06);clip-path:inset(8% 0 62% 0);filter:drop-shadow(.12em 0 0 #FF0000) drop-shadow(-.08em 0 0 #F5F5F2)}
  16%{transform:translate(.12em,.02em);clip-path:inset(48% 0 14% 0);filter:drop-shadow(-.14em 0 0 #FF0000)}
  24%{transform:translate(-.04em,0) scaleX(1.12);clip-path:inset(0);filter:drop-shadow(.06em 0 0 #FF0000) drop-shadow(-.05em 0 0 #F5F5F2)}
  32%{transform:translate(.07em,-.03em) skewX(10deg);clip-path:inset(70% 0 2% 0);filter:drop-shadow(.1em 0 0 #FF0000)}
  40%{transform:none;clip-path:inset(20% 0 40% 0);filter:none}
  52%{transform:translate(-.15em,0);clip-path:inset(0 0 80% 0);filter:drop-shadow(.05em 0 0 #FF0000)}
  64%{transform:translate(.03em,0) scaleY(.92);clip-path:inset(0);filter:drop-shadow(-.05em 0 0 #F5F5F2) drop-shadow(.05em 0 0 #FF0000)}
  78%{transform:translate(-.02em,0);clip-path:inset(35% 0 30% 0);filter:none}
  100%{transform:none;clip-path:inset(0);filter:none}}
.glitch--hard{animation:rip .46s steps(1,end)}
#hero-word.glitch,#hero-word.glitch--hard{font-size:clamp(60px,9vw,130px)}

/* ── sections ── */
.sec{padding-block:var(--s-sec) 0}
.sec__head{align-items:end;align-items:last baseline;margin-bottom:var(--s-head)}
.sec__head h2,.duo__h{font-size:var(--fs-h);font-weight:700;line-height:.92;letter-spacing:-.04em}
.lead{font-size:var(--fs-l);line-height:1.35;color:var(--dim);max-width:30em;text-wrap:pretty}
.grp + .grp{margin-top:var(--s-grp)}
/* a heading and its lead stand together on the page's left edge, the lead right under it at the same gap as About's
   paragraphs and Contact's (2026-11-19: a lead set off in the second column floated, he found it untidy) */
.sec__head.split{display:block}
.sec__head.split .lead{margin-top:clamp(24px,2.8vw,40px);color:var(--soft)}
.grp__h{font-size:var(--fs-l);font-weight:600;line-height:1.1;margin-bottom:var(--s-in)}

/* ── about: the hero line taken apart. Two columns on the page's own split: Madness (red) and Control (white).
   Each is a word at heading size, a paragraph, and the numbers behind it; the three rows are shared (subgrid),
   so both paragraphs start on one line and both sets of numbers do too. ── */
.duo{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap)}
.duo__c{display:grid;grid-row:span 3;grid-template-rows:subgrid}
.duo__c--mad .duo__h,.duo__c--mad .duo__n b{color:var(--red);transition:color .7s ease}
.duo__p{margin-top:clamp(24px,2.8vw,40px);max-width:min(25em,calc(100% - 2 * var(--gap)));font-size:var(--fs-l);line-height:1.4}
.duo__facts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:var(--gap);margin-top:var(--s-head);padding-top:28px;border-top:1px solid var(--line)}
.duo__n{display:flex;align-items:baseline;gap:10px}
.duo__n b{font-size:var(--fs-n);font-weight:700;line-height:.86;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.duo__n span{font-size:var(--fs-l);font-weight:600;line-height:1}
.duo__d{margin-top:14px;max-width:24em;font-size:var(--fs-b);line-height:1.42;color:var(--soft);text-wrap:pretty}

/* ── how: four steps on one line that fills as the page moves; each dot cracks the section's own glass ── */
#how,#about,#contact{position:relative}
.how__glass{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}   /* a section's own glass: its cracks scroll with it */
#how .wrap{position:relative}
.how{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap);padding-top:44px}
.step{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-content:start}   /* number, name, text and tools share rows across the steps */
.how::before,.how::after{content:"";position:absolute;left:0;right:0;top:5px;height:2px}
.how::before{background:var(--line)}
.how::after{background:var(--red);transform-origin:0 0;transform:scaleX(var(--p,0));transition:background-color .7s ease}   /* --p: how far the page has read, set by site.js */
.step{position:relative;opacity:.36;transition:opacity .4s ease}
.step.on{opacity:1}
.step::before{content:"";position:absolute;left:0;top:-44px;width:12px;height:12px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 2px rgba(245,245,242,.5);
  transition:background-color .3s ease,box-shadow .3s ease,transform .4s var(--e-out)}
.step.on::before{background:var(--red);box-shadow:0 0 0 4px var(--bg);transform:scale(1.25)}
.step__n{font-size:var(--fs-s);font-weight:600;color:var(--dim);font-variant-numeric:tabular-nums}
.step__name{margin-top:12px;font-size:var(--fs-t);font-weight:700;line-height:1;letter-spacing:-.03em}
.step__d,.step__kit{padding-right:var(--gap)}
.step__d{margin-top:16px;font-size:var(--fs-b);line-height:1.4;text-wrap:pretty}
.step__kit{margin-top:16px;font-size:var(--fs-s);line-height:1.3;color:var(--dim)}

/* ── the run: a tall stretch whose stage sticks to the screen. The first screen is the heading and its lead, on black;
   it breaks into the first project, and every project fills the whole screen for one hit, in its own colours; the red bar at the bottom shows how far is left. ── */
#work{padding-top:0}
.rush__lead{margin-top:clamp(28px,4.5svh,48px);max-width:30em;font-size:var(--fs-l);line-height:1.35;color:var(--soft);text-align:center;text-wrap:balance}
.nb{white-space:nowrap}   /* cinecode-studio, run-local: a name doesn't break at its hyphen */
.rush{position:relative;height:calc(var(--n,17) * 56svh + 100svh)}
.rush__stage{position:sticky;top:0;height:100svh;overflow:hidden;background:var(--bg)}
#rush{position:absolute;inset:0}
.rush__p{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:clamp(56px,9svh,96px) max(var(--gut),calc((100vw - 1440px) / 2 + var(--gut)));
  background:var(--tb);color:var(--tf);visibility:hidden}
.rush__p.on{visibility:visible}
/* one composition, centred: the name on top (every name the same size), then the icon with the text on its right */
.rush__n{position:absolute;top:clamp(24px,4svh,40px);left:0;right:0;text-align:center;font-size:var(--fs-s);font-weight:600;font-variant-numeric:tabular-nums;opacity:.72}
.rush__name{font-size:100px;font-weight:900;line-height:.8;letter-spacing:-.045em;white-space:nowrap;text-align:center;padding-top:.06em}
.rush__body{display:flex;align-items:center;gap:clamp(32px,3.6vw,56px);margin-top:clamp(32px,5svh,56px)}
.rush__ico{flex:none;width:clamp(128px,22svh,208px);height:auto;aspect-ratio:1;border-radius:22.5%;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--tf) 14%,transparent)}
.rush__info{width:min(27em,46vw);display:flex;flex-direction:column;align-items:flex-start}
.rush__kind{font-size:var(--fs-l);font-weight:700;line-height:1.15}
.rush__d{margin-top:10px;font-size:var(--fs-b);line-height:1.38;text-wrap:pretty}
.rush__meta{margin-top:12px;font-size:var(--fs-s);line-height:1.3;opacity:.72}
.rush__go{margin-top:20px}
@media (hover:hover) and (pointer:fine){.rush__go:hover{background:var(--tf);border-color:var(--tf);color:var(--tb)}}
.rush__bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--red);transform-origin:0 0;transform:scaleX(0);z-index:3;transition:transform .5s cubic-bezier(.23,1,.32,1)}

/* ── experience: one row per place. Left: when and how long, the place and the role. Right: what I did there. ── */
.job{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap);padding-block:32px;border-top:1px solid var(--line)}
.job:last-child{border-bottom:1px solid var(--line)}
.job__l{display:grid;grid-template-columns:clamp(112px,10vw,156px) minmax(0,1fr);column-gap:var(--gap);align-content:start}   /* stacked, the date and the name stay together at the top of a tall row */
.job__when{padding-top:6px;font-size:var(--fs-s);font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.job__when span{display:block;margin-top:4px;font-weight:400;color:var(--dim)}
.job__name{font-size:var(--fs-t);font-weight:700;line-height:1;letter-spacing:-.03em}
.job__role{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px;font-size:var(--fs-b);line-height:1.3;color:var(--dim)}
.job__now{display:inline-flex;align-items:center;gap:6px;height:26px;padding:3px 11px 0;border-radius:999px;background:rgba(255,0,0,.14);color:#FF5A5A;font-size:var(--fs-s);font-weight:600}
.job__now::before{content:"";width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--red)}
.job__d{padding-top:3px;max-width:36em;font-size:var(--fs-b);line-height:1.45;color:var(--soft);text-wrap:pretty}
.job__made{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.chip{display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 15px 0 7px;border-radius:14px;background:rgba(245,245,242,.07);font-size:var(--fs-s);font-weight:500;
  transition:background-color .2s ease}
.chip img{width:30px;height:30px;border-radius:22.5%}
.chip span{padding-top:3px}
@media (hover:hover) and (pointer:fine){.chip:hover{background:rgba(245,245,242,.14)}}
.kit__row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap);align-items:start;padding-block:16px;border-top:1px solid var(--line)}
.kit__row:last-child{border-bottom:1px solid var(--line)}
.kit dt{font-size:var(--fs-l);font-weight:600;line-height:36px;padding-top:3px}   /* on the first row of chips, not in the middle of two */
.kit dd{display:flex;flex-wrap:wrap;gap:8px}
.kit dd span{display:inline-flex;align-items:center;height:36px;padding:3px 14px 0;border-radius:999px;background:rgba(245,245,242,.07);font-size:var(--fs-s);color:var(--soft)}
.cv__dl{margin-top:48px;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap)}
.cv__dl .txt{grid-column:2;justify-self:start;padding-left:0}   /* under the column it belongs to */

/* ── contact: the page ends in NOWON's own red ── */
/* brand red, a step deeper so white text reads at 4.8:1 */
#contact{--red:#E60000;--on-red:#FFFFFF;margin-top:var(--s-sec);background:var(--red);color:var(--on-red)}
#contact ::selection{background:#050505;color:#fff}
#contact :focus-visible{outline-color:#050505}
/* the old site's heading, broken where it broke there, and the mark beside it as tall as it: the top of its flat
   letters on the heading's cap line, the bottom of the smile on its last baseline. Three lines of .9 run from the cap
   line (.03em) to the last baseline (2.49em): 2.46em from flat top to smile. Both are sized from
   the row's width so the longest line ("var olmayı hak eden", 8.06em) and the mark always fit side by side */
.contact__in{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--gap);align-items:start;padding-block:clamp(80px,10vw,144px);container-type:inline-size}
.contact__in>*{--ch:min(var(--fs-h),calc((100cqi - var(--gap)) / 12.85))}
.contact__mark{width:calc(var(--ch) * 4.7);aspect-ratio:1261/665.6;margin-top:calc(var(--ch) * .0095)}   /* the O's rise .83% above the flat tops: the box is 2.48em tall, 4.7em wide, and starts .0095em down */
.contact__mark svg{width:100%;height:100%}
.contact__mark .w{fill:#fff}
.contact__mark .o{fill:#050505}
#contact h2{font-size:var(--ch);font-weight:700;line-height:.9;letter-spacing:-.045em}
#contact h2 span{color:#050505}   /* the old site's line, its last part in black (red on red would vanish) */
#contact .actions{margin-top:clamp(32px,4vw,48px)}
#contact .btn--dark{background:#050505;border-color:#050505;color:#fff}
@media (hover:hover) and (pointer:fine){
  #contact .btn:not(.btn--dark):hover{background:#fff;border-color:#fff;color:#050505}
  #contact .btn--dark:hover{transform:translateY(-2px)}
}
/* every account, by whose it is: NOWON, the GIOT studios, AIE's games, WBH (his personal ones left out on purpose, 2026-11-19) */
.socials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap);row-gap:40px;padding-top:32px;padding-bottom:clamp(56px,6vw,88px);border-top:1px solid rgba(255,255,255,.34)}
.soc__h{font-size:var(--fs-s);font-weight:700;line-height:1.2;color:#050505;padding-bottom:6px}
.soc a{display:inline-flex;flex-direction:column;justify-content:center;min-height:44px;padding-block:6px;line-height:1.25}
.soc b{font-size:var(--fs-s);font-weight:600}
.soc span{font-size:15px;overflow-wrap:anywhere}
@media (max-width:960px){.socials{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (hover:hover) and (pointer:fine){.soc a:hover span{text-decoration:underline;text-underline-offset:3px}}
footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px;padding-block:20px max(24px,env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.34);font-size:var(--fs-s)}
footer p{padding-top:3px}
.foot__links{display:flex;flex-wrap:wrap;margin-inline:-12px}
.foot__links a,.foot__links .lang{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:3px 12px 0;font-weight:500}
.foot__links .lang{font-size:inherit;color:inherit}
.foot__links .lang::after{content:none}
@media (hover:hover) and (pointer:fine){.foot__links a:hover,.foot__links .lang:hover{color:inherit;text-decoration:underline;text-underline-offset:4px}}

/* ── arriving: content rises once, when it first comes on screen ── */
.rv{opacity:0;transform:translateY(26px);transition:opacity .55s var(--e-out),transform .55s var(--e-out);transition-delay:calc(var(--i,0) * 50ms)}
.rv.in{opacity:1;transform:none}
html:not(.js) .rv{opacity:1;transform:none}

/* ── laptop and tablet ── */
@media (max-width:1180px){
  /* hero stacks; the mark takes the width the height of the screen leaves it */
  .hero__top{grid-template-columns:minmax(0,1fr)}
  #hero-word{align-self:auto;width:min(100%,calc((100svh - 470px) * 1.894))}
  #hero-line{margin-top:0}
  #hero-bio{margin-top:16px}
  .hero__say .actions{padding-top:28px}
  /* the space between the two rows of steps is a margin, not a row-gap: a gap on the parent grid is shared out
     into the steps' own short rows (number, name) and pushes the name away from its text */
  .how{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:28px}
  .how::before,.how::after{display:none}
  .step::before{top:-28px}
  .step:nth-child(n+3){margin-top:100px}   /* 72 to the dot, 28 from the dot to the number */
  .job__l{grid-template-columns:minmax(0,1fr);row-gap:10px}
  .job__when{padding-top:0}
  .job__when span{display:inline;margin-left:10px}
}

/* ── phone ── */
@media (max-width:760px){
  :root{--fs-b:18px;--gut:24px}
  .split{grid-template-columns:minmax(0,1fr)}

  #hero{padding:calc(var(--nav) + 12px) 0 24px}
  #cue{bottom:12px;height:104px}
  #cue svg{width:44px;height:91px}
  .hero__in{gap:20px}
  .hero__top{row-gap:24px}
  #hero-word{width:100%}
  #hero-line{font-size:clamp(26px,8vw,32px);line-height:1.04;letter-spacing:-.035em}
  #hero-bio{font-size:var(--fs-b);line-height:1.38;margin-top:12px}
  .hero__say .actions{display:grid;grid-template-columns:1fr 1fr;padding-top:24px}
  .actions .txt{justify-content:center}
  .hero__say .actions{grid-template-columns:1fr auto auto;column-gap:8px}
  .hero__say .actions .txt{padding-inline:6px}
  .hero__say .lang--ico{padding-inline:2px}
  .btn{padding-inline:16px}

  .duo{grid-template-columns:minmax(0,1fr)}
  .duo__c + .duo__c{margin-top:var(--s-grp)}
  .duo__p{max-width:none}
  .step__d,.step__kit{padding-right:0}
  .duo__facts{grid-auto-flow:row;row-gap:28px;margin-top:32px;padding-top:24px}

  .how{grid-template-columns:minmax(0,1fr);padding:0 0 0 32px}
  .step:nth-child(n+3){margin-top:0}
  .step + .step{margin-top:40px}
  .how::before,.how::after{display:block;left:5px;right:auto;top:6px;bottom:6px;width:2px;height:auto}
  .how::after{transform:scaleY(var(--p,0))}
  .step::before{left:-32px;top:5px}

  .sec__head{row-gap:18px}
  .lead{padding:0}

  .rush{height:calc(var(--n,17) * 46svh + 100svh)}
  .rush__p{padding:56px var(--gut) 40px}
  .rush__n{top:24px}
  .rush__body{flex-direction:column;gap:20px;margin-top:24px}
  .rush__ico{width:clamp(88px,13svh,120px)}
  .rush__info{width:auto;align-items:center;text-align:center}
  .rush__d{max-width:30em}

  .job{grid-template-columns:minmax(0,1fr);row-gap:14px;padding-block:26px}
  .kit__row{grid-template-columns:minmax(0,1fr);row-gap:12px}
  .cv__dl{display:block}
  .cv__dl .btn{width:100%}

  .contact__in{grid-template-columns:minmax(0,1fr)}
  .socials{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact__mark{display:none}
  .contact__in>*{--ch:min(var(--fs-h),calc(100cqi / 8.2))}   /* no mark beside it: only the longest line has to fit */
  #contact .actions{display:grid;grid-template-columns:1fr}
  footer{flex-direction:column;align-items:flex-start}
  .foot__links a:first-child{justify-content:flex-start}
}

/* the narrowest phones: the button takes its own row, CV and the language switch sit under it */
@media (max-width:359px){
  .hero__say .actions{grid-template-columns:auto auto;justify-content:start}
  .hero__say .actions .btn{grid-column:1/-1}
}
@media (max-width:760px) and (max-height:700px){#cue{height:74px}#cue svg{width:31px;height:64px}}   /* a short phone: keep clear of the buttons */

@media (prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none;transition:none}
  .btn{transition:none}
  html.js.intro-done .late{animation:none}
  .step{opacity:1}
}
