/* ============================================================
   Thiago Marinho — Portfolio  |  D.Nova-inspired editorial system
   ============================================================ */

:root {
  --ground: #f1f0ee;
  --ground-2: #eae8e5;
  --ink: #141414;
  --ink-soft: #6c6a66;
  --line: rgba(20, 20, 20, 0.13);
  --black: #111010;
  --card: #ffffff;
  --dark: #171614;
  --dark-soft: #a3a09b;
  --accent: #c24619;

  --r-lg: 22px;
  --r-md: 16px;
  --r-pill: 999px;

  --pad-x: clamp(20px, 5vw, 84px);
  --maxw: 1500px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--ground);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--ink); color: var(--ground); }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(72px, 11vw, 160px); }

/* ---------- type ---------- */
.display {
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(3.4rem, 12vw, 12rem);
}
.display .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.display .word-inner {
  display: inline-block; transform: translateY(115%);
  transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi, 0) * 0.06s);
}
.hero-title-item.is-active .display .word-inner,
.page-hero .display.reveal.is-in .word-inner { transform: translateY(0); }

.h1 { font-weight: 400; line-height: 0.98; letter-spacing: -0.025em; font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
.h2 { font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.h3 { font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.body { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.muted { color: var(--ink-soft); }

.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-soft);
}
.label-dot { display: inline-flex; align-items: center; gap: 0.6em; }
.label-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em; border-radius: var(--r-pill);
  background: var(--ink); color: var(--ground);
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { background: #000; }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }

.link-u {
  display: inline-flex; align-items: center; gap: 0.4em;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: gap 0.4s var(--ease), opacity 0.3s;
}
.link-u:hover { gap: 0.7em; border-color: var(--accent); color: var(--accent); }

.circle-arr {
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: var(--ground);
  flex: none; transition: transform 0.6s var(--ease), background 0.4s var(--ease);
}
.circle-arr:hover { background: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 22px;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  mix-blend-mode: normal;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 0.98rem; position: relative; padding: 4px 0; color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width 0.4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; background: var(--accent); }
.header-cta { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.header-cta .arr { transition: transform 0.4s var(--ease); }
.header-cta:hover .arr { transform: translate(3px, -3px); }
.nav-toggle { display: none; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; min-height: 100svh; padding-top: 96px; overflow: hidden; }
.hero .wrap { position: relative; min-height: calc(100svh - 96px); display: grid; grid-template-columns: 1fr 46%; gap: 40px; align-items: center; }

.hero-side {
  position: absolute; left: calc(var(--pad-x) - 6px); top: 50%;
  transform: rotate(-90deg) translateX(50%); transform-origin: left center;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 16px;
}
.hero-side::after { content: ""; width: 80px; height: 1px; background: var(--line); }

.hero-copy { position: relative; z-index: 3; padding-left: clamp(0px, 3vw, 40px); padding-bottom: clamp(70px, 11vh, 110px); }
.hero-greet { margin-bottom: 10px; color: var(--accent); }
.hero-overline { margin-bottom: clamp(24px, 6vh, 60px); }
.hero-stats { display: flex; gap: 46px; margin-bottom: clamp(28px, 7vh, 64px); }
.hero-stat .num { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.hero-stat:first-child .num { color: var(--accent); }
.hero-stat .num sup { font-size: 0.5em; vertical-align: super; font-weight: 400; }
.hero-stat .cap { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); max-width: 14ch; }

.hero-titles { position: relative; }
.hero-title-item { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-title-item.is-active { position: relative; opacity: 1; pointer-events: auto; }
.hero-title-item .display { display: block; }
.hero-sub { margin-top: 14px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink); display: inline-flex; align-items: center; gap: 0.6em; }
.hero-sub::before { content: ""; width: 26px; height: 1px; background: var(--ink); }

.hero-scroll { position: absolute; left: calc(var(--pad-x) + clamp(0px,3vw,40px)); bottom: 40px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.hero-scroll .dn { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

.hero-ticker {
  position: relative; z-index: 2; margin-top: clamp(24px, 5vh, 46px);
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x);
  padding-top: 18px; padding-bottom: 4px; border-top: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-ticker-track {
  display: flex; width: max-content; white-space: nowrap;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
  animation: heroTicker 24s linear infinite;
}
.hero-ticker-track span { display: inline-flex; align-items: center; }
.hero-ticker-track span::after { content: "—"; color: var(--accent); margin: 0 26px; }
.hero-ticker-track span:last-child::after { content: none; }
@keyframes heroTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-media { position: relative; align-self: stretch; margin-block: clamp(20px, 5vh, 60px); }
.hero-figs, .work-media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.15s var(--ease);
}
.hero-media.reveal.is-in .hero-figs,
.work.reveal.is-in .work-media { clip-path: inset(0 0% 0 0); }
.hero-figs { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; }
.hero-fig { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.hero-fig.is-active { opacity: 1; transform: scale(1); }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.hero-fig .tofill { position: absolute; left: 16px; bottom: 16px; }
.hero-fig--placeholder {
  background:
    radial-gradient(120% 140% at 20% 0%, #3a3a38 0%, #201f1d 55%, #141312 100%);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px;
}
.hero-fig--placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
}
.hero-fig--placeholder .tofill { position: static; }

.hero-ui { position: absolute; right: 0; bottom: clamp(20px,5vh,60px); z-index: 4; display: flex; align-items: center; gap: 18px; }
.hero-count { font-size: 0.85rem; letter-spacing: 0.05em; color: var(--ink); }
.hero-count b { font-weight: 500; }
.hero-progress { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--ink); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background 0.4s, transform 0.4s; }
.hero-dots button.is-active { background: var(--ink); transform: scale(1.15); }

.tofill {
  display: inline-block; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  padding: 5px 9px; border-radius: 6px;
}
.tofill--ink { color: var(--ink-soft); background: var(--ground-2); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .label { margin-bottom: 20px; }
.sec-head .h2 { max-width: 16ch; }
.sec-head .side { max-width: 40ch; }
.center-head { text-align: center; margin-bottom: clamp(40px,6vw,80px); display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-teaser .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.about-teaser .intro { font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 300; line-height: 1.22; letter-spacing: -0.02em; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acard { background: var(--card); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.acard .num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.acard .num sup { font-size: 0.45em; vertical-align: super; }
.acard p { font-size: 0.92rem; color: var(--ink-soft); }
.acard--dark { background: var(--dark); color: var(--ground); }
.acard--dark p { color: var(--dark-soft); }
.acard--full { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.acard .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; }
.acard--dark .ic { background: rgba(255,255,255,0.08); }

/* ============================================================
   WORKS GRID
   ============================================================ */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); }
.work {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ground-2);
}
.work:nth-child(3n) { grid-column: 1 / -1; }
.work-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work:nth-child(3n) .work-media { aspect-ratio: 21/9; }
.work-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 0.9s var(--ease), filter 0.6s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); filter: grayscale(0); }
.work-media--placeholder {
  display: flex; align-items: flex-end; padding: 20px;
  background: radial-gradient(120% 140% at 20% 0%, #3a3a38 0%, #201f1d 55%, #141312 100%);
}
.work-media--placeholder .tofill { position: relative; z-index: 1; }
.work-hover { position: absolute; inset: 0; display: grid; place-items: center; }
.work-hover .circle-arr { transform: scale(0); background: #fff; color: var(--ink); }
.work:hover .work-hover .circle-arr { transform: scale(1); }
.work-url { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; color: #fff; font-size: 0.8rem; opacity: 0; transform: translateY(8px); transition: all 0.5s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.work:hover .work-url { opacity: 1; transform: translateY(0); }
.work-foot { display: flex; align-items: center; justify-content: space-between; padding: 20px 6px 4px; gap: 16px; }
.work-foot h3 { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 400; letter-spacing: -0.02em; }
.work-cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); white-space: nowrap; }
.works-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 70px); }

/* ============================================================
   TOOLS & SKILLS (home teaser grid)
   ============================================================ */
.skills--home { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(30px, 5vw, 80px); }
.skills--home .pct { transition: none; }
.skills--home .skill:nth-child(3n+1) .skill-bar span { background: var(--accent); }

/* zebra-contrast: Tools & Skills runs dark, breaking the light background rhythm */
#skills { background: var(--dark); color: var(--ground); border-radius: var(--r-lg); }
#skills .label, #skills .body.side { color: var(--dark-soft); }
#skills .skill-bar { background: rgba(255, 255, 255, 0.16); }
#skills .skill-bar span { background: var(--ground); }
#skills .skills--home .skill:nth-child(3n+1) .skill-bar span { background: var(--accent); }
#skills .skill-top .pct { color: var(--dark-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 30px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: padding-left 0.5s var(--ease), border-color 0.5s var(--ease);
}
.svc-row:hover { padding-left: 20px; border-left-color: var(--accent); }
.svc-row .idx { font-size: 0.85rem; color: var(--ink-soft); transition: color 0.4s var(--ease); }
.svc-row:hover .idx { color: var(--accent); }
.svc-row .name { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; }
.svc-row .desc { font-size: 0.95rem; color: var(--ink-soft); max-width: 40ch; justify-self: end; text-align: right; }
.svc-row .circle-arr { width: 48px; height: 48px; transform: scale(0.6); opacity: 0; transition: all 0.5s var(--ease); }
.svc-row:hover .circle-arr { transform: scale(1); opacity: 1; background: var(--accent); }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { background: var(--dark); color: var(--ground); border-radius: var(--r-lg); padding: clamp(50px, 8vw, 120px) clamp(24px, 5vw, 90px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 60%; padding-top: 60%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(194, 70, 25, 0.35) 0%, rgba(194, 70, 25, 0) 70%);
}
.cta-band .h1 { font-weight: 300; margin: 0 auto; max-width: 16ch; position: relative; }
.cta-band p { color: var(--dark-soft); margin: 22px auto 40px; max-width: 46ch; position: relative; }
.cta-band .btn { background: var(--ground); color: var(--ink); position: relative; }
.cta-band .btn:hover { background: var(--accent); color: var(--ground); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: var(--ground); border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); margin-top: 0; padding-top: clamp(60px, 8vw, 110px); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: clamp(50px,7vw,90px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-mail { font-size: clamp(2.2rem, 7vw, 6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.footer-mail:hover { opacity: 0.7; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dark-soft); margin-bottom: 16px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: var(--ground); font-size: 0.98rem; margin-bottom: 10px; opacity: 0.9; }
.footer-col a:hover { opacity: 0.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 30px; font-size: 0.82rem; color: var(--dark-soft); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero .label { margin-bottom: 22px; }
.page-hero .split .display { display: block; }
.page-hero .split .display.indent { padding-left: clamp(40px, 12vw, 280px); }

/* about page */
.about-bio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,90px); align-items: start; }
.about-bio .body { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.about-bio .body + .body { margin-top: 20px; }
.skills { display: flex; flex-direction: column; gap: 18px; }
.skill { }
.skill-top { display: flex; justify-content: space-between; font-size: 0.98rem; margin-bottom: 8px; }
.skill-top .pct { color: var(--ink-soft); }
.skill-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.skill-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1.2s var(--ease); }
.tools-line { margin-top: 30px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }

.timeline { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: clamp(24px,3vw,38px) 0; border-bottom: 1px solid var(--line); }
.tl-row .when { font-size: 0.9rem; color: var(--ink-soft); }
.tl-row .role { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.tl-row .what { color: var(--ink-soft); font-size: 0.98rem; max-width: 62ch; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 0.9rem; }
.pill--dark { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items: start; }
.contact-item { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-item h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 10px; font-weight: 500; }
.contact-item a, .contact-item p { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -0.01em; }

/* single project */
.proj-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/8; margin-top: 30px; }
.proj-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.proj-meta h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 8px; }
.gallery { columns: 2; column-gap: clamp(18px,2vw,28px); }
.gallery img { width: 100%; border-radius: var(--r-md); margin-bottom: clamp(18px,2vw,28px); break-inside: avoid; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s; mix-blend-mode: difference; }
.cursor.is-big { width: 54px; height: 54px; background: #fff; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { min-height: 44vh; order: -1; }
  .hero-side { display: none; }
  .about-teaser .grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work:nth-child(3n) { grid-column: auto; }
  .work:nth-child(3n) .work-media { aspect-ratio: 4/3; }
  .about-bio, .contact-grid { grid-template-columns: 1fr; }
  .skills--home { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: 1fr; gap: 16px; }
  .gallery { columns: 1; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-stats { gap: 30px; }
  .about-cards { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; }
  .svc-row .desc { justify-self: start; text-align: left; }
  .svc-row .circle-arr { display: none; }
  .tl-row { grid-template-columns: 1fr; gap: 10px; }
  .cursor { display: none; }
  .page-hero .split .display.indent { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media, .work-media, .display .word-inner { clip-path: none !important; transform: none !important; }
}
