/* =========================================================
   ANDREY QUADROS — dark editorial luxury, single-accent
   visual direction: refined Liquid Glass over a quiet,
   warm-tinted dark with ONE forest-green accent.
   the photo carries the color — the chrome stays restrained.
   ========================================================= */

:root {
  /* surfaces */
  --ink:        #08080c;          /* near-black, hint of warm */
  --ink-2:      #0e0e14;
  --ink-3:      #14141c;
  --paper:      #f4ede4;          /* warm white, not pure */
  --paper-2:    #ece5d8;
  --text:       rgba(244, 237, 228, 0.92);
  --text-dim:   rgba(244, 237, 228, 0.58);
  --text-mute:  rgba(244, 237, 228, 0.34);

  /* single accent — refined forest green from the sweater */
  --green:        #3a8f6a;
  --green-bright: #54b585;
  --green-soft:   rgba(84, 181, 133, 0.14);
  --green-edge:   rgba(84, 181, 133, 0.32);

  /* warm dim — for subtle ambient warmth, never used as accent */
  --warm-glow:    rgba(255, 200, 150, 0.05);

  /* glass system — refined, more transparent, monochrome shadows */
  --glass-bg:        rgba(255, 255, 255, 0.035);
  --glass-bg-strong: rgba(255, 255, 255, 0.06);
  --glass-bg-chip:   rgba(255, 255, 255, 0.045);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-border-2:  rgba(255, 255, 255, 0.06);
  --glass-shine:     rgba(255, 255, 255, 0.28);
  --glass-shadow:    0 24px 60px -16px rgba(0, 0, 0, 0.55), 0 4px 12px -4px rgba(0, 0, 0, 0.3);

  /* type */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --t-base:    clamp(1rem, 0.94rem + 0.3vw, 1.0625rem);
  --t-display: clamp(3.4rem, 1.4rem + 8.8vw, 11.5rem);
  --t-h2:      clamp(1.9rem, 1.1rem + 3.2vw, 4.2rem);
  --t-h3:      clamp(1.05rem, 1rem + 0.4vw, 1.4rem);

  /* motion */
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur:      480ms;
  --dur-slow: 900ms;

  /* spacing rhythm — 4 / 8 / 16 / 24 / 40 / 64 / 96 / 144 */
  --pad-x:     clamp(1.5rem, 1rem + 2.5vw, 4rem);
  --section-y: clamp(6rem, 4rem + 8vw, 12rem);
  --max:       1440px;

  /* radius */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 45% at 70% -10%, rgba(84, 181, 133, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 110%, rgba(255, 220, 180, 0.04), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

@media (hover: none) { body { cursor: auto; } }

::selection { background: var(--green-bright); color: #000; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: none; border: none; background: none; color: inherit; }
@media (hover: none) { button { cursor: pointer; } }

/* =========================================================
   GLASS SYSTEM — refined, mostly transparent
   ========================================================= */

.glass,
.glass-card,
.glass-strong,
.glass-chip,
.glass-pill {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r);
  isolation: isolate;
}

.glass-card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  border-radius: var(--r-xl);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: var(--glass-bg-chip);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--text);
}

.glass-pill {
  border-radius: 999px;
}

/* refined edge highlight — single thin gradient on top/left */
.glass-card::before,
.glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-shine), rgba(255,255,255,0.04) 30%, transparent 50%, rgba(255,255,255,0.06) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.glass-card > *,
.glass-strong > * { position: relative; z-index: 1; }

/* =========================================================
   BACKGROUND LAYERS — quiet, restrained
   single ambient green orb at top, single warm orb at bottom.
   no rainbow, no shader chaos.
   ========================================================= */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* one ambient green orb */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  will-change: transform;
}
.blob.b1 {
  top: -25%; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(84, 181, 133, 0.32), transparent 60%);
  filter: blur(60px);
  animation: drift1 28s var(--ease) infinite;
}
.blob.b2 {
  bottom: -30%; right: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.10), transparent 65%);
  filter: blur(70px);
  animation: drift2 32s var(--ease) infinite;
}
/* hide remaining old blobs from previous design */
.blob.b3, .blob.b4 { display: none; }

