/* ============================================================
   Giobari Daniel — Portfolio · Public stylesheet
   Design language: modern software studio × creative agency.
   Dark-first (light theme supported), warm amber accent,
   Space Grotesk / Inter / JetBrains Mono, subtle motion.
   ============================================================ */

:root {
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --accent: #E9A23B;
  --accent-ink: #1A1206;
  --accent-text: #F2B95C;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --grad: linear-gradient(100deg, var(--accent) 0%, #E97E4C 100%);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --r-s: 10px; --r-m: 14px; --r-l: 20px;
  --ok: #86C39A; --bad: #E5654E;
  --ease: cubic-bezier(.2, .65, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0B0E; --bg2: #0D0F14; --surface: #12141B; --surface2: #171A23;
  --text: #F2F2EF; --muted: #A6A8B3; --faint: #7A7C88;
  --line: rgba(242, 242, 239, .09); --line2: rgba(242, 242, 239, .17);
  --shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F5F1; --bg2: #EFEDE6; --surface: #FFFFFF; --surface2: #FBFAF6;
  --text: #15161B; --muted: #565863; --faint: #8A8C97;
  --line: rgba(21, 22, 27, .10); --line2: rgba(21, 22, 27, .20);
  --accent-text: #9A5A0A;
  --shadow: 0 24px 70px rgba(21, 22, 27, .10);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-padding-top: calc(var(--header-h) + 18px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background .35s ease, color .35s ease;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Shared atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 11.5px/1 var(--font-mono); letter-spacing: .06em;
  padding: 7px 13px; border: 1px solid var(--line2); border-radius: 999px;
  color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.chip-sample { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); background: var(--accent-soft); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-ghost { border-color: var(--line2); color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }

.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Sections ---------- */
section { padding: clamp(76px, 9vw, 124px) 0; position: relative; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.sec-num { font: 500 13px/1 var(--font-mono); letter-spacing: .12em; color: var(--accent-text); }
.sec-rule { height: 1px; flex: 1; background: var(--line); }
.sec-title { font: 600 clamp(30px, 4.4vw, 52px)/1.05 var(--font-display); letter-spacing: -.02em; }
.sec-intro { color: var(--muted); max-width: 64ch; font-size: 16.5px; line-height: 1.7; margin-top: 16px; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* Skeletons */
.skel {
  border-radius: var(--r-m);
  background: linear-gradient(100deg, var(--surface2) 40%, color-mix(in srgb, var(--surface2) 55%, var(--text) 8%) 50%, var(--surface2) 60%);
  background-size: 200% 100%;
  animation: sk 1.5s linear infinite;
}
@keyframes sk { to { background-position: -200% 0; } }
.skel-card { aspect-ratio: 16 / 10; }

.empty {
  border: 1px dashed var(--line2); border-radius: var(--r-l);
  padding: 58px 26px; text-align: center; color: var(--muted); font-size: 15.5px;
}
.empty b { display: block; font: 600 18px var(--font-display); color: var(--text); margin-bottom: 8px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font: 700 19px/1 var(--font-display); letter-spacing: -.01em; color: var(--text);
}
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: var(--accent); rotate: 45deg; transition: rotate .4s var(--ease); }
.brand:hover::before { rotate: 225deg; }
.brand img { height: 30px; width: auto; }
.brand .brand-text::after { content: "."; color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 34px); }
.nav a {
  color: var(--muted); text-decoration: none; font: 500 14.5px/1 var(--font-body);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta { display: inline-flex; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line2); place-items: center; color: var(--text);
}
.burger svg { width: 20px; height: 20px; }

.mnav {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  padding: 20px var(--gutter) 40px;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mnav.open { opacity: 1; visibility: visible; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mnav-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8vh; }
.mnav-links a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  font: 600 clamp(30px, 8vw, 42px)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text);
  padding: 10px 0; border-bottom: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s;
}
.mnav.open .mnav-links a { transform: none; opacity: 1; }
.mnav-links a small { font: 500 12px var(--font-mono); color: var(--accent-text); letter-spacing: .14em; }
.mnav-cta { margin-top: auto; display: grid; gap: 12px; }
.mnav-close { width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 12px; display: grid; place-items: center; }

body.menu-open .site-header { opacity: 0; pointer-events: none; }
.site-header { transition: background .3s, border-color .3s, backdrop-filter .3s, opacity .3s; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: grid; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px;
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 88% -8%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 62%),
    radial-gradient(700px 420px at -10% 108%, color-mix(in srgb, #E97E4C 7%, transparent), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(900px 620px at 70% 18%, rgba(0,0,0,.55), transparent 72%);
  mask-image: radial-gradient(900px 620px at 70% 18%, rgba(0,0,0,.55), transparent 72%);
  opacity: .5;
}
.hero-inner { position: relative; width: 100%; }
.hero-avail {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  padding: 9px 15px; border-radius: 999px; margin-bottom: 26px; background: color-mix(in srgb, var(--ok) 8%, transparent);
}
.hero-avail .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 25%, transparent); } }

