/* Daniel Queirolo · portfolio
   One family (Archivo, variable width) for everything: expanded + heavy for display,
   normal width for reading. Neutral greys, ink-black actions, one orange accent
   taken from the personal mark. Case cards carry each product's own color. */

:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #e9e9e6;
  --ink: #141414;
  --ink-2: #4a4a48;
  --ink-3: #6b6b68;
  --line: #dcdcd8;
  --accent: #d9531a;          /* orange from the dq mark, AA on light bg */
  --on-ink: #f6f6f4;
  --shadow: 0 1px 0 rgb(20 20 20 / .04), 0 18px 40px -24px rgb(20 20 20 / .28);

  --embarkei: #0e6f6b;
  --embarkei-ink: #f3fbfa;
  --baldio: #dfe6d3;
  --baldio-ink: #1d3a24;
  --navigator: #e7e5e0;
  --navigator-ink: #141414;

  --radius-card: 28px;
  --radius-tile: 18px;
  --radius-pill: 999px;

  --display: "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --surface: #1b1b1a;
    --surface-2: #232322;
    --ink: #f1f1ee;
    --ink-2: #c4c4bf;
    --ink-3: #a2a29d;
    --line: #2e2e2c;
    --accent: #ff7a3d;
    --on-ink: #121212;
    --shadow: 0 1px 0 rgb(0 0 0 / .3), 0 18px 40px -24px rgb(0 0 0 / .7);
    --embarkei: #0d5c59;
    --baldio: #26331f;
    --baldio-ink: #e4eed8;
    --navigator: #222220;
    --navigator-ink: #f1f1ee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111;
  --surface: #1b1b1a;
  --surface-2: #232322;
  --ink: #f1f1ee;
  --ink-2: #c4c4bf;
  --ink-3: #a2a29d;
  --line: #2e2e2c;
  --accent: #ff7a3d;
  --on-ink: #121212;
  --shadow: 0 1px 0 rgb(0 0 0 / .3), 0 18px 40px -24px rgb(0 0 0 / .7);
  --embarkei: #0d5c59;
  --baldio: #26331f;
  --baldio-ink: #e4eed8;
  --navigator: #222220;
  --navigator-ink: #f1f1ee;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior-x: none; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius-pill); }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.12; }
@media (max-width: 480px) {
  h1, h2 { font-variation-settings: "wdth" 108; }
  h1 { font-size: 2.2rem; }
  .case h3 { font-variation-settings: "wdth" 112; }
}
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.label {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--bh); padding: 0 26px;
  border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: 1rem; white-space: nowrap;
  font-variation-settings: "wdth" 112;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .4s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow-down { transform: translateY(3px); }

/* ---------- Floating pill nav (Jonny Czar pattern) ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 24px);
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav .nav-name { color: var(--ink); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -.01em; }
.nav .nav-cta { background: var(--ink); color: var(--on-ink); }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .nav { top: 10px; gap: 0; padding: 4px; }
  .nav a { padding: 0 12px; font-size: .86rem; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .nav .nav-name { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 128px 0; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero .lead { margin: 22px auto 0; text-align: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-photo {
  position: relative;
  width: min(440px, 82vw);
  aspect-ratio: 4 / 4.4;
  margin: 56px auto 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--surface-2);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%;
  filter: grayscale(1) contrast(1.08);
  transition: filter 1.2s var(--ease), transform 1.2s var(--ease);
}
.hero-photo:hover img { filter: grayscale(0) contrast(1); transform: scale(1.03); }

/* ---------- Highlights (Jonny's "Editors' choice" grid) ---------- */
.highlights { padding-block: 0 clamp(72px, 9vw, 112px); }
.highlights-inner {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.hl-lead { grid-row: span 2; display: flex; flex-direction: column; gap: 16px; }
.hl-lead h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.hl-lead p { color: var(--ink-2); max-width: 32ch; }
.hl { display: flex; flex-direction: column; gap: 10px; }
.hl-mark {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.hl-mark img { width: 100%; height: 100%; object-fit: contain; }
.hl-mark.text { background: var(--ink); color: var(--on-ink); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1rem; border: 0; }
.hl h3 { font-size: 1.18rem; }
.hl p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) {
  .highlights-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hl-lead { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .highlights-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Section heads ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Case cards ---------- */
.cases { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.case {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  color: var(--case-ink);
  background: var(--case-bg);
}
.case-wide { grid-column: 1 / -1; }
.case-embarkei { --case-bg: var(--embarkei); --case-ink: var(--embarkei-ink); }
.case-baldio { --case-bg: var(--baldio); --case-ink: var(--baldio-ink); }
.case-navigator { --case-bg: var(--navigator); --case-ink: var(--navigator-ink); }

.case-body { padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) 0; position: relative; z-index: 1; }
.case-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; margin-bottom: 20px; font-variation-settings: "wdth" 112; }
.case-brand svg, .case-brand img { width: 28px; height: 28px; }
.case h3 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; max-width: 14ch; }
.case p { margin-top: 18px; max-width: 46ch; opacity: .88; font-size: 1.05rem; }

.case-wide .case-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: end; }
.case-wide .case-body { padding-bottom: clamp(28px, 4vw, 48px); align-self: center; }