@keyframes drift1 {
  0%,100% { transform: translateX(-50%) translateY(0) scale(1); }
  50%     { transform: translateX(-50%) translateY(40px) scale(1.05); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(-40px, -30px) scale(1.08); }
}

#shader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  filter: blur(32px) saturate(0.9);
  mix-blend-mode: soft-light;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(-3%, 3%); }
}

/* =========================================================
   CURSOR
   ========================================================= */

.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid var(--paper);
  transition: width 200ms var(--ease-out), height 200ms var(--ease-out), border-color 200ms;
}
.cursor-dot { width: 4px; height: 4px; background: var(--paper); }
.cursor.is-hover { width: 56px; height: 56px; border-color: var(--green-bright); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--green-bright); color: #000;
  padding: .5rem .75rem; z-index: 10000;
}

/* =========================================================
   NAV — minimal glass pill
   ========================================================= */

.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: 999px;
  width: min(calc(100vw - 2rem), 980px);
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--mono);
  font-size: .8rem;
}
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 600;
  font-size: .85rem;
  font-style: italic;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-text { color: var(--text); }
.brand-text span { color: var(--text-dim); }

.nav-links {
  display: flex; gap: .15rem;
  justify-self: center;
  font-family: var(--mono);
  font-size: .76rem;
}
.nav-links a {
  padding: .5rem .85rem;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
@media (max-width: 980px) { .nav-links { display: none; } }

.nav-cta {
  padding: .5rem .9rem;
  font-family: var(--mono);
  font-size: .76rem;
  border: 1px solid var(--green-edge);
  background: var(--green-soft);
  color: var(--green-bright);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(84, 181, 133, 0.22);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.4); }
}

/* =========================================================
   HERO — refined editorial composition
   ========================================================= */

.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: 8rem var(--pad-x) 4rem;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  grid-template-rows: 1fr auto;
  gap: 2.5rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-text     { grid-column: 1; grid-row: 1; }
.hero-portrait { grid-column: 2; grid-row: 1; }
.hero-marks-row{ grid-column: 1 / span 2; grid-row: 2; }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: 6.5rem;
    gap: 2.25rem;
  }
  .hero-text     { grid-column: 1; grid-row: 1; }
  .hero-portrait { grid-column: 1; grid-row: 2; }
  .hero-marks-row{ grid-column: 1; grid-row: 3; }
}

.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-status {
  align-self: flex-start;
  font-size: .75rem;
  color: var(--text);
  letter-spacing: .04em;
}
.hero-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
}
.dot.pulse { animation: pulse 1.8s infinite; }
.dot.small { width: 5px; height: 5px; }

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--paper);
  display: flex; flex-direction: column;
}
.hero-title .hello {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(.8rem, .75rem + .25vw, .95rem);
  letter-spacing: .14em;
  color: var(--text-mute);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-title .name {
  display: block;
}

[data-split] {
  display: inline-block;
  overflow: hidden;
}
[data-split] .char {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
@keyframes rise { to { transform: translateY(0); } }

.hero-title .surname-wrap {
  display: block;
  overflow: hidden;
  padding: 0 .05em .05em 0;
}
.hero-title .surname {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--green-bright);
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) 0.5s forwards;
}

.hero-role {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(.78rem, .75rem + .25vw, .9rem);
  color: var(--text-dim);
}
.role-prefix { color: var(--text-mute); }
.role-emph {
  color: var(--green-bright);
  padding: .15rem .55rem;
  background: var(--green-soft);
  border: 1px solid var(--green-edge);
  border-radius: 999px;
}
.role-sep { color: var(--text-mute); }
.role-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  margin: 0;
}

.hero-lead {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1rem, .92rem + .35vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-dim);
}
.hero-lead em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper);
  font-weight: 400;
}