.hero h1 {
  font: 700 clamp(46px, 9.2vw, 116px)/.98 var(--font-display);
  letter-spacing: -.035em; margin: 20px 0 30px;
  background: linear-gradient(105deg, var(--text) 58%, var(--accent) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content; max-width: 100%;
}
.hero-headline {
  font: 500 clamp(21px, 2.7vw, 31px)/1.35 var(--font-display);
  letter-spacing: -.012em; max-width: 30ch;
}
.hero-headline em { font-style: normal; color: var(--accent-text); }
.hero-sub { color: var(--muted); max-width: 62ch; margin-top: 20px; font-size: 16.5px; line-height: 1.75; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(48px, 8vh, 88px);
  font: 500 12px/1 var(--font-mono); letter-spacing: .18em; color: var(--faint); text-transform: uppercase;
}
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll .line { width: 52px; height: 1px; background: var(--line2); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: slide 2.6s var(--ease) infinite;
}
@keyframes slide { 60% { transform: translateX(0); } 100% { transform: translateX(102%); } }

.hero-asterisk {
  position: absolute; right: 6%; top: 22%; width: clamp(90px, 12vw, 170px); height: auto;
  color: var(--accent); opacity: .5; animation: spin 26s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero-asterisk { display: none; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.mq-group span {
  font: 500 13.5px/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.mq-group .icon { width: 14px; height: 14px; color: var(--accent); opacity: .85; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Work / projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 34px; }
.fbtn {
  font: 500 12.5px/1 var(--font-mono); letter-spacing: .05em;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2);
  color: var(--muted); transition: all .22s;
}
.fbtn:hover { border-color: var(--accent); color: var(--text); }
.fbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.wg { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.wcard {
  grid-column: span 12; display: flex; flex-direction: column; gap: 15px;
  text-decoration: none; color: inherit;
}
.wcard-media {
  position: relative; overflow: hidden; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--surface2); aspect-ratio: 16 / 10;
}
.wcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease); will-change: transform;
}
.wcard:hover .wcard-media img { transform: scale(1.045); }
.wcard-arrow {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line2);
  opacity: 0; transform: translate(8px, 8px); transition: all .3s var(--ease);
}
.wcard:hover .wcard-arrow { opacity: 1; transform: none; }
.wcard-chips { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.wcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wcard-year { font: 500 12.5px var(--font-mono); color: var(--faint); letter-spacing: .08em; }
.wcard-title { font: 600 clamp(20px, 2.3vw, 26px)/1.15 var(--font-display); letter-spacing: -.015em; transition: color .2s; }
.wcard:hover .wcard-title { color: var(--accent-text); }
.wcard-desc { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 60ch; }
.wcard-tech { font: 500 12px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--faint); }
.wcard-case {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font: 600 13.5px/1 var(--font-body); color: var(--accent-text);
}
.wcard-case .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.wcard:hover .wcard-case .icon { transform: translate(3px, -3px); }

@media (min-width: 861px) {
  .wcard { grid-column: span 6; }
  .wg > .wcard:nth-child(6n+1) { grid-column: span 7; }
  .wg > .wcard:nth-child(6n+2) { grid-column: span 5; }
  .wg > .wcard:nth-child(6n+4) { grid-column: span 5; }
  .wg > .wcard:nth-child(6n+5) { grid-column: span 7; }
  .wg > .wcard:nth-child(6n+3), .wg > .wcard:nth-child(6n) { grid-column: span 6; }
}

.wcard-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 40%, transparent));
  margin-bottom: 6px;
}
.wcard-featured .wcard-title { font-size: clamp(26px, 3.2vw, 40px); }
.wcard-featured .wcard-desc { font-size: 16px; }
.wcard-featured .wcard-media { aspect-ratio: 16 / 10.6; }
@media (max-width: 860px) { .wcard-featured { grid-template-columns: 1fr; } }

/* ---------- Visual design gallery ---------- */
.dg { columns: 3; column-gap: 26px; }
@media (max-width: 1000px) { .dg { columns: 2; } }
@media (max-width: 620px) { .dg { columns: 1; } }
.dcard {
  break-inside: avoid; margin: 0 0 26px; display: block; text-decoration: none; color: inherit;
}
.dcard-media {
  position: relative; overflow: hidden; border-radius: var(--r-m); border: 1px solid var(--line);
  background: var(--surface2); display: block;
}
.dcard-media img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.dcard:hover .dcard-media img { transform: scale(1.04); }
.dcard-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px 0;
}
.dcard-cap h3 { font: 600 17.5px/1.2 var(--font-display); letter-spacing: -.01em; }
.dcard-cap span { font: 500 11.5px var(--font-mono); color: var(--faint); letter-spacing: .08em; white-space: nowrap; }
.dcard:hover h3 { color: var(--accent-text); }

