/* AdScaled team portfolios. Same visual language as www.adscaled.media:
   #050505, cyan #00f2fe / #4facfe, Nexa + Space Grotesk, mono labels, grid, orbits, noise, cursor aura. */

:root {
  --bg: #050505;
  --text: #f4f4f5;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.1);
  --primary: #00f2fe;
  --primary-soft: rgba(0, 242, 254, 0.2);
  --secondary: #4facfe;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --heavy: 'Nexa', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: max(2rem, calc((100% - 1180px) / 2));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.08), transparent 34%), var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--primary); color: var(--bg); }
:where(a, button):focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1rem;
  background: var(--primary); color: var(--bg); font: 700 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.cursor-aura {
  position: fixed; left: 50%; top: 50%; z-index: 0; width: 38rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12), rgba(79, 172, 254, 0.03) 42%, transparent 70%);
  transform: translate(calc(-50% + var(--mouse-x, 0) * 18vw), calc(-50% + var(--mouse-y, 0) * 18vh));
  transition: transform 0.35s var(--ease);
}

/* ---------------------------------------------------------------- navigation */

.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 4.5rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 clamp(1rem, 2.4vw, 2.2rem);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-nav.is-scrolled, .menu-open .site-nav {
  background: rgba(5, 5, 5, 0.78);
  border-color: var(--primary-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; justify-self: start; min-width: 0; }
.brand-mark {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.4rem; height: 2.4rem;
  border: 1px solid rgba(0, 242, 254, 0.6); color: var(--primary);
  font: 700 0.78rem var(--mono); letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.14), transparent 60%);
}
.brand-text { display: grid; min-width: 0; line-height: 1.15; }
.brand-text strong { font: 600 0.92rem var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font: 0.6rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.6rem 0.8rem;
  color: rgba(255, 255, 255, 0.72); font: 600 0.68rem var(--body); text-transform: uppercase; letter-spacing: 0.12em;
  transition: color 0.25s, background 0.25s;
}
.nav-links a span { color: var(--primary); font: 0.6rem var(--mono); opacity: 0.7; }
.nav-links a::after {
  content: ''; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.35rem; height: 1px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.is-active { background: rgba(0, 242, 254, 0.07); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.lang-switch { position: relative; }
.lang-switch > button {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 2.4rem; padding: 0 0.9rem;
  border: 1px solid rgba(0, 242, 254, 0.45); color: #fff; font: 700 0.68rem var(--mono); letter-spacing: 0.12em;
  transition: background 0.25s, border-color 0.25s;
}
.lang-switch > button:hover, .lang-switch.is-open > button { background: rgba(0, 242, 254, 0.08); border-color: var(--primary); }
.lang-switch svg { width: 0.7rem; fill: none; stroke: var(--primary); stroke-width: 1.6; transition: transform 0.25s; }
.lang-switch.is-open svg { transform: rotate(180deg); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 11rem; padding: 0.4rem;
  background: rgba(8, 12, 13, 0.96); border: 1px solid var(--primary-soft);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang-switch.is-open ul { opacity: 1; visibility: visible; transform: none; }
.lang-switch li a { display: flex; gap: 0.8rem; padding: 0.6rem 0.7rem; color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; transition: background 0.2s, color 0.2s; }
.lang-switch li a span { width: 1.6rem; color: var(--primary); font: 700 0.66rem var(--mono); letter-spacing: 0.1em; line-height: 1.9; }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: rgba(0, 242, 254, 0.08); color: #fff; }

.nav-toggle { display: none; align-items: center; gap: 0.6rem; height: 2.4rem; padding: 0 0.8rem; border: 1px solid var(--faint); font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars span { display: block; height: 1px; background: var(--primary); transition: transform 0.3s var(--ease); }
.menu-open .nav-toggle-bars span:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-open .nav-toggle-bars span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 1rem; min-height: 3.4rem;
  padding: 0.45rem 0.45rem 0.45rem 1.5rem; border-radius: 999px;
  font: 700 0.72rem var(--body); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn i {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-style: normal; font-size: 1rem; transition: transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover i { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #021013; box-shadow: 0 0 0 rgba(0, 242, 254, 0); }
.btn-primary i { background: #021013; color: var(--primary); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(0, 242, 254, 0.32); }
.btn-outline { border: 1px solid rgba(0, 242, 254, 0.55); color: #fff; }
.btn-outline i { background: rgba(0, 242, 254, 0.12); color: var(--primary); border: 1px solid rgba(0, 242, 254, 0.4); }
.btn-outline:hover { background: rgba(0, 242, 254, 0.07); border-color: var(--primary); }
.btn-large { min-height: 4rem; padding-left: 1.6rem; font-size: 0.76rem; }
.btn .icon { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn-large.btn-primary { padding-right: 1.6rem; letter-spacing: 0.06em; text-transform: none; font-size: 0.92rem; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7rem 1.5rem 7rem; text-align: center;
}
.design-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.17;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit { position: absolute; left: 50%; top: 48%; border: 1px solid rgba(0, 242, 254, 0.24); border-radius: 50%; aspect-ratio: 2.2 / 1; transform: translate(-50%, -50%) rotate(-11deg); }
.orbit-one { width: min(80vw, 1080px); animation: orbit-breathe 9s ease-in-out infinite alternate; }
.orbit-two { width: min(70vw, 940px); border-style: dashed; border-color: rgba(255, 255, 255, 0.12); transform: translate(-50%, -50%) rotate(8deg); animation: orbit-breathe 12s ease-in-out infinite alternate-reverse; }
.cross-mark { position: absolute; color: rgba(255, 255, 255, 0.42); font: 200 2.2rem var(--body); animation: cross-spin 12s linear infinite; }
.cross-mark-one { left: 27%; top: 24%; }
.cross-mark-two { right: 24%; bottom: 25%; animation-direction: reverse; }

.hero-content { position: relative; z-index: 5; width: min(980px, 100%); display: flex; flex-direction: column; align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.4rem; color: var(--primary); font: 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }
.hero-kicker span + span::before { content: '/'; margin-right: 0.6rem; color: rgba(255, 255, 255, 0.3); }

.hero-name { display: flex; flex-direction: column; align-items: center; width: 100%; font-weight: inherit; }
.trace-svg { width: min(50vw, 540px); height: auto; overflow: visible; animation: hero-float 7s ease-in-out infinite 2.8s; }
.trace-svg text { font-family: var(--heavy); font-size: 140px; font-weight: 900; letter-spacing: -0.06em; }
.trace-svg .svg-filled-text { fill: url(#shine-grad); }
.trace-svg .svg-traced-text { fill: transparent; stroke: url(#shine-grad); stroke-width: 2px; stroke-dasharray: 1500; stroke-dashoffset: 0; opacity: 0; }
.js .trace-svg .svg-filled-text { opacity: 0; animation: fade-in-text 0.8s ease-in forwards 1.6s; }
.js .trace-svg .svg-traced-text { opacity: 1; stroke-dashoffset: 1500; animation: trace-text 1.8s ease-in-out forwards 0.15s, fade-out-trace 0.8s ease-in forwards 1.9s; }

.hero-last {
  display: block; margin-top: -0.3rem; max-width: 100%;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 242, 254, 0.8);
  font: 600 clamp(2.1rem, 6.4vw, 5.6rem) / 0.95 var(--display); letter-spacing: -0.06em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero-role { margin-top: 1.6rem; color: var(--primary); font: 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.hero-statement { position: relative; margin-top: 1.2rem; font: 600 clamp(1.15rem, 2.5vw, 2.3rem) / 1.05 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.statement-signal {
  position: relative; display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, #fff 0%, #fff 42%, var(--primary) 50%, #fff 58%, #fff 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
}
.statement-signal::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.35em; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 18%, rgba(255, 255, 255, 0.65) 50%, var(--primary) 82%, transparent);
}
.js .statement-signal { opacity: 0; animation: signal-lock 0.85s var(--ease) forwards 1.05s, signal-shine 1.15s ease-in-out forwards 1.75s; }
.js .statement-signal::after { transform: scaleX(0); opacity: 0; animation: signal-underline 1.1s var(--ease) forwards 1.42s; }
.hero-intro { max-width: 640px; margin-top: 2rem; color: var(--muted); font-size: clamp(0.98rem, 1.25vw, 1.08rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.js .hero-last, .js .hero-role, .js .hero-intro, .js .hero-actions, .js .hero-kicker { opacity: 0; animation: rise 0.9s var(--ease) forwards; }
.js .hero-kicker { animation-delay: 0.1s; }
.js .hero-last { animation-delay: 1.25s; }
.js .hero-role { animation-delay: 1.5s; }
.js .hero-intro { animation-delay: 2s; }
.js .hero-actions { animation-delay: 2.2s; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; z-index: 5; display: grid; justify-items: center; gap: 0.6rem; transform: translateX(-50%); color: rgba(255, 255, 255, 0.5); font: 0.6rem var(--mono); text-transform: uppercase; letter-spacing: 0.2em; }
.scroll-cue i { width: 1px; height: 2.6rem; background: linear-gradient(var(--primary), transparent); animation: scroll-line 2.2s ease-in-out infinite; transform-origin: top; }

/* floating widgets (decorative, desktop only) */
.hero-widgets { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float-card {
  position: absolute; width: 232px; padding: 0.9rem; border: 1px solid rgba(0, 242, 254, 0.28); border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 22, 25, 0.82), rgba(5, 8, 9, 0.72));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82); font: 0.62rem var(--mono); text-align: left;
  translate: calc(var(--mouse-x, 0) * var(--depth, 10px)) calc(var(--mouse-y, 0) * var(--depth, 10px));
  transition: translate 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.float-wide { width: 296px; }
.float-tl { left: 2.4vw; top: 15vh; }
.float-tr { right: 2.4vw; top: 13vh; }
.float-bl { left: 2.4vw; bottom: 9vh; }
.float-br { right: 2.4vw; bottom: 10vh; }
.js .float-card { opacity: 0; animation: card-in 1s var(--ease) forwards; }
.js .float-tl { animation-delay: 2.3s; }
.js .float-tr { animation-delay: 2.45s; }
.js .float-bl { animation-delay: 2.6s; }
.js .float-br { animation-delay: 2.75s; }
.float-card small { display: block; margin-top: 0.4rem; color: rgba(255, 255, 255, 0.5); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; }
.float-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
.float-head em { font-style: normal; color: var(--primary); }
.float-head .rec { color: var(--primary); animation: blink 1.4s steps(2, end) infinite; }
.float-head .pill { padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(0, 242, 254, 0.14); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 1.8s ease-in-out infinite; }
.big-number { display: block; color: var(--primary); font: 600 2.2rem/1 var(--display); letter-spacing: -0.04em; }
.big-number small { display: inline; font: 600 1rem var(--display); color: #fff; letter-spacing: 0; }
.heart { width: 1.3rem; fill: none; stroke: var(--primary); stroke-width: 1.8; animation: beat 1.6s ease-in-out infinite; }
.window-dots { display: flex; gap: 6px; margin-bottom: 0.7rem; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.code { color: var(--primary); font: 0.74rem/1.55 var(--mono); white-space: pre; }
.c-tag { color: #7ee7ff; } .c-attr { color: #fff; } .c-str { color: #9ff7c6; } .c-num { color: #ffcf70; } .c-dim { color: rgba(255, 255, 255, 0.45); } .c-ok { color: #3ff5a4; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.swatches span { display: grid; gap: 0.35rem; font-size: 0.5rem; color: rgba(255, 255, 255, 0.6); }
.swatches b { display: block; height: 2.3rem; border-radius: 6px; background: var(--swatch); border: 1px solid rgba(255, 255, 255, 0.14); }
.curve { width: 100%; height: auto; overflow: visible; }
.curve-grid { stroke: rgba(255, 255, 255, 0.16); fill: none; }
.curve-line { fill: none; stroke: var(--primary); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.6)); }
.curve circle { fill: #fff; filter: drop-shadow(0 0 6px var(--primary)); }
.float-card code { display: block; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.55); font-size: 0.6rem; }
.grid-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; height: 3.2rem; }
.grid-bars i { height: 100%; border-radius: 2px; background: linear-gradient(to top, rgba(0, 242, 254, 0.55), rgba(0, 242, 254, 0.08)); transform-origin: bottom; animation: bar-grow 2.6s var(--ease) infinite alternate; animation-delay: calc(var(--i) * 0.12s); }
.viewfinder { position: relative; height: 6.4rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; background: radial-gradient(circle at 60% 50%, rgba(0, 242, 254, 0.12), transparent 55%), rgba(0, 0, 0, 0.3); overflow: hidden; }
.vf-focus { position: absolute; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; border: 1px solid var(--primary); border-radius: 50%; transform: translate(-50%, -50%); animation: focus 3s ease-in-out infinite; }
.vf-frame { position: absolute; left: 50%; top: 50%; width: 5.6rem; height: 3.2rem; border: 1px solid rgba(255, 255, 255, 0.6); border-block: 0; transform: translate(-50%, -50%); }
.vf-time { position: absolute; right: 0.5rem; bottom: 0.35rem; color: rgba(255, 255, 255, 0.7); font-size: 0.55rem; }
.vf-meta { display: flex; justify-content: space-between; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.5); font-size: 0.55rem; }
.vf-meta b { color: var(--primary); }
.plan { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.plan span { display: grid; gap: 0.35rem; text-align: center; }
.plan b { color: rgba(255, 255, 255, 0.5); font-weight: 400; font-size: 0.55rem; text-transform: uppercase; }
.plan em { padding: 0.45rem 0; border: 1px solid rgba(0, 242, 254, 0.3); border-radius: 6px; color: #fff; font-style: normal; font-size: 0.55rem; animation: chip 4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.6s); }
.reel { display: grid; gap: 0.7rem; justify-items: center; }
.reel-play { width: 4.6rem; aspect-ratio: 9 / 16; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; background: linear-gradient(160deg, rgba(0, 242, 254, 0.24), rgba(79, 172, 254, 0.05)); position: relative; }
.reel-play::after { content: ''; position: absolute; left: 50%; top: 50%; border-left: 12px solid #fff; border-block: 8px solid transparent; transform: translate(-35%, -50%); }
.reel-bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.reel-bar i { display: block; height: 100%; background: var(--primary); animation: progress 5s linear infinite; }
.reel-tags { display: flex; gap: 0.4rem; }
.reel-tags b, .lang-chips b { padding: 0.25rem 0.55rem; border: 1px solid rgba(0, 242, 254, 0.35); border-radius: 999px; font-weight: 400; font-size: 0.56rem; }
.duo-bars { display: flex; align-items: end; gap: 0.6rem; height: 4rem; }
.duo-bars i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.16); height: 45%; }
.duo-bars i:last-child { height: 92%; background: linear-gradient(to top, rgba(0, 242, 254, 0.25), var(--primary)); transform-origin: bottom; animation: bar-grow 2.4s var(--ease) infinite alternate; }
.ab { display: grid; gap: 0.5rem; }
.ab span { display: grid; grid-template-columns: 1rem 1fr; align-items: center; gap: 0.5rem; }
.ab b { color: rgba(255, 255, 255, 0.6); }
.ab i { height: 7px; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, 0.25); transform-origin: left; animation: bar-x 3s var(--ease) infinite alternate; }
.ab .ab-win b { color: var(--primary); }
.ab .ab-win i { background: var(--primary); box-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
.donut-row { display: flex; align-items: center; gap: 1rem; }
.donut { width: 4.4rem; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut-track { stroke: rgba(255, 255, 255, 0.1); }
.donut-a { stroke: var(--primary); stroke-dasharray: 58 42; stroke-dashoffset: 0; }
.donut-b { stroke: var(--secondary); stroke-dasharray: 38 62; stroke-dashoffset: -60; }
.donut-row li { display: flex; align-items: center; gap: 0.45rem; margin: 0.3rem 0; }
.donut-row li i { width: 8px; height: 8px; border-radius: 2px; }
.key-a { background: var(--primary); } .key-b { background: var(--secondary); }
.growth { width: 100%; height: auto; }
.growth-area { fill: url(#shine-grad); opacity: 0.12; }
.growth-line { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 3.4s var(--ease) infinite alternate; }
.terminal { color: #e8f8fa; font-size: 0.7rem; }
.devices { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; height: 3rem; }
.dev { border: 1px solid rgba(0, 242, 254, 0.6); border-radius: 4px; background: rgba(0, 242, 254, 0.08); }
.dev-phone { width: 1.1rem; height: 2rem; }
.dev-laptop { width: 3rem; height: 1.9rem; }
.dev-tablet { width: 1.8rem; height: 2.3rem; }
.dev-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lang-chips b { animation: chip 3.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.4s); }

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding: clamp(6rem, 10vw, 9rem) var(--gutter); border-top: 1px solid var(--primary-soft); }
.section:nth-of-type(even) { background: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05), transparent 30%), radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.05), transparent 30%); }
.section-head { display: grid; grid-template-columns: 0.28fr 1fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2, .contact h2 {
  color: #fff; font: 600 clamp(2.8rem, 6.6vw, 6.4rem) / 0.86 var(--display); letter-spacing: -0.075em; text-transform: uppercase; overflow-wrap: anywhere;
}
.section-head h2 span, .contact h2 span { color: transparent; -webkit-text-stroke: 1px rgba(0, 242, 254, 0.75); }
.section-head > p { grid-column: 2; max-width: 520px; color: var(--muted); font-size: clamp(0.95rem, 1.2vw, 1.08rem); line-height: 1.7; }
.section-label { display: flex; align-items: center; gap: 0.8rem; padding-top: 0.8rem; font: 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }
.section-label span:first-child { color: var(--primary); }
.section-label span:last-child { color: rgba(255, 255, 255, 0.62); }
.section-label::after { content: ''; flex: 0 1 3rem; height: 1px; background: var(--primary-soft); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.portrait { position: relative; max-width: 470px; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
  filter: saturate(0.9) contrast(1.04);
}
.portrait::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
  background: linear-gradient(160deg, rgba(0, 242, 254, 0.7), rgba(0, 242, 254, 0.05) 60%, rgba(79, 172, 254, 0.5));
}
.photo-corner { position: absolute; width: 18px; height: 18px; border-color: var(--primary); border-style: solid; border-width: 0; }
.photo-corner-tl { left: -10px; top: -10px; border-left-width: 1px; border-top-width: 1px; }
.photo-corner-tr { right: -10px; top: 34px; border-right-width: 1px; border-top-width: 1px; }
.photo-corner-bl { left: 34px; bottom: -10px; border-left-width: 1px; border-bottom-width: 1px; }
.photo-corner-br { right: -10px; bottom: -10px; border-right-width: 1px; border-bottom-width: 1px; }
.photo-index { position: absolute; right: 1rem; bottom: 1rem; padding: 0.35rem 0.6rem; background: rgba(5, 5, 5, 0.75); color: var(--primary); font: 0.62rem var(--mono); letter-spacing: 0.14em; }
.photo-scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px)); }
.photo-scan::after { content: ''; position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.22), transparent); }
.portrait.is-visible .photo-scan::after { animation: scan 2.4s var(--ease) 0.3s 1 forwards; }
.about-copy p { max-width: 620px; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.about-copy p + p { margin-top: 1.2rem; }
.about-copy .lead { color: #fff; font: 500 clamp(1.2rem, 1.9vw, 1.55rem) / 1.5 var(--display); letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.6rem; }
.facts div { padding: 1rem 0; border-top: 1px solid rgba(0, 242, 254, 0.18); }
.facts dt { margin-bottom: 0.35rem; color: var(--primary); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.facts dd { color: #fff; font-size: 0.95rem; }
.facts dd a { border-bottom: 1px solid rgba(0, 242, 254, 0.5); transition: color 0.2s; }
.facts dd a:hover { color: var(--primary); }
.profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 2rem; }
.profiles > span { margin-right: 0.4rem; color: rgba(255, 255, 255, 0.5); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.profiles a { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; border: 1px solid rgba(0, 242, 254, 0.35); border-radius: 999px; font: 700 0.7rem var(--body); text-transform: uppercase; letter-spacing: 0.1em; transition: background 0.25s, border-color 0.25s; }
.profiles a:hover { background: rgba(0, 242, 254, 0.08); border-color: var(--primary); }
.profiles .icon { width: 1rem; height: 1rem; fill: var(--primary); }
.profiles i { color: var(--primary); font-style: normal; }

/* skills */
.skill-list { border-top: 1px solid var(--faint); }
.skill {
  position: relative; display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem; align-items: start;
  padding: 2.4rem 0; border-bottom: 1px solid var(--faint); isolation: isolate;
}
.skill::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 242, 254, 0.07), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.skill:hover::before { transform: scaleX(1); }
.skill-index { color: var(--primary); font: 0.8rem var(--mono); letter-spacing: 0.12em; padding-top: 0.6rem; }
.skill h3 { font: 600 clamp(1.6rem, 3vw, 2.6rem) / 1 var(--display); letter-spacing: -0.05em; text-transform: uppercase; transition: transform 0.5s var(--ease), color 0.3s; }
.skill:hover h3 { transform: translateX(8px); color: var(--primary); }
.skill p { margin-top: 0.9rem; max-width: 560px; color: var(--muted); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding-top: 0.5rem; }
.tags li { padding: 0.42rem 0.8rem; border: 1px solid rgba(0, 242, 254, 0.28); border-radius: 999px; color: rgba(255, 255, 255, 0.82); font: 0.66rem var(--mono); letter-spacing: 0.06em; }

/* work */
.results { margin-bottom: 3rem; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--primary-soft); border-radius: 20px; background: linear-gradient(140deg, rgba(0, 242, 254, 0.07), rgba(255, 255, 255, 0.01) 60%); }
.results h3, .gallery h3 { margin-bottom: 1.6rem; color: var(--primary); font: 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }
.results ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.results strong { display: block; font: 600 clamp(3rem, 7vw, 6rem) / 0.9 var(--display); letter-spacing: -0.06em; background: linear-gradient(120deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results li span { display: block; margin-top: 0.8rem; max-width: 260px; color: var(--muted); line-height: 1.5; }
.results > p { margin-top: 1.6rem; color: rgba(255, 255, 255, 0.4); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.work-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--faint); border-radius: 20px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s; }
.work-card:hover { border-color: rgba(0, 242, 254, 0.45); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 242, 254, 0.08); }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #0b0f10; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.045); }
.work-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, 0.55), transparent 45%); }
.work-index { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: 0.35rem 0.6rem; background: rgba(5, 5, 5, 0.78); color: var(--primary); font: 0.62rem var(--mono); letter-spacing: 0.14em; }
.work-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.3rem, 2.4vw, 2rem); }
.work-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--primary); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.work-meta span + span { color: rgba(255, 255, 255, 0.5); }
.work-body h3 { margin-top: 0.9rem; font: 600 clamp(1.5rem, 2.6vw, 2.2rem) / 1 var(--display); letter-spacing: -0.05em; text-transform: uppercase; }
.work-statement { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.86); line-height: 1.55; }
.work-part { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--faint); color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.work-part b { display: block; margin-bottom: 0.4rem; color: var(--primary); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.work-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: auto; padding-top: 1.4rem; }
.work-links a { font: 700 0.7rem var(--body); text-transform: uppercase; letter-spacing: 0.12em; border-bottom: 1px solid rgba(0, 242, 254, 0.5); padding-bottom: 0.2rem; transition: color 0.2s, border-color 0.2s; }
.work-links a:hover { color: var(--primary); border-color: var(--primary); }
.work-links i { color: var(--primary); font-style: normal; }
.work-count-1 { grid-template-columns: 1fr; }
.work-count-1 .work-card { flex-direction: row; }
.work-count-1 .work-media { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.work-count-1 .work-body { flex: 1; }
.gallery { margin-top: 3rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--faint); }

/* approach */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { position: relative; padding-top: 1.6rem; border-top: 1px solid rgba(0, 242, 254, 0.35); }
.step::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.step-number { display: block; color: transparent; -webkit-text-stroke: 1px rgba(0, 242, 254, 0.55); font: 600 clamp(4rem, 7vw, 6.5rem) / 0.9 var(--display); letter-spacing: -0.06em; }
.step h3 { margin-top: 1.2rem; font: 600 clamp(1.3rem, 2vw, 1.7rem) / 1.05 var(--display); letter-spacing: -0.04em; text-transform: uppercase; }
.step p { margin-top: 0.8rem; color: var(--muted); line-height: 1.7; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.mate a { display: flex; flex-direction: column; height: 100%; padding: 1rem; border: 1px solid var(--faint); border-radius: 20px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.4s, background 0.4s; }
.mate a:hover { border-color: rgba(0, 242, 254, 0.45); background: rgba(0, 242, 254, 0.04); }
.mate-photo { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 4.4; background: #0b0f10; }
.mate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter 0.6s, transform 0.8s var(--ease); }
.mate a:hover img { filter: none; transform: scale(1.04); }
.mate-code { margin-top: 1.1rem; color: var(--primary); font: 0.62rem var(--mono); letter-spacing: 0.14em; }
.mate strong { margin-top: 0.5rem; font: 600 1.4rem / 1.05 var(--display); letter-spacing: -0.04em; text-transform: uppercase; }
.mate-role { margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.mate-link { margin-top: auto; padding-top: 1.2rem; font: 700 0.68rem var(--body); text-transform: uppercase; letter-spacing: 0.12em; }
.mate-link i { color: var(--primary); font-style: normal; }
.agency-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.6rem; font: 600 clamp(1.3rem, 2.6vw, 2.2rem) var(--display); letter-spacing: -0.04em; text-transform: uppercase; border-bottom: 1px solid rgba(0, 242, 254, 0.45); padding-bottom: 0.3rem; transition: color 0.25s, gap 0.35s var(--ease); }
.agency-link i { color: var(--primary); font-style: normal; }
.agency-link:hover { color: var(--primary); gap: 1.4rem; }

/* contact */
.contact { overflow: hidden; text-align: center; padding-block: clamp(7rem, 12vw, 11rem); }
.contact-glow { position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); aspect-ratio: 2 / 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(0, 242, 254, 0.16), transparent 65%); pointer-events: none; }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .section-label { margin-bottom: 1.8rem; padding: 0; }
.contact .section-label::after { display: none; }
.contact h2 { font-size: clamp(3rem, 8vw, 7.4rem); }
.contact-inner > p { max-width: 560px; margin-top: 1.8rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.contact .profiles { justify-content: center; }

/* footer */
.site-footer { position: relative; padding: 4rem var(--gutter) 2rem; border-top: 1px solid var(--primary-soft); background: rgba(0, 0, 0, 0.35); }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-name { margin-top: 1rem; font: 600 1.3rem var(--display); letter-spacing: -0.03em; }
.footer-role { margin-top: 0.3rem; color: var(--muted); font-size: 0.88rem; }
.footer-agency { display: inline-block; margin-top: 1rem; color: var(--primary); font: 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h2 { margin-bottom: 0.4rem; color: var(--primary); font: 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 400; }
.footer-col a { color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover, .footer-col a[aria-current] { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--faint); color: rgba(255, 255, 255, 0.45); font: 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.footer-bottom a:hover { color: var(--primary); }

/* language hint */
.lang-hint { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; max-width: min(420px, calc(100% - 2rem)); padding: 1rem 1.1rem; border: 1px solid rgba(0, 242, 254, 0.4); background: rgba(8, 12, 13, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lang-hint[hidden] { display: none; }
.lang-hint p { flex: 1 1 100%; font-size: 0.9rem; }
.lang-hint a, .lang-hint button { font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.lang-hint a { padding: 0.5rem 0.9rem; background: var(--primary); color: var(--bg); }
.lang-hint button { color: rgba(255, 255, 255, 0.6); }
.lang-hint button:hover { color: #fff; }

/* 404 */
.not-found .nf-code { font: 900 clamp(7rem, 22vw, 16rem) / 0.9 var(--heavy); letter-spacing: -0.06em; background: linear-gradient(100deg, var(--primary), #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- keyframes */

@keyframes trace-text { to { stroke-dashoffset: 0; } }
@keyframes fade-in-text { to { opacity: 1; } }
@keyframes fade-out-trace { to { opacity: 0; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes orbit-breathe { from { scale: 1; opacity: 0.7; } to { scale: 1.04; opacity: 1; } }
@keyframes cross-spin { to { rotate: 360deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes signal-lock { 0% { opacity: 0; transform: translateY(0.4em); filter: blur(8px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes signal-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes signal-underline { to { transform: scaleX(1); opacity: 1; } }
@keyframes scroll-line { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(100%); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.5; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } }
@keyframes bar-grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes bar-x { from { transform: scaleX(0.6); } to { transform: scaleX(1); } }
@keyframes focus { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(0.82); } }
@keyframes chip { 0%, 70%, 100% { background: transparent; color: inherit; } 80%, 90% { background: rgba(0, 242, 254, 0.18); color: #fff; } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes scan { from { top: -20%; } to { top: 110%; } }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1240px) {
  .hero-widgets { display: none; }
}

@media (max-width: 1080px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 4.5rem 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem clamp(1rem, 2.4vw, 2.2rem) 2rem; background: rgba(5, 5, 5, 0.97); border-bottom: 1px solid var(--primary-soft);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 1.1rem 0.2rem; font-size: 0.9rem; border-bottom: 1px solid var(--faint); }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { background: none; color: var(--primary); }
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .section-head > p { grid-column: 1; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .skill { grid-template-columns: 3rem minmax(0, 1fr); }
  .tags { grid-column: 2; justify-content: flex-start; }
  .work-grid, .work-count-1 { grid-template-columns: 1fr; }
  .work-count-1 .work-card { flex-direction: column; }
  .work-count-1 .work-media { aspect-ratio: 16 / 10; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .mate { scroll-snap-align: start; }
  .results ul { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 1rem; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.82rem; max-width: 9.5rem; }
  .nav-toggle-label { display: none; }
  .hero { padding: 6.5rem 1rem 6rem; }
  .trace-svg { width: min(86vw, 640px); }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { justify-content: space-between; }
  .btn-large.btn-primary { justify-content: center; font-size: 0.8rem; }
  .facts { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr; gap: 0.8rem; padding: 2rem 0; }
  .tags { grid-column: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 78%); }
  .footer-inner { grid-template-columns: 1fr; }
  .lang-hint { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; }
}

@media (hover: none) {
  .cursor-aura { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cursor-aura { display: none; }
}