.hero-ctas {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: .25rem;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast);
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--green-bright);
  color: var(--ink);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}

.hero-marks {
  display: flex; gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--glass-border-2);
  padding-top: 1.5rem;
}
.mark {
  flex: 1;
  display: flex; flex-direction: column; gap: .2rem;
  padding: 0 1.5rem 0 0;
  font-family: var(--mono);
  border-right: 1px solid var(--glass-border-2);
}
.mark:first-child { padding-left: 0; }
.mark:last-child { border-right: none; padding-right: 0; }
.mk-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--paper);
}
.mk-num.small { font-size: 1.1rem; }
.mk-lbl {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.3;
}
.mk-lbl.small { font-size: .56rem; }

@media (max-width: 720px) {
  .hero-marks { flex-wrap: wrap; gap: 1rem 0; }
  .mark { flex: 0 0 calc(50% - 1rem); border-right: none; padding-right: 0; }
}

.hero-text, .hero-portrait { position: relative; z-index: 2; }

/* matrix rain — sits behind hero content, very subtle */
.hero-matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 40%, rgba(0,0,0,0.35) 75%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 40%, rgba(0,0,0,0.35) 75%, transparent 100%);
}

/* flagship bento — Smart Cities Ariquemes hosts the 3D macbook */
.bento-item.bento-flagship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 0;
  flex-direction: row;
  justify-content: stretch;
}
.bento-item.bento-flagship .flagship-text {
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  min-width: 0;
}
.bento-item.bento-flagship .flagship-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  z-index: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(84, 181, 133, 0.10), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.flagship-mac3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 60%, rgba(0,0,0,0.55) 85%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 60%, rgba(0,0,0,0.55) 85%, transparent 100%);
}
.flagship-mac3d.is-loaded { opacity: 1; }

@media (max-width: 1000px) {
  .bento-item.bento-flagship { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .bento-item.bento-flagship .flagship-stage { min-height: 240px; }
}
@media (max-width: 600px) {
  .bento-item.bento-flagship .flagship-stage { display: none; }
}

/* =========================================================
   HERO TERMINAL — floats over the photo (bottom-left overlap)
   ========================================================= */

.hero-terminal {
  position: absolute;
  z-index: 6;
  left: -55%;
  bottom: 6%;
  width: clamp(280px, 80%, 360px);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) rotate(-2deg);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 16px 40px -10px rgba(58, 143, 106, 0.22),
    -20px 20px 40px -20px rgba(0, 0, 0, 0.6);
  animation: termLand 1s var(--ease-out) .2s backwards,
             termFloat 8s var(--ease) 1.4s infinite;
}
@keyframes termLand {
  from { opacity: 0; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) rotate(-2deg) translate(-16px, 14px) scale(0.96); }
  to   { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) rotate(-2deg) translate(0, 0) scale(1); }
}
@keyframes termFloat {
  0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) rotate(-2deg) translate(0, 0); }
  50%      { transform: perspective(1200px) rotateY(-5.5deg) rotateX(2.5deg) rotate(-2deg) translate(0, -6px); }
}

@media (max-width: 1280px) {
  .hero-terminal { left: -65%; }
}
@media (max-width: 1100px) {
  .hero-terminal { left: -45%; width: clamp(260px, 75%, 320px); }
}
@media (max-width: 980px) {
  .hero-terminal {
    position: relative;
    left: 0; bottom: 0;
    width: 100%;
    margin-top: 1.5rem;
    transform: rotate(0deg);
    animation: none;
  }
}
.term-bar {
  display: flex; align-items: center; gap: .9rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--glass-border-2);
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-mute);
}
.term-dots {
  display: inline-flex; gap: .35rem;
}
.term-dots i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.term-dots i:nth-child(1) { background: rgba(84, 181, 133, 0.85); }
.term-dots i:nth-child(2) { background: rgba(255, 200, 100, 0.55); }
.term-dots i:nth-child(3) { background: rgba(255, 90, 90, 0.55); }
.term-title {
  flex: 1; text-align: center;
  letter-spacing: .04em;
}
.term-tag {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-bright);
  border: 1px solid var(--green-edge);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.term-body {
  margin: 0;
  padding: .95rem 1.1rem 1.1rem;
  font-family: var(--mono);
  font-size: clamp(.7rem, .65rem + .15vw, .8rem);
  line-height: 1.5;
  color: var(--text);
  white-space: pre;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 22rem;
  scroll-behavior: smooth;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 92%, transparent 100%);
}
.term-body code {
  font-family: inherit;
  background: transparent;
  color: inherit;
  white-space: pre;
}
.term-caret {
  display: inline-block;
  font-family: var(--mono);
  color: var(--green-bright);
  animation: blink 1s steps(2) infinite;
  margin-left: 1px;
}