/* ---------- Services ---------- */
.slist { border-top: 1px solid var(--line); }
.srow {
  display: grid; grid-template-columns: 74px 44px 1fr; gap: clamp(16px, 3vw, 40px);
  align-items: start; padding: clamp(26px, 3.4vw, 38px) 8px;
  border-bottom: 1px solid var(--line); position: relative;
  transition: background .3s;
}
.srow:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.srow-num { font: 500 13.5px/1.4 var(--font-mono); color: var(--faint); letter-spacing: .1em; transition: color .25s; }
.srow:hover .srow-num { color: var(--accent-text); }
.srow-icon {
  width: 46px; height: 46px; border: 1px solid var(--line2); border-radius: 13px;
  display: grid; place-items: center; color: var(--accent-text); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s;
}
.srow:hover .srow-icon { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.srow-body h3 { font: 600 clamp(20px, 2.4vw, 27px)/1.15 var(--font-display); letter-spacing: -.015em; margin-bottom: 9px; }
.srow-body p { color: var(--muted); max-width: 66ch; line-height: 1.65; font-size: 15.5px; }
@media (max-width: 640px) {
  .srow { grid-template-columns: 1fr 44px; }
  .srow-num { grid-column: 1 / -1; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5.5vw, 80px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-lead {
  font: 500 clamp(23px, 2.9vw, 33px)/1.32 var(--font-display);
  letter-spacing: -.015em; margin-bottom: 26px; text-wrap: balance;
}
.about-lead em { font-style: normal; color: var(--accent-text); }
.about-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; font-size: 16px; max-width: 64ch; }
.about-points { margin-top: 30px; display: grid; gap: 12px; }
.about-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; font-size: 15px; }
.about-points .icon { width: 17px; height: 17px; color: var(--accent); }

.about-card {
  position: sticky; top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); padding: 22px;
}
.about-portrait {
  border-radius: calc(var(--r-l) - 8px); overflow: hidden; aspect-ratio: 4 / 4.4;
  background: var(--surface2); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .mono-glyph {
  font: 700 clamp(64px, 8vw, 96px) var(--font-display);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-id { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 6px 4px; }
.about-id b { font: 600 17px var(--font-display); display: block; }
.about-id span { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line2); color: var(--muted); text-decoration: none;
  transition: all .25s var(--ease);
}
.soc:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-3px); }
.soc .icon { width: 17px; height: 17px; }
.soc-label {
  width: auto; padding: 0 16px; border-radius: 999px; height: 42px;
  display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-body);
}

/* ---------- Skills ---------- */
.skill-groups { display: grid; gap: 30px; }
.skill-group h4 {
  font: 500 12px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.skill-group h4::after { content: ""; height: 1px; flex: 1; background: var(--line); max-width: 90px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line2); border-radius: 999px;
  font: 500 14.5px/1 var(--font-body); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s;
}
.skill:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.skill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.skill img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }

