/* ============ TOKENS (dark) ============ */
:root{
  --bg:#08090C;
  --bg-soft:#0E1015;
  --panel:rgba(255,255,255,.035);
  --panel-border:rgba(255,255,255,.1);
  --ink:#F4F5F9;
  --ink-soft:#9498A5;
  --line:rgba(255,255,255,.1);

  /* One accent, used sparingly. Three hues plus an animated gradient
     was the main source of the "busy" feel. */
  --accent:#7C9BFF;
  --blue:var(--accent);
  --violet:var(--accent);
  --cyan:var(--accent);
  --grad:var(--accent);

  /* Two families only. Space Grotesk carries all "voice" type (headings
     + small uppercase UI labels); Inter carries running prose. Having a
     third (monospace) family scattered across nav, buttons, meta and
     footer was the main source of visual noise. */
  /* One family throughout. */
  /* One neutral modern sans throughout. Space Grotesk's quirky letterforms
     (a, g, ř) read as fussy at body sizes; Inter stays clean and quiet. */
  --display:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* One shared scale for every small uppercase label, so nav, buttons,
     eyebrows, card meta and footer all agree instead of each having
     their own size/tracking. */
  --label-size:.72rem;
  --label-tracking:.12em;
  --label-weight:600;

  --ease:cubic-bezier(.4,0,.2,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur:.8s;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:auto;} /* smooth scroll is handled by our own JS animation */
/* Note: this site intentionally does not gate any animation behind
   prefers-reduced-motion. An earlier attempt at that repeatedly produced
   elements stuck invisible (animation:none also cancelling an unrelated
   reveal animation sharing the same element/property) or components that
   looked "broken" rather than "reduced". The client has explicitly and
   repeatedly asked for full motion regardless of OS-level settings. */

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  position:relative;
}

a{color:inherit;text-decoration:none;}
ul{list-style:none;}

.label{
  font-family:var(--display);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  letter-spacing:var(--label-tracking);
  text-transform:uppercase;
}

.eyebrow{
  font-family:var(--display);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  letter-spacing:var(--label-tracking);
  text-transform:uppercase;
  color:var(--cyan);
  margin-bottom:1.2rem;
  display:flex;align-items:center;gap:.6rem;
}

.accent-text{color:var(--accent);}

/* ============ AMBIENT BACKGROUND ============ */
/* ============ CUSTOM CURSOR — camera autofocus frame ============ */
/* Four corner brackets that track the pointer, then "lock focus"
   (snap inward + go cyan) over anything interactive. Deliberately not
   the ubiquitous dot+trailing-ring: this reads as a viewfinder AF point,
   which is on-theme for a photo/video portfolio. */
.cursor-af{
  position:fixed;top:0;left:0;z-index:1000;pointer-events:none;
  width:30px;height:30px;
  transform:translate3d(-50%,-50%,0);
  opacity:0;
  transition:opacity .25s var(--ease), width .22s var(--ease-out), height .22s var(--ease-out);
}
.cursor-af.is-active{opacity:1;}
.cursor-af span{
  position:absolute;width:7px;height:7px;
  border:1.5px solid rgba(244,245,249,.75);
  transition:border-color .22s var(--ease), inset .22s var(--ease-out);
}
/* corners */
.cursor-af span:nth-child(1){top:0;left:0;border-right:none;border-bottom:none;}
.cursor-af span:nth-child(2){top:0;right:0;border-left:none;border-bottom:none;}
.cursor-af span:nth-child(3){bottom:0;left:0;border-right:none;border-top:none;}
.cursor-af span:nth-child(4){bottom:0;right:0;border-left:none;border-top:none;}

/* focus locked */
.cursor-af.is-hover{width:21px;height:21px;}
.cursor-af.is-hover span{
  border-color:var(--cyan);
  filter:drop-shadow(0 0 4px rgba(103,232,249,.7));
}
/* click = shutter dip */
.cursor-af.is-down{width:16px;height:16px;}

@media (hover:none), (pointer:coarse){
  .cursor-af{display:none;}
}
body.has-custom-cursor{cursor:none;}
body.has-custom-cursor a,body.has-custom-cursor button{cursor:none;}

