/* nayaramarques.com: one stylesheet for every page.
   Values come from the Figma style guide (file eCgWU0h2nDbO2uS5MILZYQ, page "Style guide", node 10:2).
   Only the tokens below are used; CLAUDE.md lists the rules. */

@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Colour */
  --paper: #faf8f4;
  --ink: #111111;
  --text: #3d3d3d;
  --muted: #696969;
  --line: #e2ded6;
  --slot: #efebe4;
  --star: #ca0606;
  --signal: #2f54c4; /* the blue of the Home headline's warp hover only (Nayara 2026-11-05) */
  --white: #ffffff;

  /* Type */
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: 400 56px/60px var(--serif);
  --title: 400 32px/38px var(--serif);
  --subtitle: 400 22px/28px var(--serif); /* section titles inside a chapter (Nayara 2026-11-08) */
  --lead: 400 14px/22px var(--sans);
  --body: 400 14px/22px var(--sans);
  --body-medium: 500 14px/22px var(--sans);
  --small: 400 13px/20px var(--sans);
  --label: 500 13px/20px var(--sans);
  --stat-label: 600 10px/14px var(--sans);

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* Grid: 1040 content, a 336 rail and a 688 text column */
  --content: 1040px;
  --rail: 336px;
  --column: 688px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* A line break written into a lead is for wide screens; on phones the text wraps on its own (Nayara 2026-11-08). */
@media (max-width: 640px) { .lead br { display: none; } }

/* Phones: one smaller step for the two serif sizes. */
@media (max-width: 640px) {
  :root {
    --display: 400 40px/44px var(--serif);
    --title: 400 28px/34px var(--serif);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); font: var(--label); z-index: 10; text-decoration: none; }