/* per-line typing reveal via clip-path steps — looks like a real keyboard */
.term-line {
  display: inline-block;
  width: 100%;
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: termType var(--td, .55s) steps(var(--steps, 22), end) forwards;
  animation-delay: calc(.9s + var(--i) * .42s);
}
.term-line.term-line-stream {
  animation-delay: 0s;
}
.term-line::after {
  content: "▍";
  position: absolute;
  margin-left: 0;
  color: var(--green-bright);
  opacity: 0;
  animation: termCaretShow .12s var(--ease-out) forwards calc(.9s + var(--i) * .42s),
             termCaretHide .12s var(--ease-out) forwards calc(.9s + var(--i) * .42s + var(--td, .55s));
}
@keyframes termType {
  to { clip-path: inset(0 0 0 0); }
}
@keyframes termCaretShow { to { opacity: 1; } }
@keyframes termCaretHide { to { opacity: 0; } }

/* hide the global trailing caret while typing animations play; keep it at the very end via the last line's caret feel */
.term-caret {
  animation-delay: calc(.9s + 16 * .42s);
  opacity: 0;
  animation: termFinalCaret .3s var(--ease-out) forwards calc(.9s + 16 * .42s);
}
@keyframes termFinalCaret { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .term-line { clip-path: none; animation: none; }
  .term-line::after { display: none; }
  .term-caret { animation: none; opacity: 1; }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* token colors — restrained, on-brand */
.tk-kw  { color: #ff7eb3; font-style: italic; }     /* final, true */
.tk-cls { color: #6cdca4; }                         /* Person, Filho, FlutterDev */
.tk-str { color: #f5d985; }                         /* 'Andrey...' */
.tk-num { color: #ffb886; }                         /* 34 */
.tk-key { color: #8fcaf0; }                         /* name, age, roles */
.tk-op  { color: rgba(244,237,228,0.6); }
.tk-p   { color: rgba(244,237,228,0.45); }
.tk-var { color: var(--paper); }
.tk-cm  { color: var(--text-mute); font-style: italic; }

/* =========================================================
   HERO MARKS — horizontal stat row across full width
   ========================================================= */
.hero-marks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--glass-border-2);
  border-bottom: 1px solid var(--glass-border-2);
  padding: 1.5rem 0;
  margin-top: 1rem;
}
.hero-marks-row .mark {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--glass-border-2);
}
.hero-marks-row .mark:first-child { padding-left: 0; }
.hero-marks-row .mark:last-child { border-right: none; padding-right: 0; }

@media (max-width: 720px) {
  .hero-marks-row { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .hero-marks-row .mark { border-right: none; padding: 0 0 1rem; border-bottom: 1px solid var(--glass-border-2); }
  .hero-marks-row .mark:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

.hero-title .middle-wrap {
  display: block;
  overflow: hidden;
  padding: 0 .05em .03em 0;
}
.hero-title .middle {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  opacity: 0.75;
  font-size: .82em;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) 0.4s forwards;
}

/* hero portrait — restrained Liquid Glass with the photo */
.hero-portrait {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.portrait-stack {
  position: relative;
  width: min(440px, 85vw);
  aspect-ratio: 4 / 5;
  transition: transform var(--dur) var(--ease-out);
  transform-style: preserve-3d;
  /* terminal floats over the left edge — visible overflow */
  overflow: visible;
}

.portrait-card {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.6),
    0 20px 40px -10px rgba(58, 143, 106, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.portrait-card img,
.portrait-card object.portrait-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
  z-index: 0;
  filter: contrast(1.02) saturate(0.92) brightness(0.96);
}
.portrait-card object.portrait-fallback { display: none; }

/* subtle vignette + warm/cool grade so the photo harmonizes */
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 30%, transparent 50%, rgba(8,8,12,0.5)),
    linear-gradient(180deg, transparent 60%, rgba(8,8,12,0.4));
  pointer-events: none;
  z-index: 1;
}

.portrait-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 32%);
  pointer-events: none;
  z-index: 3;
}
.portrait-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(160px circle at var(--gx, 30%) var(--gy, 25%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
  transition: opacity var(--dur);
}

/* a single, refined floating chip — no chip-clutter */
.float-chip {
  position: absolute;
  z-index: 5;
  font-family: var(--mono);
  font-size: .68rem;
  padding: .55rem .85rem;
  background: rgba(8, 8, 12, 0.65);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: .5rem;
}
.fc-flutter { top: -1.25rem; left: -1.5rem; }
.fc-status  { bottom: -1rem; right: -1.25rem; color: var(--green-bright); border-color: var(--green-edge); background: rgba(8,8,12,0.7); }
/* hide cluttering chips from previous design */
.fc-loc, .fc-stack { display: none; }

@media (max-width: 600px) {
  .fc-flutter { left: -.5rem; top: -.75rem; }
  .fc-status  { right: -.5rem; bottom: -.5rem; }
}

.portrait-shadow,
.orbit { display: none; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.line-down {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--paper), transparent);
  animation: dropline 1.6s var(--ease) infinite;
}
@keyframes dropline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   PILARES — quem eu sou (10 layered pillars)
   ========================================================= */

.pilares-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.pilar {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--glass-border-2);
  transition: padding var(--dur) var(--ease), background var(--dur);
}
.pilar:last-child { border-bottom: 1px solid var(--glass-border-2); }
.pilar:hover { padding-left: 2.5rem; background: var(--glass-bg); }
.pilar:hover .pilar-name { color: var(--green-bright); }