/* A single, quiet gradient field instead of animated glow orbs — one
   soft pool of light up top, one cooler one low down, nothing moving. */
.backdrop{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(120vw 80vh at 12% -10%, rgba(124,155,255,.16), transparent 60%),
    radial-gradient(90vw 70vh at 95% 55%, rgba(124,155,255,.08), transparent 60%),
    linear-gradient(180deg, #0B0D14 0%, var(--bg) 55%);
}

/* ============ RACK FOCUS REVEAL (signature motion) ============ */
.focus-in{
  opacity:0;
  filter:blur(14px);
  transform:translateY(16px);
  animation:focusIn .9s var(--ease) forwards;
  animation-delay:var(--d,0s);
}
@keyframes focusIn{
  to{opacity:1;filter:blur(0);transform:translateY(0);}
}

/* .reveal lives at the end of this file — see note there. */

/* "You're already here" feedback — scoped to the compact .contact content
   box (not the full section, not the nav), only when the CTA is clicked
   while already viewing that section (see script.js). */
.nav-link-flash{animation:navLinkFlash 1.5s var(--ease-out);border-radius:20px;}
@keyframes navLinkFlash{
  0%{box-shadow:inset 0 0 0 1px rgba(108,141,255,0), 0 0 0 rgba(108,141,255,0); background-color:rgba(108,141,255,0);}
  14%{box-shadow:inset 0 0 0 1.5px rgba(108,141,255,.55), 0 0 50px rgba(108,141,255,.18); background-color:rgba(108,141,255,.05);}
  100%{box-shadow:inset 0 0 0 1px rgba(108,141,255,0), 0 0 0 rgba(108,141,255,0); background-color:rgba(108,141,255,0);}
}

/* ============ NAV ============ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem clamp(1.5rem,5vw,4rem);
  background:rgba(8,9,12,0);
  transition:background-color .6s var(--ease), padding .5s var(--ease), border-color .6s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(8,9,12,.6);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  padding:1.1rem clamp(1.5rem,5vw,4rem);
  border-color:var(--line);
}
.nav__logo{
  font-family:var(--display);font-weight:600;font-size:1.3rem;letter-spacing:-.02em;
}
.nav__logo span{color:var(--cyan);}
.nav__links{display:flex;gap:2.2rem;}
.nav__links a{
  font-family:var(--display);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;
  position:relative;padding-bottom:.3rem;color:var(--ink-soft);
  transition:color .3s var(--ease);
}
.nav__links a::after{
  content:'';position:absolute;left:0;bottom:0;width:0;height:1px;
  background:var(--grad);transition:width .35s var(--ease);
}
.nav__links a:hover,.nav__links a.active{color:var(--ink);}
.nav__links a:hover::after,.nav__links a.active::after{width:100%;}

.nav__cta{
  font-family:var(--display);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;
  padding:.6rem 1.2rem;border-radius:100px;
  border:1px solid var(--panel-border);
  background:rgba(255,255,255,.05);
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav__cta:hover{border-color:var(--blue);box-shadow:0 0 24px rgba(108,141,255,.35);}

.nav__toggle{display:none;background:none;border:none;cursor:pointer;width:26px;height:18px;position:relative;z-index:101;}
.nav__toggle span{position:absolute;left:0;width:100%;height:1px;background:var(--ink);transition:transform .3s var(--ease);}
.nav__toggle span:first-child{top:1px;}
.nav__toggle span:last-child{bottom:1px;}
.nav__toggle[aria-expanded="true"] span:first-child{transform:translateY(8px) rotate(45deg);}
.nav__toggle[aria-expanded="true"] span:last-child{transform:translateY(-8px) rotate(-45deg);}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--display);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;
  padding:.9rem 1.7rem;border-radius:100px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.btn span{transition:transform .35s var(--ease);}
.btn:hover span{transform:translateX(3px);}

.btn--glow{
  color:#08090C;background:var(--grad);background-size:200% 200%;
  box-shadow:0 0 0 rgba(108,141,255,0);
}
.btn--glow:hover{
  box-shadow:0 0 36px rgba(108,141,255,.45), 0 0 70px rgba(179,136,255,.25);
  transform:translateY(-2px);
  background-position:100% 0;
}

.about-grid__text .btn{margin-top:2rem;}
.btn--ghost{
  color:var(--ink);border:1px solid var(--panel-border);
  background:rgba(255,255,255,.05);
}
.btn--ghost:hover{border-color:var(--cyan);box-shadow:0 0 24px rgba(103,232,249,.2);}

/* ============ HERO ============ */
.hero{
  position:relative;z-index:2;
  min-height:100vh;
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:8rem clamp(1.5rem,5vw,4rem) 4rem;
}
.hero__inner{max-width:900px;}

.badge{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--display);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;
  color:var(--ink-soft);
  padding:.5rem 1rem;border-radius:100px;
  border:1px solid var(--panel-border);background:rgba(255,255,255,.05);
  margin-bottom:2.2rem;
}
.badge__dot{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:blink 2s ease-in-out infinite;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.3;}}