.skip:focus { top: var(--s3); }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Text styles */
.display { font: var(--display); letter-spacing: -0.01em; color: var(--ink); max-width: 888px; text-wrap: balance; }
.title { font: var(--title); letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.subtitle { font: var(--subtitle); letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.lead { font: var(--lead); color: var(--text); }
.small { font: var(--small); }
.label { font: var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* Link: ink, medium, an arrow that moves */
.link { font: var(--body-medium); color: var(--ink); text-decoration: none; display: inline-flex; gap: 0; }
.link--small { font: var(--small); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) 0; gap: var(--s4); }
.nav__name { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--star); text-decoration: none; white-space: nowrap; }
.nav__name svg { width: 16px; height: 16px; flex: none; }
/* Home: the nav stays on top and the name fades in once the hero's name has scrolled under it (Nayara 2026-11-05) */
.head--sticky { position: sticky; top: 0; z-index: 8; background: var(--paper); }
.nav__name span { transition: opacity 300ms var(--ease); }
.nav[data-name-off]:not([data-open]) .nav__name span { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nav__name span { transition: none; } }
.nav__links { display: flex; gap: var(--s5); }
.nav__links a { font: var(--body); color: var(--muted); text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
@media (max-width: 640px) {
  .nav__links { gap: var(--s3); }
}
.nav__toggle, .nav__reach { display: none; }
/* Phones: the name and a menu button; the menu opens over the page, with the links large (Figma: Nav · Mobile, Menu open · Mobile) */
@media (max-width: 560px) {
  .nav { padding: 20px 0; }
  .nav__toggle { position: relative; z-index: 11; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 24px; padding: 0 3px; background: none; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }
  .nav__toggle span { display: block; width: 18px; height: 2px; flex: none; background: var(--ink); transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
  .nav[data-open] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav[data-open] .nav__name { position: relative; z-index: 11; }
  .nav__links { display: none; position: fixed; inset: 0; z-index: 10; flex-direction: column; gap: 0; padding: 96px var(--gutter) var(--s6); background: var(--paper); overflow-y: auto; }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links > a { font: var(--title); color: var(--ink); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .nav__links > a .icon { width: 20px; height: 20px; vertical-align: -1px; }
  /* Email and LinkedIn: two equal buttons, outlined in ink, at the foot of the open menu (Nayara 2026-11-06) */
  .nav__reach { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: auto; padding-top: var(--s6); }
  .nav__reach a { display: flex; align-items: center; justify-content: center; height: var(--s6); border: 1px solid var(--ink); border-radius: 2px; font: var(--body-medium); color: var(--ink); text-decoration: none; }
  .nav__reach a:active { background: var(--ink); color: var(--paper); }
}
html[data-menu] { overflow: hidden; }
/* Phones: the nav stays on top on every page, so the menu is always in reach; the case index bar slides out from under it (Nayara 2026-11-06) */
@media (max-width: 560px) {
  header.wrap { position: sticky; top: 0; z-index: 10; background: var(--paper); }
  html .ix { top: 64px; padding-top: 0; }
}

/* Footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s4); border-top: 1px solid var(--line); padding: var(--s4) 0 var(--s7); font: var(--small); color: var(--muted); }
.foot__links { display: flex; gap: var(--s4); }
.foot__links a { color: var(--ink); text-decoration: none; }

/* Page hero (about, contact, 404, cases) */
.hero { padding: var(--s8) 0 var(--s7); }
.hero__head { display: flex; flex-direction: column; gap: var(--s3); }
.hero .lead { padding: var(--s4) 0 var(--s5); }
.hero__links { display: flex; flex-wrap: wrap; gap: var(--s5); }
.case-hero { display: flex; flex-direction: column; gap: 60px; padding: var(--s8) 0 var(--s7); }
.case-hero .lead { padding: var(--s4) 0 var(--s5); max-width: var(--content); }
/* Hero text block: title, lead and facts share one 745 width (Figma: AI platform case, Nayara 2026-11-05) */
.case-hero .hero__head, .case-hero .case-lead, .case-hero .facts { max-width: 745px; }
/* Desktop: the head, lead and facts are centred on the page (Nayara 2026-11-05) */
@media (min-width: 641px) {
  .case-hero .hero__head, .case-hero .case-lead { margin-inline: auto; text-align: center; }
  .case-hero .meta { justify-content: center; }
  .case-hero .facts { margin-inline: auto; }
}
.meta { display: flex; flex-wrap: wrap; column-gap: var(--s2); font: var(--body); color: var(--muted); }
.meta__who { display: contents; }
.meta__co { font: var(--body-medium); color: var(--ink); }
.meta__yr { color: var(--ink); }
@media (max-width: 640px) {
  .hero, .case-hero { padding-top: var(--s7); }
  .case-hero { gap: var(--s6); }
}


/* Facts under a case lede (option E, Nayara 2026-11-08): a filled panel, Role and For side by side, What I did across the bottom as badges */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--slot); border-radius: 4px; text-align: left; }
.facts > div { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s4); }
.facts > div + div { border-left: 1px solid var(--line); }
.facts > .facts__did { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
.facts dt { font: var(--stat-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts__did ul { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s1) 0 0; padding: 0; list-style: none; }
/* Badges: the body text on a paper fill (Nayara 2026-11-08) */
.facts__did li { font: var(--body); color: var(--ink); background: var(--paper); border-radius: 4px; padding: 0 var(--s2); }
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}


/* Cover: the case's story as one picture, revealed once, with its step bar */
.cover { padding-bottom: var(--s7); }
.cover__pic { position: relative; }
.cover__pic img { width: 100%; }
.cover__slice { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.cover__slice img { position: absolute; top: 0; max-width: none; height: auto; }
.cover__erase { position: absolute; top: 0; height: auto; max-width: none; pointer-events: none; overflow: visible; }
.cover__erase path { fill: none; stroke: var(--paper); stroke-width: 6; }
.cover__erase .cover__erase-head { stroke-width: 5; stroke-linecap: round; }
.cover__ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cover__ink path { fill: none; stroke: var(--ink); stroke-width: 2; }
.cover__ink .cover__draw--mask { stroke: var(--white); stroke-width: 8; }
.cover__ink .cover__draw--grey { stroke-opacity: .28; }
.cover__ink .cover__head { stroke-linecap: round; stroke-linejoin: round; }
.cover .bar { margin-top: var(--s3); }

/* Case body: a contents rail on the left, the text column on the right */
.case-body { display: grid; grid-template-columns: var(--rail) minmax(0, var(--column)); gap: var(--s3); padding-bottom: var(--s8); }
.toc { position: sticky; top: var(--s8); align-self: start; display: flex; flex-direction: column; gap: var(--s2); max-width: 248px; }
.toc ol { display: flex; flex-direction: column; gap: var(--s2); }
.toc a { display: flex; gap: var(--s2); font: var(--body); color: var(--muted); text-decoration: none; transition: color 200ms ease-out; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); font: var(--body-medium); }
.toc a[aria-current] span:last-child { font-weight: 600; }
.toc a span:first-child { flex: none; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .case-body { grid-template-columns: minmax(0, 1fr); max-width: var(--column); margin: 0 auto; }
  .toc { display: none; }
}

.chapters { display: flex; flex-direction: column; gap: var(--s6); min-width: 0; }
.chapter { display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: var(--s6); min-width: 0; }
.chapter__head { display: flex; flex-direction: column; gap: var(--s2); }
.chapter p { max-width: var(--column); }
.chapter .subtitle { margin-top: var(--s3); max-width: var(--column); }
.chapter .fig + .subtitle { margin-top: 0; }
.dots { display: flex; flex-direction: column; gap: var(--s3); }
.dots li { padding-left: 14px; position: relative; }
.dots li::before { content: "·"; position: absolute; left: 0; color: var(--ink); font-weight: 600; }

/* Banner (Nayara 2026-11-06): the hatched card from the covers, for a phase's output and for the NDA note. An icon, a label, one paragraph. */
.banner { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px solid var(--ink); border-radius: 2px; background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 8px), var(--slot); font: var(--body); color: var(--text); }
.banner__icon { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s2); }
.banner .label { color: var(--ink); }