.pilar-num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--text-mute);
}
.pilar-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
  transition: color var(--dur);
}
.pilar:nth-child(odd) .pilar-name { font-style: italic; }
.pilar-tag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: lowercase;
  color: var(--green-bright);
  padding: .25rem .6rem;
  border: 1px solid var(--green-edge);
  border-radius: 999px;
  background: var(--green-soft);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .pilar { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 1rem; }
  .pilar-tag { grid-column: 2; justify-self: start; margin-top: .35rem; }
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
  position: relative;
  z-index: 5;
  margin: 0 var(--pad-x);
  border-radius: 999px;
  padding: .85rem 0;
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, .85rem + .7vw, 1.4rem);
  font-weight: 300;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 1.5rem; padding-left: 1.5rem;
  animation: ticker 60s linear infinite;
}
.marquee-track span:not(.dot-sep) { color: var(--paper); }
.dot-sep { color: var(--green-bright); font-size: .5em; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */

.section {
  position: relative;
  z-index: 5;
  padding: var(--section-y) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.section-num {
  align-self: start;
  background: transparent;
  border: 1px solid var(--green-edge);
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .65rem;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
  color: var(--paper);
}
.section-title em {
  font-style: italic;
  color: var(--green-bright);
  font-weight: 400;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* =========================================================
   SOBRE
   ========================================================= */

.sobre-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.5rem;
}
@media (max-width: 880px) { .sobre-grid { grid-template-columns: 1fr; } }

.sobre-bio p { margin: 0 0 1.25rem; max-width: 60ch; }
.sobre-bio .big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.sobre-bio .big strong {
  font-style: italic;
  font-weight: 400;
  color: var(--green-bright);
}
.sobre-bio strong { color: var(--paper); font-weight: 500; }
.sobre-bio .muted { color: var(--text-dim); margin-bottom: 0; }

.sobre-side { display: flex; flex-direction: column; gap: 1.5rem; }

.identity .ident-title {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--text-mute);
}
.ident-list { list-style: none; margin: 0; padding: 0; }
.ident-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--glass-border-2);
  font-size: .88rem;
}
.ident-list li:last-child { border-bottom: none; }
.ident-list span { color: var(--text-dim); }
.ident-list b { font-weight: 500; color: var(--paper); }
.ident-list .green { color: var(--green-bright); }