.hero__title{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2.6rem,7.2vw,5.6rem);
  line-height:1.03;letter-spacing:-.02em;
  margin-bottom:1.8rem;
}
.hero__title span{display:block;}

.hero__sub{
  font-size:clamp(1rem,1.6vw,1.2rem);
  color:var(--ink-soft);max-width:480px;margin-bottom:2.6rem;
}
.hero__actions{display:flex;gap:1rem;flex-wrap:wrap;}

.hero__scroll{
  position:absolute;bottom:2.4rem;left:clamp(1.5rem,5vw,4rem);
  display:flex;flex-direction:column;align-items:center;gap:.6rem;color:var(--ink-soft);
}
.hero__scroll span{font-family:var(--display);font-size:.64rem;font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;}
.hero__scroll-line{width:1px;height:34px;background:rgba(255,255,255,.15);position:relative;overflow:hidden;}
.hero__scroll-line::after{
  content:'';position:absolute;top:-100%;left:0;width:100%;height:100%;
  background:linear-gradient(var(--blue),var(--cyan));
  animation:scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{0%{top:-100%;}50%{top:0;}100%{top:100%;}}

/* ============ SECTIONS ============ */
.section{
  position:relative;z-index:2;
  padding:8rem clamp(1.5rem,5vw,4rem);
  max-width:1440px;margin:0 auto;
  border-radius:24px;
  transition:background-color .4s ease, box-shadow .4s ease;
}
.section__head{max-width:640px;margin-bottom:4rem;}
.section__title{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2rem,4.4vw,3.2rem);
  line-height:1.1;letter-spacing:-.02em;
  margin-bottom:1.3rem;
}
.section__sub{color:var(--ink-soft);font-size:1.05rem;max-width:520px;}

/* ============ DISCIPLINES (typographic index) ============ */
.disciplines{border-top:1px solid var(--line);counter-reset:d;}
.discipline{
  display:grid;
  grid-template-columns:auto 1fr minmax(0,26rem);
  align-items:baseline;
  gap:clamp(1rem,4vw,3rem);
  padding:clamp(1.6rem,3vw,2.4rem) .25rem;
  border-bottom:1px solid var(--line);
  transition:border-color .5s var(--ease);
}
.discipline:hover{border-color:rgba(124,155,255,.4);}
.discipline__num{
  font-size:var(--label-size);letter-spacing:var(--label-tracking);
  color:var(--ink-soft);transition:color .4s var(--ease);
}
.discipline:hover .discipline__num{color:var(--accent);}
.discipline h3{
  font-weight:600;letter-spacing:-.02em;
  font-size:clamp(1.35rem,2.6vw,2rem);
  transition:transform .5s var(--ease);
}
.discipline:hover h3{transform:translateX(6px);}
.discipline p{color:var(--ink-soft);font-size:.95rem;}
@media (max-width:760px){
  .discipline{grid-template-columns:auto 1fr;gap:.6rem 1.2rem;}
  .discipline p{grid-column:2;}
}

