/* eduvictor.com
   Direction: the quiet instrument. Type: Stack Sans Headline and Stack Sans Text. Colour: cool grey, cobalt.
   One column that starts at 22% of the width. No gradients, no shadows, no hairlines, no blur. */

@font-face { font-family: "Stack Sans Headline"; src: url("/fonts/stack-sans-headline.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("/fonts/stack-sans-text.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }

:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --ink: #0b0c0e;
  --muted: #5d6470;
  --accent: #1f2de6;
  --accent-ink: #ffffff;
  --night: #0b0c0e;
  --night-2: #17191e;
  --night-ink: #eef0f3;
  --night-muted: #a3a9b4;

  --m: 32px;          /* outer margin */
  --x: 22vw;          /* where the column starts */
  --w: 560px;         /* how wide the column is */
  --gap: 64px;
  --hs: clamp(2.75rem, 7vw, 7.25rem);   /* size of the name line on the first screen */
  --band: calc(var(--hs) * 1.5);
  --bw: clamp(160px, 17vw, 260px);       /* width of the head */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.625rem, 1rem + 1.7vw, 2.5rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);

  --head: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --text: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 899px) { :root { --m: 20px; --x: 20px; --gap: 40px; } }
@media (max-width: 639px) { :root { --hs: 13.2vw; --band: calc(var(--hs) * 2.5); --bw: min(46vw, 200px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, dt { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.part--field :focus-visible, .hero :focus-visible { outline-color: #ffffff; }

.skip { position: absolute; left: var(--m); top: -80px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); font: 500 var(--step-small)/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.97); }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; transition: color 180ms ease; }
.link:hover { color: var(--accent); }

/* ---------- the first screen: one band across the middle, the name on it, the head standing on it ---------- */
.hero { position: relative; height: 100svh; min-height: 540px; background: var(--night); color: var(--night-ink); overflow: hidden; }
.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--m); font-size: var(--step-small); font-weight: 500; }
.nav__mark { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; transition: color 180ms ease; }
.nav a:not(.btn):hover { color: #98a0ff; }
.hero .btn:hover { background: var(--night-ink); color: var(--night); }

.hero__band { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; height: var(--band); display: flex; align-items: center; padding: 0 var(--m); background: var(--night-2); }
.hero h1 { font: 300 var(--hs)/1 var(--head); letter-spacing: -0.03em; white-space: nowrap; }

.bust { position: absolute; z-index: 2; right: var(--m); bottom: calc(50% - var(--band) / 2); width: var(--bw); height: calc(var(--bw) * 1.25); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bust img, .bust canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bust img { object-fit: cover; transition: opacity 300ms ease; }
.bust canvas { opacity: 0; transition: opacity 300ms ease; }
.bust.is-live img { opacity: 0; }
.bust.is-live canvas { opacity: 1; }

.hero__foot { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 32px; padding: 0 var(--m) 30px; }
.hero__say { max-width: 30ch; font-size: var(--step-body); }
.hero__place, .hero__hint { font-size: var(--step-small); color: var(--night-muted); }
.hero__hint { justify-self: end; max-width: 30ch; text-align: right; }
.for-touch { display: none; }
@media (hover: none) { .for-pointer { display: none; } .for-touch { display: inline; } }

@media (max-width: 639px) {
  .hero h1 { white-space: normal; max-width: 6.2em; line-height: 0.98; }
  .nav__links a:not(.btn) { display: none; }
  .bust { bottom: calc(50% + var(--band) / 2); }
  .hero__foot { grid-template-columns: 1fr; gap: 10px; padding-bottom: 26px; }
  .hero__hint { justify-self: start; text-align: left; }
}

/* ---------- the parts: one column, and one quiet thing beside it ---------- */
.part { display: grid; grid-template-columns: var(--x) minmax(0, var(--w)) var(--gap) minmax(0, 1fr) var(--m); align-items: start; padding: 140px 0; }
.part__col { grid-column: 2; }
.part__side { grid-column: 4; padding-top: 0.5rem; }
.part--field { background: var(--accent); color: var(--accent-ink); }
h2 { font: 300 var(--step-head)/1.05 var(--head); letter-spacing: -0.022em; text-wrap: balance; }
.part__kind { margin-top: 14px; font: 400 var(--step-lead)/1.25 var(--text); }
.part__col > p { max-width: 34em; }
.part__kind + p { margin-top: 40px; }
.part__col > p + p { margin-top: 1.1em; }
.part__col > h2 + p:not(.part__kind) { margin-top: 40px; }
.part__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px !important; }
.part--field .btn { background: #ffffff; color: var(--accent); }
.part--field .btn:hover { background: var(--night); color: #ffffff; }

.figures { display: grid; gap: 40px; }
.figures > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.figures dd { font: 300 var(--step-head)/1 var(--head); letter-spacing: -0.022em; font-variant-numeric: lining-nums; }
.figures dt { font-size: var(--step-small); max-width: 26ch; color: var(--muted); }
.part--field .figures dt { color: #ffffff; }

.code__value { font: 300 var(--step-head)/1 var(--head); letter-spacing: 0.08em; font-variant-numeric: lining-nums tabular-nums; }
.code__label { margin: 8px 0 14px; max-width: 26ch; font-size: var(--step-small); color: var(--muted); }
.code__again { font-size: var(--step-small); font-weight: 500; }

.sign { margin-top: 2em !important; font: 500 var(--step-lead)/1.2 var(--head); letter-spacing: -0.01em; }
.sign span { display: block; margin-top: 6px; font: 400 var(--step-small)/1.4 var(--text); letter-spacing: 0; color: var(--muted); }

h3 { margin: 88px 0 20px; font: 500 var(--step-lead)/1.2 var(--head); letter-spacing: -0.012em; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 10px 0; text-decoration: none; transition: color 180ms ease, transform 300ms var(--ease); }
.row__name { font-weight: 500; }
.row__value { align-self: baseline; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; transition: color 180ms ease; }
.row__line { grid-column: 1 / -1; color: var(--muted); }
.row:hover { color: var(--accent); transform: translateX(6px); }
.row:hover .row__value { color: var(--accent); }

@media (max-width: 1099px) {
  .part { grid-template-columns: var(--x) minmax(0, var(--w)) minmax(var(--m), 1fr); row-gap: 112px; }
  .part__side { grid-column: 2; padding-top: 0; }
}
@media (max-width: 899px) {
  .part { grid-template-columns: var(--m) minmax(0, 1fr) var(--m); padding: 96px 0; }
  .figures { gap: 28px; }
}

/* ---------- reach: the same column, with the plain photo beside it ---------- */
.part--reach { padding-bottom: 96px; background: var(--night); color: var(--night-ink); }
.part--reach .row__value, .part--reach .face span { color: var(--night-muted); }
.part--reach .row:hover, .part--reach .row:hover .row__value { color: #98a0ff; }
.part--reach :focus-visible, .foot :focus-visible { outline-color: #ffffff; }
.part--reach .rows { margin-top: 36px; }
.face img { width: clamp(150px, 13vw, 190px); height: auto; aspect-ratio: 1; object-fit: cover; }
.face p { margin-top: 14px; font-weight: 500; }
.face span { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }

/* ---------- the last line ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; padding: 10svh var(--m) 30px; font-size: var(--step-small); background: var(--night); color: var(--night-muted); }
.foot ul { display: flex; gap: 24px; }
.foot a { color: var(--night-ink); text-decoration: none; transition: color 180ms ease; }
.foot a:hover { color: #98a0ff; }
.foot__end { text-align: right; }
@media (max-width: 899px) {
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 8svh var(--m) 24px; }
  .foot__end { text-align: left; }
}

/* ---------- motion: small and exact ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 500ms ease, transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .js.stalled .rise { opacity: 1; transform: none; }
  .code__value.is-new { animation: code-in 420ms var(--ease); }
  @keyframes code-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