.mini-cta { text-align: left; }
.mini-cta-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.mini-cta-text {
  margin: .25rem 0 1rem;
  font-size: .88rem;
  color: var(--text-dim);
}
.mini-cta-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--green-bright);
  letter-spacing: .04em;
  transition: gap var(--dur);
}
.mini-cta-link:hover { gap: .8rem; }

.green { color: var(--green-bright); }

/* =========================================================
   SERVICES
   ========================================================= */

.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .serv-grid { grid-template-columns: 1fr; } }

.serv-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}
.serv-card:hover { background: var(--glass-bg-strong); }
.serv-card.highlight { background: rgba(84, 181, 133, 0.04); border-color: var(--green-edge); }
.serv-tag {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-bright);
  padding: .25rem .55rem;
  background: var(--green-soft);
  border: 1px solid var(--green-edge);
  border-radius: 999px;
}
.serv-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border-2);
  margin-bottom: 1.25rem;
  color: var(--paper);
}
.serv-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.serv-card p {
  margin: 0 0 1.25rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 50ch;
}
.serv-list {
  list-style: none;
  margin: auto 0 0; padding: 0;
}
.serv-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.25rem;
  font-size: .82rem;
  color: var(--text);
  border-top: 1px solid var(--glass-border-2);
}
.serv-list li:first-child { border-top: 1px solid var(--glass-border-2); }
.serv-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-family: var(--mono);
}

/* =========================================================
   PROJETOS — bento, refined
   ========================================================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.bento-item {
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}
.bento-item:hover { background: var(--glass-bg-strong); }
.bento-lg { grid-column: span 4; grid-row: span 2; }
.bento-md { grid-column: span 3; grid-row: span 1; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-item { grid-column: span 2; }
  .bento-lg { grid-column: span 4; }
  .bento-md { grid-column: span 4; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item, .bento-lg, .bento-md { grid-column: span 1; min-height: 200px; }
}

.bento-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-bright);
  align-self: flex-start;
  padding: .25rem .55rem;
  background: var(--green-soft);
  border: 1px solid var(--green-edge);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.bento-item h3 {
  margin: 0 0 .55rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, .95rem + .35vw, 1.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.bento-lg h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.bento-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.55;
  max-width: 55ch;
}

.bento-meta {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border-2);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-mute);
}
.bento-link {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--green-bright);
  transition: color var(--dur);
}
.bento-link:hover { color: var(--paper); }
.inline-link {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: var(--green-edge);
  text-underline-offset: 3px;
  transition: color var(--dur);
}
.inline-link:hover { color: var(--paper); }

.bento-orb {
  position: absolute;
  right: -150px; bottom: -150px;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bento-orb.orb-pink { background: radial-gradient(circle, rgba(84, 181, 133, 0.18), transparent 60%); }

/* =========================================================
   LIVROS
   ========================================================= */

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .books-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .books-grid { grid-template-columns: 1fr; } }