/* ============ ABOUT ============ */
.about-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,6vw,5rem);align-items:center;
}
.tool-list{
  display:flex;flex-wrap:wrap;gap:.7rem 1.4rem;margin:2rem 0 2.4rem;
  padding-top:1.6rem;border-top:1px solid var(--line);color:var(--ink-soft);
}
.tool-list li{position:relative;padding-left:1rem;}
.tool-list li::before{
  content:'';position:absolute;left:0;top:.45em;width:5px;height:5px;border-radius:50%;
  background:var(--grad);
}

.about-grid__visual{display:flex;justify-content:center;align-items:center;min-height:380px;}
.portrait{
  position:relative;
  width:100%;max-width:380px;
  margin:0;
  /* pills deliberately overhang the photo, so the clip lives on the inner
     frame rather than here */
  overflow:visible;
}
.portrait__frame{
  display:block;position:relative;
  border-radius:18px;overflow:hidden;
  border:1px solid var(--panel-border);
}
.portrait img{width:100%;height:auto;display:block;}
/* Accent wash so the photo sits in the page palette instead of floating
   as a bright rectangle against the dark background. */
.portrait__tint{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(160deg, rgba(124,155,255,.32) 0%, rgba(124,155,255,.06) 45%, transparent 70%),
    linear-gradient(0deg, rgba(11,13,20,.85) 0%, rgba(11,13,20,.15) 45%, transparent 75%);
  mix-blend-mode:normal;
}

.pill{
  position:absolute;z-index:2;
  padding:.5rem .95rem;border-radius:100px;
  font-size:.74rem;font-weight:500;letter-spacing:.02em;
  color:var(--ink);white-space:nowrap;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 6px 20px rgba(0,0,0,.28);
  animation:pillFloat 7s ease-in-out infinite;
}
.pill--1{top:10%;left:-6%;animation-delay:-0s;}
.pill--2{top:30%;right:-5%;animation-delay:-1.6s;}
.pill--3{bottom:26%;left:-8%;animation-delay:-3.2s;}
.pill--4{bottom:9%;right:-4%;animation-delay:-4.8s;}
@keyframes pillFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-7px);}
}
@media (max-width:900px){
  .pill--1,.pill--3{left:2%;}
  .pill--2,.pill--4{right:2%;}
}

/* ============ FAQ ============ */
.faq-list{max-width:800px;border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line);}
.faq-item__q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  background:none;border:none;text-align:left;cursor:pointer;
  padding:1.7rem 0;font-family:var(--body);font-size:1.05rem;font-weight:600;color:var(--ink);
  transition:color .3s var(--ease);
}
.faq-item__q:hover{color:var(--cyan);}
.faq-item__icon{position:relative;flex:none;width:16px;height:16px;}
.faq-item__icon::before,.faq-item__icon::after{
  content:'';position:absolute;top:50%;left:50%;background:currentColor;
  transform:translate(-50%,-50%);transition:transform .35s var(--ease), opacity .35s var(--ease);
}
.faq-item__icon::before{width:16px;height:1px;}
.faq-item__icon::after{width:1px;height:16px;}
.faq-item__q[aria-expanded="true"] .faq-item__icon::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0;}
.faq-item__a{max-height:0;overflow:hidden;transition:max-height .5s var(--ease);}
.faq-item__a p{
  padding-bottom:1.7rem;max-width:640px;color:var(--ink-soft);
  opacity:0;transform:translateY(-10px);
  transition:opacity .45s var(--ease), transform .45s var(--ease);
}
.faq-item__a.is-open p{opacity:1;transform:translateY(0);transition-delay:.1s;}
.faq-item__a a{color:var(--cyan);}

