/* ==========================================================================
   Stefano Bettani - personal site
   Editorial ink-and-paper system with one signal colour.
   ========================================================================== */

:root {
  /* Brand: navy + copper, taken from the SB logo */
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --card: #ffffff;
  --ink: #18202a;
  --ink-2: #1f2834;
  --ink-3: #2c3644;
  --muted: #5b6270;
  --muted-dark: #a3abb8;
  --line: rgba(24, 32, 42, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #a0673f;
  --accent-deep: #84522f;
  --accent-light: #c28a5e;
  --accent-soft: #f4eee8;
  --highlight: rgba(160, 103, 63, 0.26);

  --serif: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
/* Headline emphasis = copper highlighter, not italics */
.kern { margin-left: -0.07em; }
h1 em, h2 em, h3 em { font-style: normal; background: linear-gradient(transparent 62%, var(--highlight) 62%); padding: 0 .04em; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 12px;
  font: 700 0.95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(160, 103, 63, .7); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: var(--paper-2); color: var(--ink); }
.btn--ghost:hover { background: #eceef1; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--small { padding: 10px 18px; font-size: 0.9rem; }
.btn--big { padding: 20px 30px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { height: 40px; width: auto; }
.brand__name { font-weight: 700; letter-spacing: -0.02em; }
.brand__phd { color: var(--muted); font-weight: 400; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 16px; }
}

/* ---------- Shared section heads ---------- */
section { position: relative; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 18px; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .method__intro h2, .about__copy h2, .contact h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -0.028em;
}
.section-head--light h2 em, .method__intro h2 em, .contact h2 em { background: linear-gradient(transparent 62%, rgba(194, 138, 94, .45) 62%); }
.section-lede { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(160, 103, 63, .12), transparent 62%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.8rem/1.4 var(--sans); color: var(--accent);
  padding: 8px 14px; border-radius: 999px; background: var(--accent-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 182, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); } }

.hero__title {
  margin: 28px 0 28px;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em;
}
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 590px; }
.hero__lede strong { color: var(--ink); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.creds { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.creds li { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 2px; }
.creds li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.creds strong { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; }
.creds span { font-size: 0.82rem; color: var(--muted); }

/* Answer-engine card */
.answer {
  margin: 0; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(17, 18, 20, .55), 0 0 0 1px rgba(17, 18, 20, .9);
  transform: rotate(1.2deg); position: relative;
}
.answer__bar { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line-dark); }
.answer__dots { display: flex; gap: 6px; }
.answer__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.answer__dots i:first-child { background: var(--accent-light); }
.answer__label { font: 500 0.75rem/1 var(--mono); color: var(--muted-dark); letter-spacing: .08em; text-transform: uppercase; }
.answer__q { display: flex; gap: 12px; align-items: flex-start; margin: 18px 4px; padding: 14px 16px; border-radius: 14px; background: var(--ink-2); }
.answer__q p { font-size: 0.98rem; }
.answer__qicon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .85rem; }
.answer__a { padding: 4px 6px 6px; }
.answer__text { font-size: 1rem; line-height: 1.65; color: #d9d5cc; min-height: 11.5em; }
.answer__text strong { color: #fff; background: linear-gradient(transparent 60%, rgba(194, 138, 94, .5) 60%); }
.answer__text sup { color: var(--accent-light); font: 700 0.68rem var(--mono); margin-left: 1px; }
.answer__text.is-typing::after { content: "▍"; color: var(--accent-light); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer__sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-dark); font: 500 0.75rem/1 var(--mono); color: var(--muted-dark); }
.chip b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); color: var(--paper); font-weight: 500; font-size: .65rem; }
.chip:first-child { border-color: rgba(194, 138, 94, .7); color: #fff; }
.chip:first-child b { background: var(--accent); }
.answer__cap { margin: 16px 4px 2px; padding-top: 14px; border-top: 1px dashed var(--line-dark); font-size: 0.88rem; color: var(--muted-dark); }
.answer__cap .mono { color: var(--accent-light); margin-right: 6px; }
.answer__cap em { color: #fff; }

/* Ticker */
.ticker { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { padding: 18px 28px; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.ticker__track span::after { content: "✦"; color: var(--accent); font-size: .8rem; margin-left: 56px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .answer { transform: none; max-width: 560px; }
}
@media (max-width: 640px) {
  .creds { grid-template-columns: 1fr 1fr; }
  .creds li, .creds li + li { padding: 16px 12px 16px 0; border-left: 0; }
  .creds li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__ctas .btn { width: 100%; }
  .answer__text { min-height: 15em; }
}

/* ---------- At a glance ---------- */
.glance { padding: 40px 0; border-bottom: 1px solid var(--line); }
.glance__grid { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.glance__title { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; padding-top: 4px; }
.glance__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; }
.glance__list dt { font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.glance__list dd { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.glance__updated { grid-column: 2; color: var(--muted); }
@media (max-width: 1000px) {
  .glance__grid { grid-template-columns: 1fr; }
  .glance__list { grid-template-columns: 1fr 1fr; }
  .glance__updated { grid-column: 1; }
}
@media (max-width: 560px) { .glance__list { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Numbers (dark) ---------- */
.numbers { background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 140px) 0; }
.section-head--light h2 { color: #fff; }
.numbers .kicker, .method .kicker, .contact .kicker { color: var(--accent-light); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { position: relative; padding: 36px 28px 8px 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pre num" "label label"; align-items: start; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.stat__pre { grid-area: pre; font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1.1; color: var(--accent-light); margin-right: 4px; }
.stat__num { grid-area: num; font-family: var(--serif); font-weight: 800; font-size: clamp(3rem, 5.6vw, 4.6rem); line-height: .95; letter-spacing: -0.05em; }
.stat:not(:has(.stat__pre)) .stat__num { grid-column: 1 / -1; }
.stat__num small { font-size: .45em; color: var(--accent-light); margin-left: 4px; letter-spacing: 0; }
.stat__label { grid-area: label; margin-top: 18px; color: var(--muted-dark); font-size: 0.95rem; max-width: 240px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 32px 16px 28px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-dark); }
}

.case {
  margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px); border-radius: 28px;
  background: linear-gradient(145deg, var(--ink-2), #15161a); border: 1px solid var(--line-dark);
}
.case__title { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.04em; }
.case__big { color: var(--accent-light); display: block; font-size: 1.9em; letter-spacing: -0.03em; line-height: .9; }
.case__sub { margin-top: 20px; color: var(--muted-dark); max-width: 440px; }
.case__viz { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.metric__top { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 500; }
.metric__top .mono { color: var(--muted-dark); font-size: .85rem; }
.bars { display: grid; gap: 8px; }
.bar { position: relative; height: 40px; border-radius: 10px; background: rgba(242, 238, 229, .05); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; transition: width 1.4s var(--ease); }
.bar--before::before { background: var(--ink-3); }
.bar--after::before { background: var(--accent); }
.is-visible .bar::before, .bar.is-visible::before { width: var(--w); }
.bar span { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 14px; font: 500 0.78rem/1 var(--mono); white-space: nowrap; }
.case__note { color: var(--accent-light); font-size: .85rem; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.engagements { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eng { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-dark); transition: border-color .3s, transform .3s var(--ease); }
.eng:hover { border-color: rgba(242, 238, 229, .35); transform: translateY(-3px); }
.eng__stat { font-family: var(--serif); font-weight: 800; letter-spacing: -0.04em; font-size: 2rem; line-height: 1; margin-bottom: 18px; }
.eng__stat small { font-size: .5em; color: var(--muted-dark); }
.eng h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.eng p:last-child { font-size: .92rem; color: var(--muted-dark); }
.eng--accent { background: var(--accent); border-color: var(--accent); }
.eng--accent .eng__stat small, .eng--accent p:last-child { color: rgba(255, 255, 255, .85); }
@media (max-width: 1000px) { .engagements { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .engagements { grid-template-columns: 1fr; } }

/* ---------- The shift ---------- */
.shift { padding: clamp(80px, 11vw, 140px) 0; }
.surfaces { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); counter-reset: s; }
.surface { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.surface + .surface { padding-left: 24px; border-left: 1px solid var(--line); }
.surface__n { color: var(--muted); }
.surface h3 { font-family: var(--serif); font-weight: 800; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.03em; }
.surface__tag { align-self: flex-start; padding: 5px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.surface p:not(.surface__tag) { color: var(--muted); font-size: .97rem; }
.surface__wins { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.surface__wins b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
  .surfaces { grid-template-columns: 1fr 1fr; }
  .surface, .surface + .surface { padding: 28px 20px 28px 0; border-left: 0; }
  .surface:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .surface:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .surfaces { grid-template-columns: 1fr; }
  .surface:nth-child(even) { padding-left: 0; border-left: 0; }
  .surface + .surface { border-top: 1px solid var(--line); }
}

/* ---------- Services ---------- */
.services { padding: clamp(80px, 11vw, 140px) 0; background: var(--paper-2); }
.services .card { border-color: transparent; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, .35); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 6px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.03em; }
.card > p { color: var(--muted); font-size: .97rem; }
.card ul { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card li { position: relative; padding-left: 20px; font-size: .9rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .66em; width: 10px; height: 1.5px; background: var(--accent); }
.card--feature { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--feature .card__icon { background: var(--accent); }
.card--feature .card__icon svg { stroke: #fff; }
.card--feature > p { color: var(--muted-dark); }
.card--feature ul { border-top-color: var(--line-dark); }
.card__badge { position: absolute; top: 28px; right: 28px; padding: 5px 10px; border-radius: 999px; background: rgba(194, 138, 94, .18); color: var(--accent-light); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px; } }

/* ---------- Method (dark) ---------- */
.method { background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 140px) 0; }
.method__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.method__intro { position: sticky; top: 110px; }
.method__intro > p:not(.kicker) { margin-top: 24px; color: var(--muted-dark); font-size: 1.1rem; max-width: 480px; }
.pull {
  margin: 40px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.02em; color: #fff;
}
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start;
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--ink-2);
  transition: border-color .3s;
}
.step:hover { border-color: var(--accent); }
.step__n { font-family: var(--serif); font-weight: 800; font-size: 3rem; line-height: .9; color: var(--accent-light); letter-spacing: -0.04em; }
.step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted-dark); }
@media (max-width: 900px) {
  .method__grid { grid-template-columns: 1fr; }
  .method__intro { position: static; }
  .step { grid-template-columns: 52px 1fr; padding: 24px; }
  .step__n { font-size: 3rem; }
}

/* ---------- About ---------- */
.about { padding: clamp(80px, 11vw, 140px) 0; }
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.portrait { position: sticky; top: 110px; display: grid; gap: 18px; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(160, 103, 63, .35), transparent 55%),
    linear-gradient(160deg, var(--ink-3), var(--ink));
}
.portrait__mono { position: absolute; inset: 0; margin: auto; width: 62%; height: auto; }
.portrait__frame img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.toptal {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.toptal__stars { grid-row: span 2; width: 56px; fill: #00c3ff; }
.toptal__title { font-weight: 700; color: #204ecf; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; line-height: 1.1; }
.toptal__by { font-size: .85rem; color: var(--muted); grid-column: 2; line-height: 1.1; }
.toptal__btn { grid-row: 1 / span 2; grid-column: 3; padding: 10px 16px; border-radius: 8px; background: #296bff; color: #fff; text-decoration: none; font-weight: 500; font-size: .88rem; white-space: nowrap; transition: background .2s; }
.toptal__btn:hover { background: #204ecf; }

.about__lede { margin-top: 28px; font-size: 1.25rem; line-height: 1.55; }
.about__copy > p + p { margin-top: 18px; color: var(--muted); }
.sub { margin: 56px 0 20px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }

.timeline { border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline__when { color: var(--accent); padding-top: 4px; font-weight: 700; }
.timeline h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.timeline__org { color: var(--muted); font-size: .92rem; margin: 2px 0 8px !important; }
.timeline li p:last-child { font-size: .97rem; }

.edu { border-top: 1px solid var(--ink); }
.edu li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.edu b { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--accent); margin-right: 4px; }
.edu span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 440px; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .toptal { grid-template-columns: auto 1fr; }
  .toptal__btn { grid-row: auto; grid-column: 1 / -1; text-align: center; margin-top: 10px; }
}

/* ---------- Between The Sales ---------- */
.bts { background: var(--accent-soft); color: var(--ink); padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.bts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bts .kicker { color: var(--accent); }
.bts h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.028em; margin-bottom: 22px; }
.bts p:not(.kicker) { font-size: 1.1rem; max-width: 520px; margin-bottom: 30px; color: var(--muted); }
.bts .btn--light { background: var(--ink); color: #fff; }
.bts .btn--light:hover { background: var(--ink-3); }
.pathway { display: grid; gap: 8px; counter-reset: p; }
.pathway li {
  counter-increment: p; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid rgba(160, 103, 63, .2);
  font-weight: 500; transition: background .3s, transform .3s var(--ease);
}
.pathway li::before { content: "0" counter(p); font: 700 .75rem var(--mono); color: var(--accent); }
.pathway li:hover { border-color: var(--accent); transform: translateX(6px); }
@media (max-width: 900px) { .bts__inner { grid-template-columns: 1fr; } }

/* ---------- Fit ---------- */
.fit { padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 6vw, 80px); }
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit__col { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--paper-2); }
.fit__col h3 { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 24px; }
.checks { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; font-size: 1.02rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .75rem;
}
.checks--alert li::before { content: "!"; background: var(--accent); font-weight: 700; }
@media (max-width: 800px) { .fit__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 11vw, 140px); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 1.2rem; font-weight: 300; transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details p { padding: 0 56px 26px 0; color: var(--muted); }
.faq details p b { color: var(--ink); }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 16px; }
  .faq details p { padding-right: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; padding: clamp(96px, 13vw, 170px) 0; text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1100px; height: 1100px; transform: translate(-50%, -45%);
  background: radial-gradient(circle, rgba(160, 103, 63, .4), transparent 60%); pointer-events: none;
}
.contact__inner { position: relative; }
.contact h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; }
.contact__lede { margin: 28px auto 0; max-width: 560px; font-size: 1.15rem; color: var(--muted-dark); }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.contact__meta { margin-top: 36px; color: var(--muted-dark); }
@media (max-width: 560px) { .contact__ctas .btn { width: 100%; white-space: normal; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 36px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer__name { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.footer__name img { height: 34px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Floating Toptal badge (official artwork, scaled down) ---------- */
.tt {
  --hex: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  --s: .7;
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: calc(212px * var(--s)); height: calc(235px * var(--s));
  font-family: var(--sans);
  filter: drop-shadow(0 18px 30px rgba(6, 30, 96, .3));
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tt.is-in { opacity: 1; transform: none; animation: tt-float 5s ease-in-out 1s infinite; }
.tt.is-hidden { display: none; }
@keyframes tt-float { 50% { transform: translateY(-6px); } }
.tt__h { display: inline-block; background: #25a9ef; padding: 6px; clip-path: var(--hex); transform: scale(var(--s)); transform-origin: top left; }
.tt__a {
  width: 200px; padding: 24px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #204ecf; text-align: center; clip-path: var(--hex);
  background:
    radial-gradient(circle at 20% -10%, #00c3ff -80%, #fff 30%),
    radial-gradient(circle at -20% 20%, #00c3ff -80%, #fff 30%),
    radial-gradient(circle at 70% 100%, #00c3ff -80%, #fff 30%),
    radial-gradient(circle at 120% 80%, #00c3ff -80%, #fff 30%);
  background-blend-mode: multiply;
}
.tt__b { margin: 0; font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: .01em; }
.tt__c { width: 120px; height: 1px; background: #25a9ef; }
.tt__d { font-size: 16px; margin-bottom: -6px; }
.tt__logo { width: 100px; }
.tt__f {
  display: inline-flex; align-items: center; justify-content: center; padding: 4px 20px; border-radius: 6px;
  background: #296bff; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.tt__f:hover { background: #204ecf; }
.tt__close {
  position: absolute; top: 2px; right: -4px; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font: 600 15px/1 var(--sans);
  opacity: 0; transition: opacity .2s;
}
.tt:hover .tt__close, .tt__close:focus-visible { opacity: 1; }
@media (hover: none) { .tt__close { opacity: 1; } }
@media (max-width: 640px) { .tt { --s: .48; right: 12px; bottom: 12px; } }
@media print { .tt { display: none; } }