.book-card {
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: transform var(--dur) var(--ease-out);
}

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--c1, #1a3a2a), var(--c2, #08080c));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.25rem;
  color: var(--paper);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out);
}
.book-card:hover .book-cover { transform: translateY(-4px); }
.book-cover.real-cover {
  padding: 0;
  background: var(--ink);
}
.book-cover.real-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bc-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.18);
}
.bc-badge-orange {
  background: rgba(255, 138, 61, 0.16);
  color: #ffb886;
  border-color: rgba(255, 138, 61, 0.38);
}
.bc-coin {
  position: absolute;
  right: -.2em; bottom: -.15em;
  font-family: var(--serif);
  font-size: 14rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 138, 61, 0.18);
  pointer-events: none;
  line-height: 1;
}
.book-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 8px; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 0% 0%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.bc-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + .7vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.bc-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: .82rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.78);
  margin-top: auto;
}
.bc-author {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: .8rem;
}

.book-meta h3 {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.book-meta p {
  margin: 0 0 .9rem;
  font-size: .86rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.book-meta em { font-style: italic; color: var(--text-mute); }

.book-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--green-bright);
  transition: gap var(--dur);
}
.book-link:hover { gap: .55rem; }

/* =========================================================
   YOUTUBE
   ========================================================= */

.yt-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 980px) { .yt-grid { grid-template-columns: 1fr; } }

.yt-feature { display: flex; flex-direction: column; gap: 1.25rem; }

.yt-channel {
  display: flex; align-items: center; gap: .9rem;
}
.yt-avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,0,0,0.3);
}
.yt-name { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--paper); letter-spacing: -0.005em; }
.yt-handle { display: block; font-family: var(--mono); font-size: .68rem; color: var(--text-dim); letter-spacing: .04em; }

.yt-headline {
  margin: .5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.yt-text {
  margin: 0;
  color: var(--text-dim);
  max-width: 50ch;
  line-height: 1.6;
}

.yt-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: block;
  transition: transform var(--dur) var(--ease-out);
  padding: 0;
}
.yt-thumb-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  z-index: 0;
}
.yt-thumb-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 30% 20%, rgba(84,181,133,0.18), transparent 60%);
}
.yt-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}
.yt-thumb:hover .yt-thumb-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 0, 0, 0.85);
}
.yt-thumb-meta {
  position: absolute;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  z-index: 2;
  display: flex; flex-direction: column; gap: .25rem;
  color: var(--paper);
}
.yt-thumb-cat {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.yt-thumb-title {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.yt-thumb-views {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--text-dim);
  letter-spacing: .04em;
  margin-top: .2rem;
}

.yt-thumb-badge {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .25rem .55rem;
  border-radius: 6px;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.yt-thumb.hot .yt-thumb-badge {
  background: linear-gradient(135deg, #54b585, #1bb56b);
  color: #002b16;
  box-shadow: 0 4px 14px rgba(84, 181, 133, 0.45);
}

.yt-thumb-time {
  position: absolute;
  bottom: .8rem; right: .8rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: .65rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  letter-spacing: .03em;
}

.yt-thumb-cta {
  display: grid;
  place-items: center;
}
.yt-cta-inner {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center;
  color: var(--paper);
}
.yt-cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--paper);
}
.yt-cta-sub {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.yt-thumb-cta .yt-thumb-play { display: none; }

/* =========================================================
   IMPRENSA
   ========================================================= */

.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.press-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--glass-border-2);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: padding var(--dur) var(--ease), background var(--dur);
}
.press-item::before { content: none; }
.press-item:last-child { border-bottom: 1px solid var(--glass-border-2); }
.press-item:hover { padding-left: 2rem; background: var(--glass-bg); }

.press-source {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.press-title {
  font-family: var(--serif);
  font-size: clamp(1rem, .95rem + .25vw, 1.2rem);
  color: var(--paper);
  line-height: 1.3;
  letter-spacing: -0.005em;
  transition: color var(--dur);
}
.press-item:hover .press-title { color: var(--green-bright); }
.press-date {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-mute);
}

@media (max-width: 700px) {
  .press-item { grid-template-columns: 1fr; gap: .35rem; }
}

/* =========================================================
   TIMELINE — flatter, more editorial
   ========================================================= */

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--glass-border-2);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.timeline li::before { content: none; }
.timeline li:last-child { border-bottom: 1px solid var(--glass-border-2); }

