/* lucaluperto.it — B2 "contact sheet, light".
   One light theme by choice. Orange is the pencil: it marks, it never decorates. */
:root {
  color-scheme: light;
  --bg: #f3f6fb;          /* pale blue paper */
  --surface: #ffffff;
  --ink: #1d2433;         /* headings, figures, buttons */
  --body: #3b4458;        /* running text, 9.9:1 on bg */
  --dim: #566177;         /* captions, 5.8:1 on bg */
  --line: #dbe2ee;
  --line-2: #c3ccdb;
  --pencil: #f2803e;      /* marks, fills under ink text */
  --pencil-text: #b84f17; /* orange as text: 4.9:1 on white */
  --sand: #efe3cc;
  --lift: 0 20px 50px rgba(29, 36, 51, .08);
  --ease: cubic-bezier(.2, .65, .3, 1);
  --draw: cubic-bezier(.6, .05, .4, 1);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 19px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--pencil-text); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}

.w { position: relative; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.label { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); }
.muted { color: var(--dim); font-size: 15px; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--lift); }

/* ---------- background glow ---------- */
.aura { position: absolute; inset: -8% -10% auto; height: 1100px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 36% at 80% 20%, rgba(242,128,62,.22), rgba(242,128,62,0) 70%),
    radial-gradient(40% 40% at 10% 40%, rgba(120,160,220,.22), rgba(120,160,220,0) 70%);
  filter: blur(24px); animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-4%, 4%, 0) scale(1.08); } }
.page { position: relative; overflow: hidden; }
main, header.site, footer.site { position: relative; z-index: 1; }