.case-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 36px 24px 0; flex: 1; }
.case-visual .phone {
  width: clamp(130px, 15vw, 200px);
  border-radius: 26px 26px 0 0;
  border: 6px solid #0f0f0f; border-bottom: 0;
  overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
  transition: transform .9s var(--ease);
  aspect-ratio: 375 / 600;
}
.case-visual .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-visual .phone:nth-child(1) { transform: translateY(42px) rotate(-4deg); }
.case-visual .phone:nth-child(2) { z-index: 2; }
.case-visual .phone:nth-child(3) { transform: translateY(42px) rotate(4deg); }
.case:hover .case-visual .phone:nth-child(1) { transform: translateY(26px) rotate(-6deg) translateX(-6px); }
.case:hover .case-visual .phone:nth-child(2) { transform: translateY(-10px); }
.case:hover .case-visual .phone:nth-child(3) { transform: translateY(26px) rotate(6deg) translateX(6px); }

.case-visual.photo { padding: 32px clamp(24px, 5vw, 64px) 0; }
.case-visual.photo img.cover {
  width: 100%; border-radius: var(--radius-tile) var(--radius-tile) 0 0;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.case:hover .case-visual.photo img.cover { transform: scale(1.025); }

/* bottom bar (Jonny's stats pill) */
.case-bar {
  position: relative; z-index: 3;
  margin: 0 clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
  padding: 14px 14px 14px clamp(18px, 3vw, 32px);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--case-ink) 12%, var(--case-bg));
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap;
}
.case-bar .facts { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; flex: 1; font-size: .92rem; line-height: 1.3; }
.case-bar .facts b { display: block; font-size: 1rem; font-variation-settings: "wdth" 115; }
.case-bar .facts span { opacity: .82; }
.case-bar .btn { --bh: 52px; background: var(--case-ink); color: var(--case-bg); margin-left: auto; }
.case-bar .btn:hover { background: var(--accent); color: #fff; }
.case-bar .btn[aria-disabled="true"] { cursor: default; opacity: .9; }
.case-bar .btn[aria-disabled="true"]:hover { background: var(--case-ink); color: var(--case-bg); }
.case-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

@media (max-width: 900px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case-wide .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-wide .case-body { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .case-bar { border-radius: 24px; padding: 16px; }
  .case-bar .btn { width: 100%; margin-left: 0; }
  .case-visual .phone { width: 31%; border-width: 4px; border-radius: 18px 18px 0 0; }
  .case-visual { gap: 8px; padding: 28px 12px 0; }
}

/* ---------- End-to-end strip ---------- */
.flow {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin;
}
.flow li {
  list-style: none; scroll-snap-align: start;
  background: var(--surface); border-radius: var(--radius-tile);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 12px; min-height: 250px;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s;
}
.flow li:hover { transform: translateY(-4px); border-color: var(--ink); }
.flow .step { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.05; }
.flow .tool { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.flow p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.flow li:nth-child(4) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.flow li:nth-child(4) p, .flow li:nth-child(4) .tool { color: color-mix(in srgb, var(--on-ink) 78%, transparent); }
.flow ol { padding: 0; margin: 0; display: contents; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 18px; font-size: 1.08rem; color: var(--ink-2); }
.about-text h2 { color: var(--ink); margin-bottom: 8px; }
.about-text strong { color: var(--ink); font-weight: 700; }
.facts-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; margin: 14px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.facts-list div { display: flex; flex-direction: column; gap: 2px; }
.facts-list dt { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.facts-list dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.about-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.about-photos figure { margin: 0; border-radius: var(--radius-tile); overflow: hidden; background: var(--surface-2); }
.about-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.about-photos figure:not(:first-child) { aspect-ratio: 1; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .facts-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Talks marquee ---------- */

/* ---------- Craft (graphic design & illustration) ---------- */
.craft { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.craft figure { margin: 0; border-radius: var(--radius-tile); overflow: hidden; background: var(--surface); position: relative; }
.craft figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.craft figure:hover img { transform: scale(1.04); }
.craft figcaption { padding: 14px 18px 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.craft figcaption b { color: var(--ink); display: block; font-size: 1rem; }
.craft .art { grid-column: span 2; }
.craft .art-media { aspect-ratio: 808 / 632; overflow: hidden; }
.logos {
  grid-column: 1 / -1;
  margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border-radius: var(--radius-tile); overflow: hidden;
  border: 1px solid var(--line);
}
.logos li { list-style: none; background: #fff; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.logos img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.logos li:hover img { transform: scale(1.06); }
@media (max-width: 900px) {
  .craft .art { grid-column: span 3; }
  .craft .art:last-of-type { grid-column: 2 / span 4; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .craft .art, .craft .art:last-of-type { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Contact ---------- */
.contact { text-align: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 96px); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; margin: 0 auto; }
.contact .lead { margin: 20px auto 0; }
.email-big {
  display: inline-block; margin-top: 36px;
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 3.4vw, 2.3rem); letter-spacing: -.02em;
  text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 4px;
  word-break: break-all;
}
.email-big:hover { color: var(--accent); }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.copy-status { min-height: 1.6em; margin-top: 12px; font-size: .9rem; color: var(--ink-3); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .9rem; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Case study pages ---------- */
.cs-hero { padding-block: 132px 0; }
.cs-hero .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink-2); margin-bottom: 18px; }
.cs-hero .back:hover { color: var(--accent); }
.cs-hero h1 { max-width: 16ch; }
.cs-hero .lead { margin-top: 22px; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-meta dt { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.cs-meta dd { margin: 4px 0 0; font-weight: 600; line-height: 1.4; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.cs-cover { margin-top: 48px; border-radius: var(--radius-card); overflow: hidden; background: var(--case-bg); color: var(--case-ink); padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) 0; display: flex; justify-content: center; gap: clamp(10px, 2vw, 24px); align-items: flex-end; }
.cs-cover .phone { width: clamp(120px, 20vw, 250px); border-radius: 30px 30px 0 0; border: 7px solid #0f0f0f; border-bottom: 0; overflow: hidden; background: #fff; aspect-ratio: 375/640; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.cs-cover .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-cover .phone:nth-child(odd) { transform: translateY(40px); }
.cs-cover.photo { padding: 0; display: block; }
.cs-cover.photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 560px) { .cs-cover .phone { border-width: 4px; border-radius: 18px 18px 0 0; } }

.prose-section { padding-block: clamp(56px, 8vw, 104px) 0; }
.prose { max-width: 680px; margin: 0 auto; font-size: 1.12rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 20px; }
.prose h2 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent); }
.pull {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink);
  padding-left: 22px; border-left: 4px solid var(--accent); margin: 12px 0;
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.steps li { list-style: none; background: var(--surface); border-radius: var(--radius-tile); padding: 26px; border: 1px solid var(--line); }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.steps ol { display: contents; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 48px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.screens .shot { border-radius: 26px; overflow: hidden; border: 6px solid #0f0f0f; background: #fff; aspect-ratio: 375 / 760; box-shadow: var(--shadow); }
.screens .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screens figcaption { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.screens figcaption b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) { .screens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.cards-2 > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile); padding: 26px; }
.cards-2 h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cards-2 p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
@media (max-width: 760px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }

.pieces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.pieces div { background: var(--case-bg); color: var(--case-ink); border-radius: var(--radius-tile); padding: 22px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.pieces b { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.pieces span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.pieces p { font-size: .93rem; line-height: 1.45; opacity: .9; margin-top: auto; }
@media (max-width: 1000px) { .pieces { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .pieces { grid-template-columns: minmax(0, 1fr); } }

.wide-media { margin-top: 48px; border-radius: var(--radius-card); overflow: hidden; background: var(--surface-2); }
.wide-media img { width: 100%; }
.media-caption { font-size: .92rem; color: var(--ink-3); margin-top: 12px; text-align: center; }

.try { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
.try iframe { width: 390px; max-width: 100%; height: 780px; border: 6px solid #0f0f0f; border-radius: 34px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .try { grid-template-columns: minmax(0, 1fr); justify-items: center; } .try iframe { width: 100%; max-width: 390px; height: 720px; } }

.next-case { margin-top: clamp(72px, 10vw, 128px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroller-toggle { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.screens-baldio .shot { aspect-ratio: 390 / 700; }
.try iframe { border: 0; border-radius: 0; box-shadow: none; background: transparent; }

/* ---------- Hero spacing (photo no longer sits on a card) ---------- */
.hero { padding-bottom: clamp(56px, 8vw, 96px); }

/* ---------- Experience timeline (oldest to newest) ---------- */
.timeline {
  list-style: none; margin: 0; padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 36px);
  counter-reset: none;
}
.timeline li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-3); }
.timeline li.now { border-top-color: var(--accent); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); }
.timeline .year { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.timeline li.now .year { color: var(--accent); }
.timeline h3 { font-size: 1.05rem; line-height: 1.25; font-variation-settings: "wdth" 110; letter-spacing: -.01em; }
.timeline p { font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 26px 22px; }
  .timeline li.now { border-left-color: var(--accent); padding-bottom: 0; }
  .timeline li::before { top: 2px; left: -7px; }
}

/* ---------- Talks scroller: auto-advances, and people can swipe or drag ---------- */
.scroller {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 8px 0 4px;
  cursor: grab;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.dragging { cursor: grabbing; }
.scroller.dragging img { pointer-events: none; }
.scroller-track { display: flex; gap: 14px; width: max-content; padding: 0 var(--gutter); }
.scroller figure { margin: 0; width: clamp(240px, 26vw, 340px); flex: none; user-select: none; }
.scroller img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-tile); background: var(--surface-2); -webkit-user-drag: none; }
.scroller figcaption { font-size: .86rem; color: var(--ink-3); margin-top: 10px; line-height: 1.35; padding-right: 12px; }
.scroller-controls { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.scroller-btn, .scroller-toggle {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-pill); min-height: 44px; min-width: 44px; padding: 0 18px; cursor: pointer;
  transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.scroller-btn { padding: 0; width: 44px; font-size: 1.1rem; }
.scroller-btn:hover, .scroller-toggle:hover { border-color: var(--ink); color: var(--ink); }
.scroller-btn:active, .scroller-toggle:active { transform: scale(.95); }

/* ---------- Craft: three equal pieces + Behance ---------- */
.craft-more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 18px; }

/* ---------- HabiliTree card ---------- */
:root { --habilitree: #0d0920; --habilitree-ink: #eeeafb; }
.case-habilitree {
  --case-bg: var(--habilitree); --case-ink: var(--habilitree-ink);
  background: radial-gradient(120% 90% at 85% 10%, #3a1f7a 0%, transparent 55%), radial-gradient(80% 70% at 10% 100%, #5b1840 0%, transparent 60%), var(--habilitree);
}
.case-habilitree .case-brand img { width: 30px; height: 30px; }
.case-habilitree .case-bar { background: rgb(238 234 251 / .08); border: 1px solid rgb(165 123 255 / .25); }
.case-habilitree .case-bar .btn { background: linear-gradient(90deg, #a57bff, #ff7bae); color: #0a0716; }
.case-habilitree .case-bar .btn:hover { background: #eeeafb; color: #0a0716; }
.case-visual.screen { position: relative; padding: 40px clamp(16px, 3vw, 40px) 0 0; align-items: flex-end; justify-content: flex-end; }
.case-visual.screen .browser {
  width: 100%; border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid rgb(165 123 255 / .35); border-bottom: 0;
  box-shadow: 0 30px 80px -30px rgb(165 123 255 / .5);
  transition: transform 1s var(--ease);
}
.case-visual.screen .browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-visual.screen .phone { position: absolute; left: clamp(0px, 2vw, 24px); bottom: 0; width: clamp(110px, 12vw, 170px); transform: none !important; border-color: #000; }
.case-habilitree:hover .case-visual.screen .browser { transform: translateY(-8px); }
@media (max-width: 900px) { .case-visual.screen { padding: 32px 16px 0 48px; } .case-visual.screen .phone { left: 12px; } }