@media (max-width: 720px) {
  .timeline li { grid-template-columns: 1fr; gap: .35rem; }
}

.t-year {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--green-bright);
  letter-spacing: .08em;
}

.timeline h3 {
  margin: 0 0 .25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--paper);
}
.timeline p { margin: 0; color: var(--text-dim); font-size: .88rem; }

/* =========================================================
   CONTATO
   ========================================================= */

.contact-title {
  display: flex; flex-direction: column;
  font-size: clamp(2.5rem, 1.4rem + 4.5vw, 5.5rem);
}
.contact-title .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--green-bright);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 880px) { .contato-grid { grid-template-columns: 1fr; } }

.contato-info { padding: 2.25rem; }

.contato-lead {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem);
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: -0.005em;
}

.contato-list { display: flex; flex-direction: column; }

.contato-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border-2);
  font-family: var(--mono);
  font-size: .82rem;
  transition: padding var(--dur) var(--ease), color var(--dur);
}
.contato-item:last-child { border-bottom: 1px solid var(--glass-border-2); }
.contato-item:hover { padding-left: .5rem; color: var(--green-bright); }
.contato-item:hover .ci-arrow { transform: translate(4px, -4px); color: var(--green-bright); }

.ci-lbl { color: var(--text-mute); text-transform: uppercase; letter-spacing: .18em; font-size: .65rem; }
.ci-val { color: var(--paper); }
.ci-arrow { color: var(--text-mute); transition: transform var(--dur) var(--ease-out), color var(--dur); }

.contato-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: 2rem;
}
.contato-form label {
  display: flex; flex-direction: column; gap: .4rem;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contato-form label.full { grid-column: span 2; }

.contato-form input,
.contato-form textarea,
.contato-form select {
  font: inherit;
  font-family: var(--sans);
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border-2);
  border-radius: 10px;
  padding: .85rem 1rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--dur), background var(--dur);
}
.contato-form input::placeholder,
.contato-form textarea::placeholder { color: var(--text-mute); }
.contato-form input:focus,
.contato-form textarea:focus,
.contato-form select:focus {
  border-color: var(--green-edge);
  background: rgba(84, 181, 133, 0.04);
}

.big-btn { grid-column: span 2; padding: 1.05rem; justify-content: center; }
.form-status { grid-column: span 2; margin: 0; font-family: var(--mono); font-size: .76rem; color: var(--green-bright); min-height: 1em; }

/* =========================================================
   WHATSAPP CTA — replaces the cosmetic form
   ========================================================= */
.whatsapp-cta {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 1.25rem + 1vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.whatsapp-cta::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.16), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.whatsapp-cta > * { position: relative; z-index: 1; }

.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wa-headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.wa-headline em {
  font-style: italic;
  color: #25D366;
  font-weight: 400;
}

.wa-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 42ch;
}

.wa-btn {
  margin-top: .25rem;
  align-self: stretch;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  padding: 1.15rem 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .04em;
  font-weight: 500;
  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.wa-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2bdf6f, #14a18f);
  box-shadow:
    0 18px 40px rgba(37, 211, 102, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}
.wa-btn svg { flex-shrink: 0; }

.wa-alt {
  margin-top: .25rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.wa-alt a {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: var(--green-edge);
  text-underline-offset: 3px;
  transition: color var(--dur);
}
.wa-alt a:hover { color: var(--paper); }

/* =========================================================
   FOOTER
   ========================================================= */

.foot {
  position: relative;
  z-index: 5;
  padding: 2rem var(--pad-x) 0;
  margin-top: var(--section-y);
  overflow: hidden;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-mute);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border-2);
}
.foot-brand { color: var(--paper); }
.foot-coord { color: var(--text-dim); }

.foot-big {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 1rem + 14vw, 18rem);
  line-height: .85;
  letter-spacing: -0.045em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(244,237,228,0.5) 0%, transparent 80%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: -0.2em;
  user-select: none;
  text-align: center;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-split] .char { transform: none; }
  .hero-title .surname { transform: none; }
}