/* ---------- header ---------- */
header.site .w { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-block: 28px; }
.name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-weight: 600; font-size: 15px; }
header.site nav a { color: var(--ink); text-decoration: none; }
header.site nav a:hover { color: var(--pencil-text); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; border: 2px solid var(--ink);
  transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { transform: translateY(-2px); }
.pill.dark { background: var(--ink); color: #ffffff; }
.pill.dark:hover { color: #ffffff; }
.pill.line { background: transparent; color: var(--ink); }
header.site nav .pill { min-height: 44px; padding: 0 20px; font-size: 15px; }

main { display: flex; flex-direction: column; gap: 96px; padding-bottom: 96px; }
main > * { min-width: 0; width: 100%; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hello { display: flex; align-items: center; gap: 18px; }
.hello img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  background: var(--surface); border: 4px solid var(--surface); }
.hello span { display: block; }
.hello .role { font-weight: 600; font-size: 17px; color: var(--dim); }
h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.lede { max-width: 34em; color: var(--body); font-size: 21px; }
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl svg { position: absolute; left: -2%; bottom: -18px; width: 104%; height: 24px; overflow: visible; }

.route { margin: 0; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.route svg { width: 100%; height: auto; display: block; overflow: visible; }
.route .place { font: 800 17px var(--sans); fill: var(--ink); }
.route .note { font: 400 13px var(--sans); fill: var(--dim); }

/* ---------- the pencil ----------
   Every mark is a path with pathLength="1". With JS on, marks start undrawn and draw
   when their block scrolls into view (.on); without JS they are simply drawn. */
.js .pen { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .on .pen { animation: draw 1s var(--draw) forwards; }
.js .on .pen.d2 { animation-delay: .5s; }
.js .on .pen.d3 { animation-delay: 1s; }
.js .write { clip-path: inset(0 100% 0 0); }
.js .on .write { animation: write .7s steps(14, end) .9s forwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.js .on .frame:hover .pen, .js .on .case:hover .pen { animation: redraw .8s var(--draw) forwards; }
.pencil { opacity: 0; }
.no-pencil .pencil { display: none; }

/* ---------- contact sheet ---------- */
.sheet-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.sheet { padding: 28px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.frame { margin: 0; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none;
  transition: transform .4s var(--ease); }
.frame:hover { transform: translateY(-4px) rotate(-.4deg); color: inherit; }
.frame .shot { position: relative; display: block; }
.frame .pic, .frame .cap { display: block; }
.frame .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e7ecf4; }
.frame .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.frame:hover .pic img { transform: scale(1.06); }
.frame .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,22,32,.86), rgba(18,22,32,0) 65%); }
.frame .fig { position: absolute; left: 14px; bottom: 10px; color: #ffffff; display: flex; flex-direction: column; }
.frame .fig b { font-weight: 800; font-size: 36px; letter-spacing: -0.03em; line-height: 1; }
.frame .fig span { font-size: 13px; }
.frame .play { position: absolute; top: 10px; right: 10px; background: rgba(18,22,32,.6); color: #ffffff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.frame .mark { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.frame .cap { font-size: 14px; color: var(--dim); }
.frame .cap b { color: var(--ink); }
.frame .cap.keep { font-weight: 700; color: var(--pencil-text); }

/* ---------- case studies ---------- */
.cases { display: flex; flex-direction: column; gap: 28px; }
.cases > h2 { font-size: clamp(30px, 3.2vw, 44px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding: 40px; }
.case-text { display: flex; flex-direction: column; gap: 16px; }
.case-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.case-top .when { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; white-space: nowrap; }
.case h3 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.case h3 a { color: var(--ink); text-decoration: none; }
.case h3 a:hover { color: var(--pencil-text); }
.part { display: flex; flex-direction: column; gap: 4px; }
.part b { font-size: 17px; }
.part span { color: var(--body); }
.go { font-weight: 700; font-size: 16px; }
.result { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result > b { font-size: 17px; }
.big { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.big strong { font-weight: 800; font-size: 52px; letter-spacing: -0.03em; line-height: 1; }
.big span { color: var(--dim); font-size: 16px; }
div.chart { background: var(--bg); border-radius: 14px; padding: 18px 16px 10px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; margin-top: 8px; }
.chart .bar { fill: var(--ink); }
.chart .bar.drop { fill: var(--pencil); }
.chart text { font-family: var(--sans); font-size: 12px; fill: var(--dim); }
.chart text.val { font-size: 14px; font-weight: 800; fill: var(--ink); }
.chart text.tag { font-size: 13px; font-weight: 800; fill: var(--pencil-text); }
.chart rect[data-tip] { cursor: default; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.small-case { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.small-case h3 { font-size: 30px; }
.small-case h3 a { color: var(--ink); text-decoration: none; }
.small-case h3 a:hover { color: var(--pencil-text); }
.small-case .big { padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.small-case .big strong { font-size: 44px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.about > div { display: flex; flex-direction: column; gap: 14px; }
.about p { color: var(--body); }
.about .quote { font-weight: 600; font-size: 24px; line-height: 1.35; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; color: var(--body); }
.steps li::before { content: "✓"; font-weight: 800; color: var(--pencil-text); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-text { display: flex; flex-direction: column; gap: 18px; }
.contact-text h2 { font-size: clamp(30px, 3.2vw, 44px); }
.contact-text p { color: var(--body); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cform { padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.cform-h { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); margin-bottom: 18px; }
.cform label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cform label i { font-style: normal; font-weight: 400; color: var(--dim); }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; width: 100%; min-width: 0; }
.cform textarea { resize: vertical; }
.cform input::placeholder { color: var(--dim); }
.cform button[type="submit"] { align-self: flex-start; cursor: pointer; }
.cform button[disabled] { opacity: .55; cursor: default; transform: none; }
.cform p:not(.cform-h):not(.cform-s) { color: var(--body); }
.cform-s { font-size: 15px; color: var(--dim); margin-top: 12px; }
.cform-s.bad { color: var(--pencil-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 48px 44px; background: var(--pencil); border-radius: 28px; color: var(--ink); }
.band p:first-child { font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.025em; max-width: 20ch; }
.band .contact-links { align-self: center; }

/* ---------- footer ---------- */
footer.site .w { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
footer.site a { color: var(--ink); }
.clink { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.clink:hover { color: var(--pencil-text); }

/* ---------- tooltip (tip.js) ---------- */
.tip { position: fixed; pointer-events: none; background: var(--ink); color: #ffffff; font: 600 13px var(--sans);
  padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .1s; z-index: 70; max-width: 260px; }

/* ---------- entrance (tip.js adds .anim-ready and .in) ---------- */
.anim-ready .rise { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.anim-ready .rise.in, .no-anim .rise { opacity: 1; transform: none; }

/* ---------- consent (built by the inline script) ---------- */
.consent { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(430px, calc(100vw - 36px));
  background: var(--surface); color: var(--body); border-radius: 20px; box-shadow: 0 16px 40px rgba(29,36,51,.18);
  padding: 22px 22px 18px; opacity: 0; transform: translateY(12px); transition: opacity .22s ease-out, transform .22s ease-out; }
.consent.in { opacity: 1; transform: none; }
.consent-h { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); margin: 0 0 9px; }
.consent p { margin: 0 0 15px; font-size: 14px; line-height: 1.55; }
.consent-b { display: flex; gap: 10px; }
.consent-b button { flex: 1 1 0; cursor: pointer; font: 700 15px var(--sans); min-height: 46px; padding: 0 14px;
  border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.consent-b button.yes { background: var(--ink); color: #ffffff; }
@keyframes cpulse { 35% { box-shadow: 0 0 0 4px var(--pencil), 0 16px 40px rgba(29,36,51,.18); } }
.consent.pulse { animation: cpulse .55s ease-out; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero, .case, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main { gap: 72px; }
}
@media (max-width: 640px) {
  .w { padding-inline: 18px; }
  body { font-size: 17px; }
  header.site .w { padding-block: 18px; }
  header.site nav { gap: 6px 18px; }
  .hello img { width: 72px; height: 72px; }
  .lede { font-size: 18px; }
  .case, .small-case, .cform, .sheet { padding: 22px; }
  .case h3 { font-size: 28px; }
  .case-top .when { font-size: 20px; }
  .big strong { font-size: 40px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .strip { gap: 14px 12px; }
  .frame .fig b { font-size: 24px; }
  .frame .fig span { font-size: 11px; }
  .frame .play { font-size: 11px; padding: 3px 8px; }
  .frame .cap { font-size: 13px; }
  .band { padding: 32px 24px; }
  .pill { width: 100%; }
  header.site nav .pill { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .aura { animation: none; }
  .js .pen { stroke-dashoffset: 0; animation: none !important; }
  .js .write { clip-path: none; animation: none !important; }
  .pencil { display: none; }
  .frame:hover, .frame:hover .pic img, .pill:hover { transform: none; }
}

/* =================== case-study pages =================== */
.case-page { padding-top: 8px; }
.case-page .col { max-width: 880px; }
.case-page article { display: block; }
.case-page article > * + * { margin-top: 18px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); margin: 0; }
.sector { display: inline-block; background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 14px; box-shadow: var(--lift); }
.case-page h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 18ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 16px; color: var(--dim); }
.meta b { color: var(--ink); font-weight: 800; }
.case-page .lede { font-size: 22px; line-height: 1.5; max-width: none; }
.case-page h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; margin-top: 64px; }
.case-page h3 { font-size: 24px; letter-spacing: -0.015em; margin-top: 36px; }
.case-page h4 { margin: 32px 0 0; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); }
.case-page p, .case-page li { color: var(--body); }
.case-page b, .case-page strong { color: var(--ink); }
ul.clean { padding-left: 22px; }
ul.clean li + li { margin-top: 10px; }
ul.clean li::marker { color: var(--pencil-text); }
ul.cols { columns: 2; column-gap: 40px; }
ul.cols li { break-inside: avoid; }
ul.cols .muted { display: block; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 32px !important; }
.stat { background: var(--surface); border-radius: 18px; padding: 20px 20px 18px; box-shadow: var(--lift); }
.stat b { display: block; font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--dim); }

.brief { background: var(--surface); border-radius: 24px; padding: 30px 32px; box-shadow: var(--lift); margin-top: 32px !important; }
.brief-h { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); margin: 0 0 18px; }
.brief dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 24px; margin: 0; }
.brief dt { font-weight: 800; font-size: 15px; color: var(--ink); }
.brief dt.warn { color: var(--pencil-text); }
.brief dd { margin: 0; color: var(--body); font-size: 17px; }

.insight { background: var(--sand); border-radius: 20px; padding: 22px 26px; margin-top: 28px !important; }
.insight p { color: var(--ink); font-weight: 600; font-size: 20px; line-height: 1.45; }
.insight p + p { margin-top: 10px; }
.todo { border: 2px dashed var(--line-2); border-radius: 16px; padding: 14px 18px; color: var(--dim); font-size: 15px; }
.todo::before { content: "DA COMPLETARE · "; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--pencil-text); }

.case-page figure { margin: 32px 0 0; }
.case-page figure:not(.photo) { background: var(--surface); border-radius: 22px; padding: 26px 26px 20px; box-shadow: var(--lift); }
.case-page figcaption { font-weight: 800; font-size: 19px; color: var(--ink); }
.case-page figure .sub { font-size: 15px; color: var(--dim); margin: 4px 0 16px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--dim); font: 600 12px var(--sans); }
svg.chart text.val { fill: var(--ink); font-weight: 800; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .bar { fill: var(--ink); transition: fill .2s; }
svg.chart .bar.mute { fill: var(--line-2); }
svg.chart .bar:hover, svg.chart .bar:focus { fill: var(--pencil); outline: none; }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
svg.chart path.bar.grow-y { transform-box: fill-box; transform-origin: bottom; animation: grow-y .6s var(--ease) both; }
svg.chart path.bar.grow-x { transform-box: fill-box; transform-origin: left; animation: grow-x .6s var(--ease) both; }

.case-page details { margin-top: 14px; }
.case-page summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--pencil-text); }
.table-scroll { overflow-x: auto; margin-top: 6px; }
.case-page table { border-collapse: collapse; width: 100%; font-size: 15px; }
.case-page th { text-align: left; padding: 8px 10px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 2px solid var(--line-2); }
.case-page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--body); }
.case-page td.n, .case-page th.n { text-align: right; font-variant-numeric: tabular-nums; }

.reels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: 14px !important; }
.reel { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--lift);
  color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.reel:hover { transform: translateY(-3px); color: var(--ink); }
.reel .rank { font-weight: 800; font-size: 13px; color: var(--pencil-text); }
.reel b { line-height: 1.25; }
.reel .muted { font-size: 14px; }
.reel-n { margin-top: 8px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 24px !important; }
.work { display: block; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--lift);
  color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.work:hover { transform: translateY(-3px); color: var(--ink); }
.work img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--line); }
.work-t { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.work-t span { font-size: 15px; color: var(--body); }
.work-t .muted { font-size: 14px; color: var(--dim); }
.work-t .go, .reel .go { margin-top: 6px; color: var(--pencil-text); font-weight: 700; font-size: 15px; }
figure.photo img { width: 100%; height: auto; display: block; border-radius: 18px; }
figure.photo figcaption { font-weight: 400; font-size: 15px; color: var(--dim); margin-top: 10px; }
figure.photo.two > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 72px !important;
  padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.next a { color: var(--ink); text-decoration: none; }
.next a:hover { color: var(--pencil-text); }

@media (max-width: 640px) {
  .case-page .lede { font-size: 19px; }
  .brief { padding: 22px; }
  .brief dl { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .brief dt { margin-top: 12px; }
  ul.cols { columns: 1; }
  figure.photo.two > div { grid-template-columns: minmax(0, 1fr); }
  .case-page figure:not(.photo) { padding: 18px 16px 14px; }
  svg.chart text { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  svg.chart path.bar { animation: none !important; }
  .reel:hover, .work:hover { transform: none; }
}

/* =================== homepage tiles =================== */
/* ribbon: the skills as a moving strip, tilted like tape */
main > .ribbon { width: 106%; margin-left: -3%; }
.ribbon { background: var(--ink); color: #ffffff; transform: rotate(-1.6deg); overflow: hidden; padding-block: 16px; }
.ribbon-track { display: flex; width: max-content; gap: 22px; align-items: center; white-space: nowrap;
  font-weight: 800; font-size: 26px; letter-spacing: -0.02em; animation: ribbon 38s linear infinite; }
.ribbon-track i { font-style: normal; color: var(--pencil); font-size: 20px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* chips: small outlined pills */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); }

/* placeholders: dashed, so a missing fact is visible, never invented */
.slot { border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 0 6px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.slot-block { margin: 0; border: 2px dashed var(--line-2); border-radius: 16px; padding: 18px; color: var(--dim); }

/* areas: two panels, one in ink */
.areas { display: flex; flex-direction: column; gap: 28px; }
.areas > h2 { font-size: clamp(30px, 3.2vw, 44px); }
.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.area { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.area-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.area h3 { font-size: 30px; }
.area-client { font-weight: 700; font-size: 14px; color: var(--pencil-text); }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rows li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.rows b { display: block; font-size: 17px; }
.rows span { color: var(--body); font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area-result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.area-result strong { font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.area-result span { color: var(--dim); font-size: 15px; }
.area-ink { background: var(--ink); color: #ffffff; }
.area-ink h3, .area-ink b, .area-ink strong { color: #ffffff; }
.area-ink .rows span, .area-ink .area-result span { color: #c9d0dd; }
.area-ink .area-client { color: var(--pencil); }
.area-ink .chips li { background: transparent; color: #ffffff; border-color: #4a5570; }
.area-ink .ico { border-color: #4a5570; }
.area-ink .ico svg { stroke: var(--pencil); }
.area-ink .area-result { border-top-color: #3a4560; }

/* bento: experience, education, skills & tools, certifications */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tile-exp { grid-column: span 7; }
.tile-edu { grid-column: span 5; }
.tile-tools { grid-column: span 7; }
.tile-empty { grid-column: span 5; border-radius: 24px; border: 2px dashed var(--line-2); }
.tile-h { font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -0.035em; line-height: 1; }
.tile-h span { color: var(--pencil); }
.tile-sub { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil-text); margin-top: 6px; }
.tl-logo { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--ink); position: relative; z-index: 1; }
.timeline { position: relative; }
.timeline ol, .plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.timeline li, .plain li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.timeline li b, .plain li b { display: block; font-size: 17px; line-height: 1.3; }
.timeline li span, .plain li span { display: block; color: var(--body); font-size: 16px; }
.timeline li .slot, .plain li .slot { display: inline; }
.timeline .tl-when { color: var(--dim); font-size: 14px; margin: 2px 0 4px; }
.tl-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 4px; height: calc(100% - 48px); overflow: visible; }
.tool-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-group { background: var(--bg); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tg-label { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { background: var(--surface); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(29,36,51,.06); }

@media (max-width: 900px) {
  .areas-grid { grid-template-columns: minmax(0, 1fr); }
  .tile-exp, .tile-edu, .tile-tools, .tile-empty { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ribbon-track { font-size: 20px; }
  .area, .tile { padding: 22px; }
  .tool-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
}

/* =================== reference style (v3) ===================
   Closer to the portfolio Luca picked: off-white ground, grey rounded panels,
   lowercase headings with a period, orange name, one royal-blue panel. */
:root {
  --bg: #f7f7f5;
  --panel: #f0f1f3;
  --panel-line: #e4e6ea;
  --pencil: #f28a3a;
  --pencil-text: #b5541a;  /* 5.1:1 on white */
  --blue: #3b4cf2;         /* white on it: 5.8:1 */
  --display: "Poppins", "Figtree", system-ui, sans-serif;
}
h1, h2, h3, .tile-h, .big strong, .area-result strong, .stat b { font-family: var(--display); }
h1, h2 { letter-spacing: -0.035em; }
.card { background: var(--panel); box-shadow: none; border: 1px solid var(--panel-line); }
.sec-h { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.04em; line-height: 1; }
.sec-h span { color: var(--pencil); }
.sec-sub { color: var(--dim); font-size: 18px; margin-top: 8px; }
.sec-head { display: flex; flex-direction: column; }

/* hero */
.hero2 { display: grid; justify-items: center; text-align: center; gap: 20px; padding-top: 12px; }
.hello-pill { position: relative; display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: 16px; background: var(--surface); }
.sparks { position: absolute; width: 56px; height: 40px; overflow: visible; }
.sparks.l { left: -64px; top: 18px; transform: scaleX(-1); }
.sparks.r { right: -60px; top: -18px; }
.hero2 h1 { font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; max-width: 16ch; }
.hero2 h1 em { font-style: normal; color: var(--pencil); }
.hero2 .lede { max-width: 38em; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stage { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px; margin-top: 8px; }
.stage-quote { text-align: left; align-self: center; display: flex; flex-direction: column; gap: 8px; max-width: 22em; }
.stage-quote .qm { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .6; color: var(--pencil); }
.stage-quote p { font-size: 18px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.stage-quote span { font-size: 14px; color: var(--dim); }
.stage-stat { text-align: right; align-self: center; justify-self: end; display: flex; flex-direction: column; }
.stage-stat strong { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.stage-stat span { color: var(--dim); font-size: 15px; max-width: 14em; margin-left: auto; }
.portrait-wrap { position: relative; width: min(420px, 100%); justify-self: center; aspect-ratio: 1 / .9; }
.portrait-wrap::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; aspect-ratio: 1; border-radius: 50% 50% 0 0;
  background: var(--pencil); transform: translateY(0); clip-path: inset(0 0 0 0); height: auto; }
.portrait-wrap img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #ffffff;
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 10px 24px rgba(29,36,51,.18);
  animation: bob 5s ease-in-out infinite; }
.badge svg { width: 18px; height: 18px; fill: none; stroke: var(--pencil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge.b1 { left: -8%; top: 22%; }
.badge.b2 { right: -10%; top: 12%; animation-delay: -1.6s; }
.badge.b3 { right: -4%; bottom: 18%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* light ribbon, like a strip of tape */
.ribbon { background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px rgba(29,36,51,.08); }
.ribbon-track { font-family: var(--display); }

/* blue panel with a white inner sheet */
.area-ink { background: var(--blue); border-color: var(--blue); }
.area-ink .area-client { color: #ffffff; opacity: .9; }
.area-ink .chips li { border-color: rgba(255,255,255,.45); }
.area-ink .rows { background: var(--surface); border-radius: 18px; padding: 18px; }
.area-ink .rows b { color: var(--ink); }
.area-ink .rows span { color: var(--body); }
.area-ink .ico { border-color: var(--line-2); }
.area-ink .ico svg { stroke: var(--blue); }
.area-ink .area-result { border-top-color: rgba(255,255,255,.3); }
.area-ink .area-result span { color: #e3e6ff; }
.area .rows li { background: var(--surface); border-radius: 14px; padding: 12px; }
.area-ink .rows li { padding: 0; background: none; }

/* phones: reels playing in a phone frame */
.reels-sec { display: flex; flex-direction: column; gap: 32px; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.phone { margin: 0; display: flex; flex-direction: column; gap: 14px; transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--ease); }
.phone:nth-child(even) { margin-top: 40px; }
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone-body { position: relative; aspect-ratio: 9 / 19.5; border-radius: 44px; background: #111318; padding: 10px;
  box-shadow: 0 24px 50px rgba(29,36,51,.22), inset 0 0 0 2px #2a2e38; }
.phone-body::before, .phone-body::after { content: ""; position: absolute; background: #2a2e38; border-radius: 3px; width: 4px; }
.phone-body::before { left: -4px; top: 22%; height: 12%; }
.phone-body::after { right: -4px; top: 28%; height: 18%; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000000; }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 999px; background: #000000; z-index: 2; }
.screen-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 16px; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); color: #ffffff; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.screen-ui b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.screen-ui span { font-size: 12px; opacity: .9; }
.phone-play { position: absolute; z-index: 3; top: 44px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #ffffff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.phone-play svg { width: 18px; height: 18px; fill: currentColor; }
.phone-play .i-play { display: none; }
.phone.paused .phone-play .i-play { display: block; }
.phone.paused .phone-play .i-pause { display: none; }
.missing { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; text-align: center; padding: 20px;
  font: 600 13px/1.4 var(--sans); color: #ffffff; background: rgba(17,19,24,.35); }
.phone.no-video .missing { display: grid; }
.phone.no-video .phone-play { display: none; }
.missing code { display: block; margin-top: 6px; padding: 4px 8px; border: 1.5px dashed rgba(255,255,255,.7); border-radius: 8px; font: 600 12px ui-monospace, monospace; }
.phone figcaption { display: flex; flex-direction: column; gap: 2px; padding-inline: 6px; }
.phone figcaption b { font-size: 17px; }
.phone figcaption span { color: var(--dim); font-size: 14px; }
.phone figcaption a { font-weight: 700; font-size: 15px; }

/* about with the route card */
.about2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.about2 .about-text { display: flex; flex-direction: column; gap: 16px; }
.about2 .about-text p { color: var(--body); }
.about2 .quote { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.35; color: var(--ink); }
.uline { position: relative; font-weight: 700; color: var(--ink); white-space: nowrap; }
.uline svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 10px; overflow: visible; }
.about2 aside { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .stage-quote, .stage-stat { text-align: center; align-items: center; justify-self: center; }
  .stage-stat span { margin-inline: auto; }
  .stage-quote { order: 2; }
  .stage-stat { order: 3; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sparks { display: none; }
  .badge { font-size: 13px; padding: 6px 12px; }
  .badge.b1 { left: 0; } .badge.b2 { right: 0; } .badge.b3 { right: 0; }
  .phones { gap: 18px; }
  .phone:nth-child(even) { margin-top: 24px; }
  .phone-body { border-radius: 30px; padding: 7px; }
  .screen { border-radius: 24px; }
  .island { height: 16px; top: 7px; }
  .screen-ui b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge { animation: none; }
  .phone, .phone:hover { transform: none; }
}

/* hero v3.1: bigger portrait, the four projects orbit it as links */
.stage2 { position: relative; width: 100%; display: grid; justify-items: center; margin-top: 8px; }
.stage2 .portrait-wrap { width: min(620px, 100%); }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.proj { pointer-events: auto; position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  min-width: 190px; padding: 14px 18px; border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none;
  border: 2px solid transparent; box-shadow: 0 16px 36px rgba(29,36,51,.14); animation: bob 6s ease-in-out infinite;
  transition: border-color .2s, box-shadow .2s; }
.proj:hover, .proj:focus-visible { border-color: var(--pencil); color: var(--ink); box-shadow: 0 20px 44px rgba(29,36,51,.2); animation-play-state: paused; }
.proj-k { font-weight: 700; font-size: 14px; color: var(--pencil-text); }
.proj-k::after { content: " →"; }
.proj b { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.035em; line-height: 1.1; }
.proj-d { font-size: 14px; color: var(--dim); }
.proj.p1 { left: 2%; top: 16%; }
.proj.p2 { right: 2%; top: 8%; animation-delay: -1.5s; }
.proj.p3 { left: 6%; bottom: 10%; animation-delay: -3s; }
.proj.p4 { right: 5%; bottom: 18%; animation-delay: -4.5s; }
.about2 .about-quote { display: flex; flex-direction: column; gap: 6px; }
.about2 .about-quote .qm { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .6; color: var(--pencil); }

@media (max-width: 900px) {
  .orbit { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: -40px; }
  .proj { position: relative; inset: auto; min-width: 0; animation: none; }
}
@media (max-width: 420px) {
  .proj b { font-size: 24px; }
  .proj { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .proj { animation: none; } }
.contact-lead { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--ink) !important; letter-spacing: -0.02em; }

/* =================== charts v2 =================== */
svg.chart, div.chart svg { font-variant-numeric: tabular-nums; }
svg.chart .bar, div.chart .bar { fill: var(--chart, var(--ink)); transition: opacity .15s; }
svg.chart .bar.mute, div.chart .bar.mute { fill: var(--chart-mute, var(--line-2)); }
svg.chart .bar.hot, div.chart .bar.hot { fill: var(--chart-hot, var(--pencil)); }
svg.chart .bar:hover, svg.chart .bar:focus-visible, div.chart .bar:hover, div.chart .bar:focus-visible { fill: var(--chart, var(--ink)); opacity: .78; outline: none; }
svg.chart .bar.hot:hover, svg.chart .bar.hot:focus-visible, div.chart .bar.hot:hover { fill: var(--chart-hot, var(--pencil)); }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart text { fill: var(--dim); font: 500 12px var(--sans); }
svg.chart text.val, div.chart text.val { fill: var(--ink); font-weight: 800; font-size: 13px; }
div.chart .axis { stroke: var(--line-2); stroke-width: 1; }
div.chart text.tag { fill: var(--pencil-text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 14px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .k { width: 12px; height: 12px; border-radius: 3px; background: var(--chart, var(--ink)); display: inline-block; }
.legend .k.hot { background: var(--chart-hot, var(--pencil)); }
.legend .k.mute { background: var(--chart-mute, var(--line-2)); }
.case-page figure:not(.photo) { background: var(--surface); border: 1px solid var(--panel-line, var(--line)); box-shadow: none; }
@media (max-width: 640px) { svg.chart text.val { font-size: 20px; } }
svg.chart text.val, div.chart text.val { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

/* =================== Azzurro series =================== */
.series { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.series a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.series a:hover { border-color: var(--ink); color: var(--ink); }
.series a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.subcases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px !important; }
.subcase { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--panel-line, var(--line)); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .2s; }
.subcase:hover { transform: translateY(-3px); border-color: var(--pencil); color: var(--ink); }
.subcase b { font-family: var(--display); font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.subcase > span:not(.label) { color: var(--body); font-size: 16px; }
.subcase strong { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.subcase strong::after { content: " →"; color: var(--pencil-text); font-size: 22px; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; }
.case-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.case-links a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .subcases { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .subcase:hover { transform: none; } }
.stat b { font-size: clamp(26px, 2.4vw, 32px); white-space: nowrap; }

/* =================== production vs preview ===================
   Placeholders and notes for Luca show only on localhost (html.dev). Online they disappear. */
html:not(.dev) .slot-wrap, html:not(.dev) .tile-empty, html:not(.dev) .todo, html:not(.dev) .missing { display: none !important; }
html:not(.dev) .tile-tools { grid-column: 1 / -1; }

/* logos */
.tl-logo.has-img { padding: 0; overflow: hidden; background: #ffffff; }
.tl-logo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; border: 1px solid var(--line); }
.timeline li .slot-wrap, .plain li .slot-wrap { display: inline; }
.timeline li .tl-when.slot-wrap { display: block; }
.tile-tools { grid-column: 1 / -1; }

/* =================== about v3 =================== */
.about3 { display: flex; flex-direction: column; gap: 40px; }
.about-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.about-intro { font-size: 21px; line-height: 1.6; color: var(--body); max-width: 40em; }
.about-pull { margin: 0; position: relative; padding: 48px 56px 48px 120px; border-radius: 28px; background: var(--surface); border: 1px solid var(--panel-line); }
.about-pull .qm { position: absolute; left: 40px; top: 30px; font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 1; color: var(--pencil); }
.about-pull blockquote { margin: 0; }
.about-pull p { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); max-width: 30em; }
.about-bottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.belief { background: var(--blue); color: #ffffff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.belief .label { color: #ffffff; opacity: .85; }
.belief p { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: #ffffff; }
.howto { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.steps4 li { background: var(--surface); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.steps4 b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--pencil-text); letter-spacing: -0.02em; }
.steps4 span { color: var(--body); font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) {
  .about-top, .about-bottom { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .about-pull { padding: 64px 24px 28px; }
  .about-pull .qm { left: 22px; top: 8px; font-size: 90px; }
  .about-intro { font-size: 18px; }
  .steps4 { grid-template-columns: minmax(0, 1fr); }
  .belief, .howto { padding: 24px; }
}

/* about v3.1: belief as a compact band, the four steps in one row */
.about-bottom { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.belief { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; row-gap: 6px; padding: 28px 36px; }
.belief .label { grid-column: 2; grid-row: 1; }
.belief p { grid-column: 2; grid-row: 2; max-width: 34em; }
.belief::before { content: "“"; grid-column: 1; grid-row: 1 / span 2; font-family: var(--display); font-weight: 800; font-size: 96px; line-height: .8; color: var(--pencil); align-self: start; }
.steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .belief { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .belief::before { grid-row: auto; font-size: 64px; }
  .belief .label, .belief p { grid-column: 1; grid-row: auto; }
  .steps4 { grid-template-columns: minmax(0, 1fr); }
}
.belief::before { content: none; }
.belief { grid-template-columns: 220px minmax(0, 1fr); }
.belief .label { grid-column: 1; grid-row: 1; align-self: center; }
.belief p { grid-column: 2; grid-row: 1; }
@media (max-width: 640px) { .belief { grid-template-columns: minmax(0, 1fr); } .belief .label, .belief p { grid-column: 1; grid-row: auto; } }
.tool { display: inline-flex; align-items: center; gap: 8px; }
.tool img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex: none; }