/* ============ CONTACT ============ */
.section--contact{text-align:center;}
.contact{max-width:760px;margin:0 auto;display:flex;flex-direction:column;align-items:center;padding:3rem clamp(1rem,4vw,3rem);}
.contact .eyebrow{justify-content:center;}
.contact__email{
  font-family:var(--display);font-weight:600;letter-spacing:-.02em;
  font-size:clamp(1.6rem,4vw,2.6rem);
  margin:2.2rem 0 1.8rem;
  border-bottom:1px solid var(--line);
  transition:filter .35s var(--ease);
}
.contact__email:hover{filter:drop-shadow(0 0 18px rgba(108,141,255,.5));}
.contact__details{display:flex;gap:2.4rem;color:var(--ink-soft);font-size:.9rem;}
.contact__details a{display:inline-flex;align-items:center;gap:.5rem;transition:color .3s var(--ease);}
.contact__details a:hover{color:var(--cyan);}
.contact__details svg{width:16px;height:16px;flex:none;}

/* ============ FOOTER ============ */
.footer{
  position:relative;z-index:2;
  padding:4rem clamp(1.5rem,5vw,4rem) 2.4rem;
  border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:flex-end;
}
.footer__top{max-width:460px;}
.footer__logo{font-family:var(--display);font-weight:600;font-size:1.3rem;display:block;margin-bottom:.6rem;}
.footer__logo span{color:var(--cyan);}
.footer__top p{color:var(--ink-soft);font-size:.9rem;}
.footer__bottom{
  width:100%;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between;
  padding-top:2rem;margin-top:1rem;border-top:1px solid var(--line);color:var(--ink-soft);
}
.footer__bottom-left{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;}
.footer__bottom a{transition:color .3s var(--ease);}
.footer__bottom a:hover{color:var(--ink);}
.footer__credit a{color:var(--ink-soft);border-bottom:1px solid var(--line);}
.footer__credit a:hover{color:var(--cyan);border-color:var(--cyan);}

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  .work-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;}
  .about-grid__visual{order:-1;min-height:260px;}
}

@media (max-width:720px){
  .nav__links{
    position:fixed;top:0;right:0;height:100vh;width:min(80vw,320px);
    background:rgba(8,9,12,.97);backdrop-filter:blur(20px);
    flex-direction:column;justify-content:center;gap:2.2rem;
    padding:2rem;transform:translateX(100%);transition:transform .4s var(--ease);
    border-left:1px solid var(--line);z-index:100;
  }
  .nav__links.open{transform:translateX(0);}
  .nav__toggle{display:block;}
  .nav__cta{display:none;}
  .hero{padding-top:7rem;}
  .section{padding:5rem 1.5rem;}
  .footer{flex-direction:column;align-items:flex-start;}
  .footer__bottom{flex-direction:column;gap:.6rem;}
}


/* ============ UKÁZKY — parallax columns, sticky title ============ */
.gallery-section{padding-top:6rem;}

.gallery-head{margin-bottom:1.1rem;}
.gallery-title{
  position:relative;
  font-size:clamp(2.2rem,4.4vw,3.2rem);
  font-weight:600;letter-spacing:-.02em;
  display:inline-block;
  padding-bottom:.06em;
}
/* Hand-drawn style underline: a single slightly-uneven stroke that draws
   itself in when the gallery scrolls into view. */
.scribble{
  position:absolute;left:-2%;bottom:.02em;
  width:104%;height:.34em;
  color:var(--accent);
  overflow:visible;
}
.scribble path{
  stroke-dasharray:240;
  stroke-dashoffset:240;
  transition:stroke-dashoffset 1.1s var(--ease-out) .15s;
}
.is-drawn .scribble path{stroke-dashoffset:0;}
.scribble-wrap{position:relative;display:inline-block;padding-bottom:.26em;}
.scribble-wrap .scribble{bottom:-.06em;}

.gallery{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap:clamp(.8rem,1.6vw,1.4rem);
  align-items:start;
}
.gallery__col{
  display:flex;flex-direction:column;
  gap:clamp(.8rem,1.6vw,1.4rem);
  will-change:transform;
}

.tile{display:block;}
.tile__frame{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--panel-border);
  background:rgba(255,255,255,.03);
  transition:border-color .5s var(--ease);
}
.tile:hover .tile__frame{border-color:rgba(124,155,255,.45);}
.tile__frame img,.tile__frame video{
  width:100%;height:auto;display:block;
}