/* A link inside case prose or a banner: the thin underline of the site's links */
.home-hero .lead a, .chapter p a:not(.link), .chapter li a, .chapter .subtitle a, .banner p a:not(.link) { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.home-hero .lead a:hover, .chapter p a:not(.link):hover, .chapter li a:hover, .chapter .subtitle a:hover, .banner p a:not(.link):hover { color: var(--ink); }

/* Figures sit inside the text column and scale down whole; nothing is ever cut. */
.fig { margin: var(--s5) 0 var(--s6); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.fig__pic { position: relative; border-radius: 4px; overflow: hidden; }
.fig__pic--slot { background: var(--slot); }
.fig__pic img { width: 100%; }
.fig figcaption { font: var(--small); color: var(--muted); }
.fig .bar { margin-top: var(--s2); }
.fig--wide { margin: 0 0 var(--s7); }

/* Two screenshots in one figure, one above the other, each under its label (design system case: components only and the framework) */

/* Code excerpts (design system case): the small size in the system's monospace face, on the slot ground. A long line wraps; nothing is cut. */
.code { margin: 0; padding: var(--s4); border-radius: 4px; background: var(--slot); color: var(--ink); font: var(--small); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code code { font: inherit; }
/* Phones: code keeps its lines and scrolls inside the block, like a wide table */
@media (max-width: 640px) { .code { padding: var(--s3); white-space: pre; overflow-wrap: normal; overflow-x: auto; contain: inline-size; } }

/* Demo stage: drawn at its design size, scaled to the column */
.demo { position: relative; overflow: hidden; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.win { position: absolute; overflow: hidden; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.layer { position: absolute; background-repeat: no-repeat; }
.clip { position: absolute; overflow: hidden; }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; z-index: 5; pointer-events: none; }
.ring { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; z-index: 4; pointer-events: none; }

/* Step bar: a 2px track, the played part in ink, a tick at each step start, then "n / N" and the step name. No timing. */
.bar { position: relative; height: 30px; }
.bar__track { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.bar__fill { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.bar__tick { position: absolute; top: -3px; width: 1px; height: 8px; background: var(--muted); }
.bar__text { position: absolute; left: 0; top: 10px; display: flex; gap: 0; font: var(--small); white-space: nowrap; }
.bar__n { color: var(--muted); min-width: 40px; font-variant-numeric: tabular-nums; }
.bar__name { color: var(--ink); }
.bar[hidden] { display: none; }

/* Stats: a big serif number over a small caps label */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); border-top: 1px solid var(--line); padding: var(--s4) 0 0; margin: var(--s3) 0; }
.stats--one { grid-template-columns: minmax(0, 1fr); }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__n { font: 400 56px/56px var(--serif); letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 640px) { .stat__n { font: var(--display); } }
@media (max-width: 360px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat__label { font: var(--stat-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 220px; }

/* Table (Lune voice) */
.table { width: 100%; table-layout: fixed; border-collapse: collapse; font: var(--small); margin: var(--s3) 0; } /* every column the same width (Nayara 2026-11-08) */
.table th { font: var(--stat-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: left; } /* same label as the case facts (Nayara 2026-11-08) */
.table th, .table td { padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table td:first-child { color: var(--ink); }
.table-scroll { overflow-x: auto; contain: inline-size; }
/* Phones: a wide table scrolls from screen edge to screen edge; the first column still lines up with the text (Nayara 2026-11-08) */
@media (max-width: 640px) { .table { min-width: 560px; } .table-scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }

/* Next case */
.next { padding-bottom: var(--s8); }
.section-head { display: flex; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.section-head .label:first-child { color: var(--ink); }
.tabs { justify-content: flex-start; gap: var(--s5); }
.tab { display: inline-flex; align-items: center; gap: var(--s2); padding: 0; background: none; border: 0; cursor: pointer; }
.section-head .tab.label:first-child, .tab { color: var(--muted); }
.tab[aria-selected="true"], .section-head .tab.label[aria-selected="true"], .tab:hover, .section-head .tab.label:hover { color: var(--ink); }
.tab__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab { transition: color 200ms ease-out; }
/* The glide family (Nayara 2026-11-08): the tab marker and the hover underline of links share one curve. The underline draws in from the left and leaves to the right. */
.link, .foot__links a, .case-row__cta, .reach .title a { position: relative; }
.case-row__cta, .reach .title a { display: inline-block; }
.link::after, .foot__links a::after, .case-row__cta::after, .reach .title a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 600ms cubic-bezier(.65, 0, .35, 1); pointer-events: none; }
.foot__links a::after, .case-row__cta::after { bottom: -2px; }
.reach .title a::after { bottom: -1px; }
@media (hover: hover) { .link:hover::after, .foot__links a:hover::after, .case-row:hover .case-row__cta::after, .reach .title a:hover::after { transform: scaleX(1); transform-origin: left center; } }
.link:focus-visible::after, .foot__links a:focus-visible::after, .reach .title a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.tabs { position: relative; }
.tabs__bar { position: absolute; left: 0; bottom: -1px; width: 1px; height: 2px; background: var(--ink); transform-origin: left center; pointer-events: none; }
.tabs--ready .tabs__bar { transition: transform 700ms cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) { .tab, .tabs--ready .tabs__bar, .link::after, .foot__links a::after, .case-row__cta::after, .reach .title a::after { transition: none; } }
.tabs__panel[inert] { display: none; }
/* The sticky nav covers the top of the page: an anchor to the tabs lands below it (Nayara 2026-11-08). */
#work, #explorations, .tabs { scroll-margin-top: var(--s8); }
.tabs__intro { margin: var(--s5) 0 0; color: var(--muted); }
.next__row { display: grid; grid-template-columns: var(--rail) minmax(0, var(--column)); gap: var(--s3); padding-top: var(--s5); }
.next__row > div { display: flex; flex-direction: column; gap: var(--s3); }
.next__row .title a { text-decoration: none; }
@media (max-width: 1000px) { .next__row { grid-template-columns: minmax(0, 1fr); } }

/* Home */
.home-hero { padding: 140px 0; max-width: var(--column); }
.home-hero .display { max-width: 980px; }
.home-eyebrow { font: 400 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--star); padding-bottom: var(--s3); }
.home-eyebrow .ey { display: inline-block; overflow: hidden; vertical-align: top; }
.home-eyebrow .ey > span { display: inline-block; }
.home-eyebrow .ey--name { font-weight: 600; }
.home-eyebrow .ey--sep { font-weight: 500; }
/* Entrance: each part of the eyebrow rises out of its own line, one after the other, once (Nayara 2026-11-06) */
.js .home-eyebrow .ey > span { animation: ey-rise 700ms var(--ease) both; }
.js .home-eyebrow .ey--sep > span { animation-delay: 120ms; }
.js .home-eyebrow .ey:last-child > span { animation-delay: 240ms; }
@keyframes ey-rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .home-eyebrow .ey > span { animation: none; } }
.home-hero .lead { padding-top: var(--s4); }
.home-hero .hero__links { padding-top: var(--s5); }
@media (max-width: 640px) { .home-hero { padding: calc(var(--s7) + 20px) 0; text-align: center; } .home-hero .display, .home-hero .lead { margin-inline: auto; text-wrap: balance; } .home-hero .hero__links { justify-content: center; } .tabs { gap: 0; } .tabs .tab { flex: 1; justify-content: center; } }
/* Desktop: the Home hero is centred like the case heroes, at 745 (Nayara 2026-11-05) */
@media (min-width: 641px) {
  .home-hero { max-width: 1040px; margin-inline: auto; text-align: center; }
  .home-hero .display { margin-inline: auto; }
  .home-hero .lead { max-width: var(--column); margin-inline: auto; text-wrap: balance; }
  .home-hero .hero__links { justify-content: center; }
}

.work { padding-bottom: var(--s8); }

.case-row { position: relative; display: grid; grid-template-columns: minmax(0, 600px) 248px; justify-content: space-between; gap: var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.case-row__text { display: flex; flex-direction: column; gap: var(--s2); }
.case-row__text .case-row__meta { padding-bottom: var(--s2); }
.case-row__text .title a { text-decoration: none; }
.case-row__text .title a::after { content: ""; position: absolute; inset: 0; }
.case-row__text p { color: var(--text); }
.case-row__text .case-row__meta { color: var(--muted); }
.case-row__more { display: flex; flex-wrap: wrap; gap: var(--s2); font: var(--body); color: var(--muted); padding-top: var(--s2); }
.case-row__text .case-row__more { color: var(--muted); }
.case-row__cta { font-weight: 500; color: var(--ink); }
.case-row__thumb { width: 248px; height: 168px; background: var(--slot); }
.case-row__thumb img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); transition: filter 300ms ease-out; }
@media (hover: hover) {
  .case-row:hover .case-row__thumb img, .case-row:focus-within .case-row__thumb img { filter: none; }
}
@media (max-width: 760px) {
  .case-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .case-row__thumb { order: -1; width: 100%; max-width: 372px; height: auto; aspect-ratio: 248 / 168; }
}
/* Phones: cover, title, then company and field on the left and the years on the right over a hairline (Figma: Case row · Mobile) */
@media (max-width: 640px) {
  .case-row__thumb { max-width: none; }
  .case-row__text .case-row__meta { justify-content: space-between; gap: var(--s1) var(--s3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .case-row__text .case-row__meta { flex-wrap: nowrap; align-items: baseline; font: var(--small); }
  .case-row__meta .meta__co { font: 500 13px/20px var(--sans); }
  .case-row__meta .meta__who { display: flex; flex-wrap: wrap; column-gap: var(--s2); min-width: 0; }
  .case-row__meta .meta__yr { white-space: nowrap; }
  .case-row__meta .meta__sep--yr { display: none; }
  .case-row--case .case-row__text { display: contents; }
  .case-row--case .case-row__text .case-row__meta { order: 1; margin-top: -4px; padding-bottom: 20px; }
  .case-row--case .case-row__more { order: 2; padding-top: 0; margin-top: -4px; }
  .case-row--case { border-bottom: 0; }
  .case-row--case .title { font: var(--title); }
  .case-row--case .case-row__text > p:not(.case-row__more):not(.case-row__meta) { display: none; }
}

.home-about { display: flex; flex-direction: column; gap: var(--s5); padding-bottom: var(--s8); }
.home-about > .label { padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.home-about > div { display: flex; flex-direction: column; gap: var(--s3); max-width: var(--column); }

/* About and Contact: rows of a 160 meta column and a 600 text column, like the Home */
.about-hero { padding: var(--s8) 0 var(--s7); max-width: var(--column); }
.about-hero .lead { padding: var(--s4) 0 var(--s5); }
.portrait { display: grid; grid-template-columns: var(--rail) minmax(0, var(--column)); gap: var(--s3); padding-bottom: var(--s8); align-items: start; }
.portrait img { width: 100%; border-radius: 4px; }
.portrait > div { display: flex; flex-direction: column; gap: var(--s3); }
@media (max-width: 1000px) { .portrait { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--s4); } }
@media (max-width: 640px) { .portrait { grid-template-columns: minmax(0, 1fr); } .portrait img { max-width: 280px; } }
.block { display: grid; grid-template-columns: 160px minmax(0, 600px); gap: var(--s3); padding-bottom: var(--s8); }
.block > div { display: flex; flex-direction: column; gap: var(--s3); }
.block--head { display: block; padding-bottom: var(--s8); }
.rows > li, .reach > li { display: grid; grid-template-columns: 160px minmax(0, 600px); gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.rows > li > div { display: flex; flex-direction: column; gap: 0; }
.rows > li > div p:last-child { margin-top: var(--s3); }
.rows h3 { font: var(--body-medium); color: var(--ink); }
.reach > li > div { display: flex; flex-direction: column; gap: var(--s2); }
.reach .title a { text-decoration: none; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); padding-top: var(--s5); }
.tools h3 { font: var(--small); color: var(--muted); margin-bottom: var(--s2); }
.tools ul { display: flex; flex-direction: column; gap: var(--s1); }
.tools li { color: var(--ink); }
/* Languages on About: the same grid as Tools, the language in the title face (Nayara 2026-11-06, "quero destacar que eu falo 3 línguas") */
.tools--langs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools--langs li { font: var(--title); color: var(--ink); }
@media (max-width: 640px) { .tools.tools--langs { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); } }
@media (max-width: 640px) {
  .block, .rows > li, .reach > li { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
}
.hero .lead { max-width: 600px; }

/* Entrances: one time, soft. site.js adds .in when the element enters; without JS everything shows. */
.js [data-enter] { opacity: 0; transform: translateY(12px); }
.js [data-enter].in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
/* Home hero: soft rise, the four parts one after the other (Nayara 2026-11-08). */
.js .home-hero > [data-enter]:nth-child(2).in { transition-delay: 120ms; }
.js .home-hero > [data-enter]:nth-child(3).in { transition-delay: 240ms; }
.js .home-hero > [data-enter]:nth-child(4).in { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-enter] { opacity: 1; transform: none; }
  .case-row__thumb img, .toc a { transition: none; }
  html { scroll-behavior: auto; }
}

/* Diagrams drawn as SVG in the page (design system case) */
.fig__pic--pad { padding: var(--s6); }
.dia { display: block; width: 100%; height: auto; overflow: visible; }
.dia g, .dia circle { transform-box: fill-box; }
.dia #bd, .dia #wbd { transform-origin: center; }
.dia .flow { opacity: 0; animation: flow 3s linear infinite; }
@keyframes flow { 0% { transform: translateX(0); opacity: 0 } 8% { opacity: 1 } 92% { opacity: 1 } 100% { transform: translateX(540px); opacity: 0 } }
@media (max-width: 640px) { .fig__pic--pad { padding: var(--s4); } }
@media (prefers-reduced-motion: reduce) { .dia .flow { animation: none; display: none; } }

/* Phone demos (card insurance): three phones on one stage */
.phone { position: absolute; top: 48px; width: 229px; height: 495px; border-radius: 4px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.phone > .layer { left: 0; top: 0; width: 100%; height: 100%; background-size: 100% 100%; }
.ph-label { position: absolute; top: 559px; font: var(--stat-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Security plan diagram (Mesa) */
.sec .lb { fill: var(--muted); font: var(--stat-label); letter-spacing: 0.14em; }
.sec .lb.ink { fill: var(--ink); }
.sec .nt { fill: var(--muted); font: 400 11px var(--sans); }
.sec .sk { fill: var(--line); }
.sec .ticks path { stroke-dasharray: 12; }

/* Screen demos (Mesa): a column of screenshots that scrolls inside the window */

/* The download icon after a CV link */
.icon { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-left: var(--s1); }
.link .icon { align-self: center; }
/* Recorded flows (.vid): one video per clip, stacked; the phone clip sits on the slot ground */
.vid { position: relative; overflow: hidden; background: var(--slot); }
.vid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vid__v--phone { object-fit: contain; background: var(--slot); }
.vid__v + .vid__v { opacity: 0; }
/* A phone recording on its own: the phone at 92% of the figure's height, centred on the slot ground, 16 radius (Lune case) */
.vid--phone .vid__v { inset: 4% auto auto 50%; transform: translateX(-50%); width: auto; height: 92%; aspect-ratio: 780 / 1688; border-radius: 16px; object-fit: cover; }
/* About, experience: each company name links to its site */
.rows .muted a { text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
.rows .muted a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Warp hover (Home headline, Home case titles, case titles). A copy of the text, masked to a circle at the cursor, bends through an SVG filter (Nayara 2026-11-05, option A3) */
[data-warp], .case-hero h1 { position: relative; }
.warp__lyr { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--paper); color: inherit; -webkit-mask: radial-gradient(circle var(--r, 100px) at var(--x, 0) var(--y, 0), var(--ink) 35%, transparent 100%); mask: radial-gradient(circle var(--r, 100px) at var(--x, 0) var(--y, 0), var(--ink) 35%, transparent 100%); }
.case-row > .warp__lyr { color: var(--ink); white-space: normal; }
.warp__defs { position: absolute; width: 0; height: 0; }

/* Index bar on case pages below 1000px, where the contents rail hides (Nayara 2026-11-05, "Index bar" from the scroll styles) */
.ix { position: fixed; z-index: 9; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform 300ms var(--ease); }
.ix[data-on] { transform: none; }
.ix__in { display: flex; align-items: center; gap: var(--s3); height: 40px; }
.ix__label { font: var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); flex: none; }
.ix__n { font: var(--small); color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 44px; }
.ix__t { font: var(--small); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ix__fill { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1000px) { .ix { display: none; } }
@media (prefers-reduced-motion: reduce) { .ix { transition: none; } }