/* ---------- Process ---------- */
.plist { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pstep {
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.6vw, 32px) clamp(30px, 3.4vw, 42px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background .3s;
}
.pstep:hover { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.pstep-num { font: 500 13px/1 var(--font-mono); color: var(--accent-text); letter-spacing: .14em; }
.pstep b { display: block; font: 600 clamp(38px, 4vw, 52px)/1 var(--font-display); margin: 16px 0 12px; letter-spacing: -.02em; }
.pstep p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 34ch; }
@media (max-width: 960px) { .plist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plist { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tcard {
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 22px;
}
.tcard blockquote {
  font: 500 18px/1.6 var(--font-display); letter-spacing: -.01em; margin: 0; position: relative; padding-left: 26px;
}
.tcard blockquote::before {
  content: "\201C"; position: absolute; left: 0; top: -6px;
  font: 700 44px/1 var(--font-display); color: var(--accent);
}
.tcard figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tcard figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line2); }
.t-ava {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font: 600 15px var(--font-display);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.tcard figcaption b { font: 600 15px var(--font-body); display: block; }
.tcard figcaption span { color: var(--muted); font-size: 13px; }

/* ---------- Contact ---------- */
#contact { overflow: clip; }
#contact::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(760px 420px at 18% 112%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-title { font: 600 clamp(34px, 5vw, 60px)/1.08 var(--font-display); letter-spacing: -.025em; max-width: 14ch; }
.contact-sub {
  font: 600 clamp(34px, 5vw, 60px)/1.08 var(--font-display); letter-spacing: -.025em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
.contact-note { color: var(--muted); margin-top: 22px; max-width: 46ch; line-height: 1.7; }
.c-rows { margin-top: 36px; }
.c-row {
  display: flex; align-items: center; gap: 16px; padding: 15px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: padding-left .25s var(--ease);
}
.c-row:hover { padding-left: 8px; }
.c-row .icon {
  width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line2);
  border-radius: 12px; color: var(--accent-text); background: var(--surface);
}
.c-row small { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.c-row b { font: 500 15.5px var(--font-body); word-break: break-word; }
.c-socials { margin-top: 28px; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 13.5px/1 var(--font-body); margin-bottom: 9px; }
.field label small { color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 12px; padding: 14px 16px; color: var(--text);
  font: 400 15px/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .err { display: none; color: var(--bad); font-size: 13px; margin-top: 7px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.hp { position: absolute; left: -5000px; top: auto; height: 1px; width: 1px; overflow: hidden; }
.form-note { color: var(--faint); font-size: 13px; margin-top: 14px; text-align: center; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success .big-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok);
}
.form-success .big-check svg { width: 26px; height: 26px; }
.form-success h3 { font: 600 24px var(--font-display); margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 30%, transparent);
  border-top-color: var(--accent-ink); animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 30px; }
.f-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.f-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.f-nav a { color: var(--muted); text-decoration: none; font: 500 14px var(--font-body); transition: color .2s; }
.f-nav a:hover { color: var(--accent-text); }
.f-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13.5px;
}
.f-bottom a { color: inherit; text-decoration: none; }
.f-bottom a:hover { color: var(--accent-text); }
.to-top {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 12.5px var(--font-mono); letter-spacing: .1em; color: var(--muted);
}
.to-top:hover { color: var(--accent-text); }

/* ---------- Project modal ---------- */
.pm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(0px, 2vw, 26px); }
.pm[hidden] { display: none; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 8, .72); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.pm-panel {
  position: relative; width: min(1000px, 100%); max-height: 100vh; height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-l);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .35s ease, transform .35s var(--ease);
}
@media (max-width: 700px) { .pm { padding: 0; } .pm-panel { border-radius: 0; border: 0; } }
.pm.open .pm-panel { opacity: 1; transform: none; }
.pm-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line2); color: var(--text);
  transition: transform .25s, border-color .25s, color .25s;
}
.pm-close:hover { border-color: var(--accent); color: var(--accent-text); transform: rotate(90deg); }
.pm-scroll { overflow-y: auto; overscroll-behavior: contain; padding: clamp(26px, 4.5vw, 56px); }
.pm-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.pm-title { font: 600 clamp(30px, 4.4vw, 48px)/1.05 var(--font-display); letter-spacing: -.025em; max-width: 20ch; }
.pm-desc { color: var(--muted); margin-top: 16px; max-width: 62ch; line-height: 1.7; font-size: 16.5px; }
.pm-cover {
  margin: 30px 0 8px; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface2);
}
.pm-cover img { width: 100%; max-height: 62vh; object-fit: cover; }
.pm-body { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(26px, 4vw, 44px); }
@media (max-width: 820px) { .pm-body { grid-template-columns: 1fr; } .pm-aside { order: 2; } }
.pm-aside { display: grid; gap: 4px; align-content: start; }
.pm-fact { padding: 13px 0; border-bottom: 1px solid var(--line); }
.pm-fact small { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.pm-fact p { font: 500 14.5px/1.5 var(--font-body); }
.pm-links { display: grid; gap: 10px; margin-top: 20px; }
.pm-sec { margin-bottom: 34px; }
.pm-sec h4 {
  font: 600 11.5px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 12px;
}
.pm-sec p { color: var(--muted); line-height: 1.78; font-size: 15.5px; }
.pm-feats { display: grid; gap: 10px; }
.pm-feats li { display: flex; gap: 11px; align-items: baseline; color: var(--muted); line-height: 1.6; font-size: 15px; }
.pm-feats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; translate: 0 -2px; }
.pm-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pm-gallery { grid-template-columns: 1fr; } }
.pm-gallery button { padding: 0; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--surface2); }
.pm-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pm-gallery button:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 4vmin; background: rgba(3, 4, 6, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r-s); box-shadow: var(--shadow); }
.lightbox .pm-close { position: fixed; top: 18px; right: 18px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(94vw, 480px); }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--accent);
  color: var(--text); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast.bad { border-left-color: var(--bad); }
.toast.good { border-left-color: var(--ok); }
.toast .icon { width: 17px; height: 17px; margin-top: 2px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important; animation-iteration-count: 1 !important;
    transition-duration: .001s !important; scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .mq-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-scroll .line::after, .hero-asterisk { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pm-scroll { padding: 24px 18px 40px; }
  .form-card { padding: 22px 18px; }
}