.tile__sound{
  position:absolute;right:10px;bottom:10px;
  width:30px;height:30px;border-radius:50%;
  border:1px solid var(--panel-border);
  background:rgba(8,9,12,.6);
  cursor:pointer;
  opacity:0;transition:opacity .3s var(--ease),border-color .3s var(--ease);
}
.tile:hover .tile__sound,.tile__sound.is-on{opacity:1;}
.tile__sound:hover{border-color:var(--accent);}
.tile__sound::before{
  content:'';position:absolute;inset:0;margin:auto;
  width:12px;height:12px;background:var(--ink);
  clip-path:polygon(0 35%,28% 35%,55% 8%,55% 92%,28% 65%,0 65%);
}
.tile__sound.is-on::before{background:var(--accent);}
.tile__sound::after{
  content:'';position:absolute;inset:0;margin:auto;
  width:17px;height:1.5px;background:var(--ink);
  transform:rotate(-45deg);transition:opacity .2s var(--ease);
}
.tile__sound.is-on::after{opacity:0;}


@media (max-width:560px){
  .gallery{gap:.6rem;}
  .tile__sound{opacity:1;width:26px;height:26px;}
}

/* ============ SMOOTH SCROLL ============ */
/* The page content is offset by JS with easing, while the real scrollbar
   still drives the position — so native scrolling, keyboard and anchors
   all keep working; only the visual catch-up is damped. */
.smooth-wrap{
  position:fixed;top:0;left:0;width:100%;
  will-change:transform;
}
.smooth-spacer{width:1px;pointer-events:none;}
/* Fallback when JS smoothing is off (touch devices, no-JS) */
.no-smooth .smooth-wrap{position:static;transform:none !important;}
.no-smooth .smooth-spacer{display:none;}

.nowrap{white-space:nowrap;}

/* ============ MOBILE REFINEMENTS ============ */
@media (max-width:720px){
  /* logo centred, menu button stays on the right */
  .nav{justify-content:center;position:fixed;}
  .nav__logo{position:static;}
  .nav__toggle{position:absolute;right:clamp(1.5rem,5vw,4rem);top:50%;transform:translateY(-50%);}
  .nav__toggle[aria-expanded="true"]{transform:translateY(-50%);}

  /* About: read the intro first, photo second and smaller */
  .about-grid{display:flex;flex-direction:column;gap:2.5rem;}
  .about-grid__text{order:1;}
  .about-grid__visual{order:2;}
  .portrait{max-width:260px;margin:0 auto;}
  .pill{font-size:.68rem;padding:.4rem .75rem;}
  .pill--1{left:-10%;}
  .pill--2{right:-8%;}
  .pill--3{left:-12%;}
  .pill--4{right:-6%;}

  /* contact row: phone + instagram don't fit side by side on a phone */
  .contact__details{flex-direction:column;gap:.9rem;align-items:center;}

  /* footer: one item per line, name and rights split */
  .footer__bottom{align-items:flex-start;gap:.45rem;}
  .footer__bottom-left{flex-direction:column;gap:.45rem;}
  .footer__copy{display:flex;flex-direction:column;gap:.45rem;}
}

/* ============ REVEAL (kept last on purpose) ============ */
/* These must come after every component rule: `transition` is a single
   shorthand property, so a later rule like `.discipline{transition:border-color…}`
   would otherwise wipe out the reveal transition entirely and the element
   would snap into place instead of easing in. */
.reveal{
  opacity:0;filter:blur(14px);transform:translateY(24px);
  transition:opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible{opacity:1;filter:blur(0);transform:translateY(0);}

/* Same motion without the blur — for big media areas, where blurring a
   3000px-tall box every frame is needlessly expensive. */
.reveal-light{
  opacity:0;transform:translateY(24px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-light.is-visible{opacity:1;transform:translateY(0);}

@media (max-width:720px){
  /* Shorter on a narrow screen — but anchored from the centre, otherwise
     the leftover width all lands on one side and the line reads as
     off-centre under a centred heading. */
  .scribble{left:50%;transform:translateX(-50%);width:88%;height:.28em;}
  .scribble path{stroke-width:4.2;}
}
