/* Nodo — page layout. Tokens come from identity.css. Direction: "Type and nothing else" (tasteskill seed 1793325082).
   One grid (12 columns), one pair of margins, one button shape (square corners), five type steps:
   15 · 17 · 22 · 34/44 · display. */

:root {
  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 14vw, 200px);
  --bar-h: 0px;
  --s-small: 15px;
  --s-text: 17px;
  --s-lead: 22px;
  --s-head: clamp(34px, 3.6vw, 52px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; padding-bottom: var(--bar-h); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.dot { color: var(--accent); }
.tbc { color: var(--muted); font-style: normal; font-weight: 400; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--paper); color: var(--paper-ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- header: the wordmark and four links, no bar ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--m); }
.top-logo { display: flex; align-items: center; min-height: 44px; width: 112px; text-decoration: none; }
.top-logo .la { width: 100%; }
.top-logo .la, .foot-mark { --la-fill: var(--ink); }
.la .logo-dot, .la .la-shape.logo-dot { fill: var(--accent); stroke: var(--accent); }
.top-links { display: flex; gap: 28px; font-size: var(--s-small); font-weight: 500; }
.top-links a { text-decoration: none; padding: 12px 0; position: relative; }
.top-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top-links a:hover::after, .top-links a:focus-visible::after { transform: scaleX(1); }
.top-menu { display: none; }

/* ---------- buttons: one shape, square corners ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; font: 700 var(--s-text)/1 var(--font-text); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s; }
.btn-solid { background: var(--ink); color: var(--paper-ink); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(2px); }
.btn-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; }
.btn-link:hover { color: var(--accent-soft); }

/* ---------- 1 · hero: two lines, stepped across the screen ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 0 var(--m) 28px; }
.hero-title { align-self: start; margin-top: max(15svh, 96px); font-size: clamp(64px, 12.2vw, 200px); line-height: .9; letter-spacing: -.055em; font-weight: 700; display: grid; }
.hl { display: block; overflow: hidden; padding-bottom: .06em; }
.hl-in { display: inline-block; }
.hl-2 { justify-self: end; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 12svh; }
.hero-lede { max-width: 44ch; font-size: var(--s-lead); line-height: 1.36; }
.hero-cta { display: grid; gap: 12px; justify-items: start; flex: none; }
.hero-acts { display: flex; align-items: center; gap: 28px; }
.hero-risk { font-size: var(--s-small); color: var(--muted); max-width: 34ch; }
.hero-lede { flex: 1 1 30ch; }

/* ---------- 2 · intro: heading, the lead that lights up (words-light-up), four columns ---------- */
.scene.intro { --muted: var(--faint); }
.scene.intro .scene-stage, .scene.intro.is-live .scene-stage { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-content: center; place-items: initial; padding: 96px var(--m); min-height: 100svh; }
.intro-title { grid-column: 1 / span 8; font-size: var(--s-head); }
.scene.intro .wl-text { grid-column: 1 / span 9; margin: 0; max-width: 34ch; font: 500 clamp(24px, 2.5vw, 36px)/1.22 var(--font-display); letter-spacing: -.02em; text-wrap: pretty; }
.intro-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--s-text); line-height: 1.5; color: #c9ccd8; }
.intro-cols b { color: var(--ink); font-weight: 700; }
.scene.intro .tbc { color: #c9ccd8; }
.intro-cols a { color: var(--ink); }

/* ---------- picture band ---------- */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: min(88svh, 56vw); object-fit: cover; }
.band figcaption, .method-pic figcaption { position: absolute; left: var(--m); bottom: 20px; z-index: 2; font-size: var(--s-small); color: var(--paper-ink); background: var(--paper); padding: 8px 12px; }

/* ---------- 3 · comparison set as text ---------- */
.compare { padding: var(--gap) var(--m) 0; }
.compare-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 64px; align-items: start; }
.compare-head h2 { grid-column: 1 / span 6; font-size: var(--s-head); }
.compare-head p { grid-column: 8 / -1; font-size: var(--s-text); color: var(--muted); max-width: 46ch; }
.ctab { position: relative; display: grid; }
.ctab-row { display: grid; grid-template-columns: 5fr repeat(4, 2fr); align-items: center; min-height: 64px; }
.ctab-row:nth-child(even) { background: var(--ground-2); }
.ctab-label { padding: 14px 20px; font: 500 var(--s-lead)/1.2 var(--font-display); letter-spacing: -.015em; }
.ctab-cell { padding: 14px 16px; font-size: var(--s-text); color: var(--muted); }
.ctab-cols { min-height: 56px; background: transparent !important; }
.ctab-cols .ctab-label, .ctab-cols .ctab-cell { font: 700 var(--s-text)/1.2 var(--font-text); color: var(--ink); letter-spacing: 0; }
.ctab-cell.is-key, .ctab-cols .ctab-cell:last-child { background: var(--accent); color: var(--accent-ink); align-self: stretch; display: flex; align-items: center; font-weight: 700; }
.ctab-cols .ctab-cell:last-child { margin-top: -24px; padding-top: 38px; }
.ctab-cell:not(.is-key):is(:nth-child(2), :nth-child(3), :nth-child(4)) { color: var(--muted); }
.soft-cta { margin-top: 40px; font-size: var(--s-text); color: var(--muted); }
.soft-cta a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; }

/* ---------- trade words band ---------- */
.tw { margin-top: calc(var(--gap) - 60px); padding-block: clamp(70px, 9vw, 150px) !important; }
.tw .tw-row { font-weight: 700; letter-spacing: -.04em; font-size: clamp(40px, 6.4vw, 110px); }
.tw .tw-row, .tw .tw-row.tw-alt { font-style: normal; }
.tw .tw-row li.is-accent { color: var(--accent-soft); font-style: normal; }
.tw .tw-row li::after { width: .16em; height: .16em; border-radius: 50%; background: var(--accent); align-self: flex-end; margin-bottom: .2em; }
.statement { --muted: var(--faint); }
.tw .tw-tilt { transform: none; }

/* ---------- 4 · specimen: two giant words compared ---------- */
.specimen { padding: var(--gap) var(--m) 0; }
.specimen-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.specimen-left { grid-column: 1 / span 5; display: grid; gap: 32px; }
.specimen-head h2 { font-size: var(--s-head); }
.specimen-pic { margin: 0; max-width: 360px; }
.specimen-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.specimen-text { grid-column: 7 / -1; display: grid; gap: 28px; }
.specimen-text > p { font-size: var(--s-text); max-width: 52ch; }
.sys { font-size: var(--s-text) !important; }
.sys { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; font-size: var(--s-small); }
.sys dt { color: var(--muted); }
.sys dd { margin: 4px 0 0; color: var(--muted); }
.sys dd b { color: var(--ink); font-weight: 700; }
.specimen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12vh; height: clamp(220px, 24vw, 380px); overflow: hidden; }
.spec { position: relative; display: grid; align-content: start; }
.specimen-pair { margin-top: 96px; }
.spec-cap { font-size: var(--s-small); color: var(--muted); margin-bottom: 8px; }
.spec-glyph { font-size: clamp(180px, 30vw, 500px); line-height: .8; letter-spacing: -.06em; }
.spec-a .spec-glyph { font-family: var(--font-display); font-weight: 700; }
.spec-b .spec-glyph { font-family: var(--font-text); font-weight: 400; letter-spacing: -.04em; }

/* ---------- 5 · method: itinerary on a slip ---------- */
.method { margin-top: 0; padding: var(--gap) var(--m); background-color: var(--ground-2); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.method-head { grid-column: 1 / span 5; display: grid; gap: 24px; }
.method-head h2 { font-size: var(--s-head); }
.method-head > p { font-size: var(--s-text); color: var(--muted); max-width: 40ch; }
.method-pic { margin: 16px 0 0; }
.method-pic img, .composer-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.slip { grid-column: 7 / -1; max-width: 520px; background: var(--paper); color: var(--paper-ink); padding: 36px 32px 64px; font-size: var(--s-text); font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%); }
.slip-title { font-size: var(--s-lead); letter-spacing: -.02em; }
.slip-group { font-weight: 700; margin-top: 28px; }
.slip-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.slip-rows li { display: grid; grid-template-columns: 1fr; gap: 2px; }
.slip-rows li > i { display: none; }
.slip-rows li > span:first-child { font-weight: 500; }
.slip-rows i { align-self: end; margin-bottom: 6px; height: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%234d5266'/%3E%3C/svg%3E") 0 0 / 8px 4px repeat-x; }
.slip-val { color: var(--paper-muted); }
.slip-rows .tbc { color: var(--paper-muted); }
.slip-end { margin: 28px -32px 0; padding: 0 32px; min-height: 44px; display: flex; align-items: center; background: var(--paper-ink); color: var(--paper); font-weight: 700; }

/* ---------- 6 · composer: the one field of colour ---------- */
.composer { padding: var(--gap) var(--m); background-color: var(--field); color: var(--field-ink); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.composer .dot { color: var(--accent); }
.composer-head { grid-column: 1 / span 5; display: grid; gap: 24px; }
.composer-head h2 { font-size: var(--s-head); }
.composer-head > p { font-size: var(--s-text); max-width: 44ch; }
.composer-pic { margin: 16px 0 0; max-width: 380px; }
.composer-form { grid-column: 7 / -1; display: grid; gap: 28px; }
.composer fieldset { border: 0; margin: 0; padding: 0; }
.composer legend { font: 700 var(--s-lead)/1.2 var(--font-display); letter-spacing: -.015em; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: #fff; color: var(--field-ink); font-size: var(--s-text); font-weight: 500; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.chip:hover span { background: #d3d7ff; }
.chip input:checked + span { background: var(--field-ink); color: var(--field); }
.chip input:active + span { transform: translateY(2px); }
.knot { background: #fff; padding: 16px 20px; }
.knot-svg { display: block; width: 100%; max-width: 420px; height: auto; }
.knot-svg text { font: 500 13px var(--font-text); fill: var(--paper-muted); }
.thread { fill: none; stroke: #c9cde8; stroke-width: 3; stroke-linecap: round; transition: stroke .35s; }
.thread.is-on { stroke: var(--field-ink); }
.knot-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.knot.is-tied .knot-dot { transform: scale(1.35); }
.composer-out { font-size: var(--s-text); min-height: 3em; }
.composer-send { justify-self: start; background: var(--field-ink); color: var(--field); }
.composer-send:hover, .composer-send:focus-visible { background: var(--accent); color: var(--accent-ink); }
.composer-note { font-size: var(--s-small); color: var(--paper-muted); margin-top: -12px; }

/* ---------- 7 · card-flip: Nodo's own card (ivory, indigo slab, the logo) ---------- */
.card-flip .cf-head h2 { font-size: var(--s-head); }
.card-flip .cf-face { box-shadow: none; } /* taste-skill-ignore: removes the component shadow */
.card-flip .cf-front { background: var(--paper); color: var(--paper-ink); }
.card-flip .cf-front .cf-slab { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; background: var(--accent); }
.card-flip .cf-front .cf-logo { position: absolute; left: 9cqw; top: 50%; width: 46cqw; transform: translateY(-50%); fill: var(--paper-ink); }
.card-flip .cf-front .cf-logo .logo-dot { fill: var(--accent); }
.card-flip .cf-front .cf-tag { left: 9cqw; right: auto; bottom: 8cqw; color: var(--paper-muted); letter-spacing: 0; text-transform: none; font: 500 3.2cqw/1 var(--font-text); }
.card-flip .cf-back h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; color: var(--paper-ink); }
.card-flip .cf-back .cf-what { color: var(--paper-muted); }
.card-flip .cf-back .cf-mail a { color: var(--paper-ink); font-weight: 700; }
.card-flip .cf-acts a { border-radius: 0; }
.card-flip .cf-acts a:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- fixed actions and phone menu: the components assume a light page, Nodo's ink is light on a dark ground ---------- */
.cd-bar { background: var(--ground); }
.cd-bar .cd-main { background: var(--paper); color: var(--paper-ink); }
.cd-bar .cd-main:hover, .cd-bar .cd-main:focus-visible { background: var(--accent); color: var(--accent-ink); }
.cd-bar .cd-alt { color: var(--ink); border-color: rgba(246, 244, 239, .4); }
@media (min-width: 768px) { .cd-bar { border-radius: 0; background: var(--ground-2); } .cd-bar a { border-radius: 0; white-space: nowrap; } }
.slip-rows li > span:first-child { font-weight: 700; }
[data-signature="menu-overlay"] .mo-actions .mo-main { color: var(--paper-ink); }
[data-signature="menu-overlay"] .mo-close { font: 700 16px var(--font-text); width: auto; padding: 0 8px; }
[data-signature="menu-overlay"] nav a { font-weight: 700; letter-spacing: -.035em; }

/* ---------- footer: columns above, the wordmark below ---------- */
.foot { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 40px var(--m) calc(20px + var(--bar-h)); background-color: var(--accent); color: var(--accent-ink); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--s-text); }
.foot-cols p + p { margin-top: 6px; }
.foot-k { font-weight: 700; }
.foot-soft { color: var(--accent-ink); }
.foot-cols a { color: var(--accent-ink); }
.foot .tbc { color: var(--accent-ink); }
.foot-mark { align-self: end; grid-row: 3; --la-ink: var(--paper); --la-fill: var(--paper); }
.foot-mark .logo-dot, .foot-mark .la-shape.logo-dot { fill: var(--ground) !important; stroke: var(--ground) !important; }
.foot-mark svg { width: 100%; height: auto; }
.foot-legal { grid-row: 4; margin-top: 20px; font-size: var(--s-small); color: var(--accent-ink); }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --bar-h: calc(72px + env(safe-area-inset-bottom)); --gap: 104px; --s-small: 16px; }
  .top { padding: 14px 16px; }
  .top-logo { width: 92px; }
  .top-links { display: none; }
  .top-menu { display: block; }
  .mo-open { min-height: 48px; padding: 0 4px 0 16px; background: none; border: 0; color: var(--ink); font: 700 16px var(--font-text); }
  .hero { padding: 0 16px 24px; min-height: 92svh; }
  .hero-title { margin-top: max(14svh, 88px); font-size: 15.5vw; line-height: .92; }
  .hl-2 { justify-self: start; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 8svh; }
  .hero-lede { font-size: var(--s-text); }
  .tw .tw-row { font-size: 44px; }
  .tw { padding-block: 110px !important; }

  .hero-cta { justify-items: stretch; }
  .hero-acts { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-risk { text-align: center; }
  .hero-acts .btn { width: 100%; }
  .hero-acts .btn-link { justify-content: center; }
  .scene.intro .scene-stage, .scene.intro.is-live .scene-stage { display: block; padding: 72px 16px; min-height: 0; }
  .intro-title { font-size: 34px; margin-bottom: 28px; }
  .scene.intro .wl-text { font-size: 22px; margin-bottom: 36px; }
  .intro-cols { grid-template-columns: 1fr; gap: 24px; }
  .ctab-cell[data-v="A parte"]:not(.is-key) { display: none; }
  .specimen-pic { display: none; }
  .band img { height: 110vw; }
  .compare { padding: var(--gap) 16px 0; }
  .compare-head { display: block; margin-bottom: 36px; }
  .compare-head h2 { margin-bottom: 18px; }
  .ctab-cols { display: none; }
  .ctab-row { grid-template-columns: 1fr; padding: 18px 16px 0; }
  .ctab-label { padding: 0 0 10px; font-size: 20px; font-weight: 700; }
  .ctab-cell { padding: 6px 0; font-size: var(--s-text); display: flex; gap: 8px; }
  .ctab-cell::before { content: attr(data-col) ": "; color: var(--ink); font-weight: 500; min-width: 9.5em; }
  .ctab-cell.is-key { margin: 6px -16px 0; padding: 12px 16px; }
  .ctab-cell.is-key::before { color: var(--accent-ink); }
  .specimen { padding: var(--gap) 16px 0; }
  .specimen-head { display: block; }
  .specimen-head h2 { margin-bottom: 20px; }
  .sys { grid-template-columns: 1fr; }
  .specimen-pair { grid-template-columns: 1fr; height: auto; gap: 0; margin-top: 48px; }
  .spec { height: 38svh; overflow: hidden; padding: 12px 16px 0; margin: 0 -16px; }
  .spec-glyph { font-size: 62vw; }
  .spec-b { background: var(--ink); color: var(--paper-ink); }
  .spec-b .spec-cap { color: var(--paper-muted); }
  .method, .composer { display: block; padding: var(--gap) 16px; }
  .method-head, .composer-head { margin-bottom: 40px; }
  .slip { padding: 28px 20px 56px; }
  .slip-end { margin: 24px -20px 0; padding: 10px 20px; }
  .composer-pic { display: none; }
  .foot { min-height: 0; padding: 40px 16px calc(24px + var(--bar-h)); }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-mark { margin-top: 18svh; }

}
@media (min-width: 768px) { .cd-bar { --cd-desktop: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.card-flip .scene-stage.material { --veil: .62; }

/* debug switches (?off=grain,film) */
html.no-grain body::after { display: none !important; animation: none !important; }
html.no-film .film figure::before, html.no-film .film figure::after, html.no-film figure.film::before, html.no-film figure.film::after { display: none !important; }
/* tablet portrait: the hero's rest is a quarter of a tall screen, not half */
@media (min-width: 768px) and (max-width: 1099px) { .hero { min-height: min(100svh, 820px); } .hero-foot { margin-top: 6svh; } }
/* S17: the pictures answer the pointer (the grade lifts; transform is left to the scroll drift) */
@media (hover: hover) { .film img { transition: filter .45s var(--ease); } .film:hover img { filter: contrast(1.12) saturate(1.05); } }

/* the number written out, one tap away (phone.md) */
.hero-tel { font-size: var(--s-small); color: var(--muted); }
.hero-tel b { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) { .hero-tel { text-align: center; } }
/* every link to the phone is a real tap target (phone.md: actions 48px+) */
a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 48px; }
.foot-cols a[href^="tel:"] { margin-block: -6px; }

/* ---------- 3b · lavori: form4.fit + 3 progetti dimostrativi, aperti a tutto schermo ---------- */
.works { padding: var(--gap) var(--m) 0; }
.works-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 56px; align-items: start; }
.works-head h2 { grid-column: 1 / span 7; font-size: var(--s-head); }
.works-head p { grid-column: 9 / -1; font-size: var(--s-text); color: var(--muted); max-width: 44ch; }
.works-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; align-items: start; }
.wk { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.wk-pics { position: relative; display: block; overflow: clip; }
.wk-latest .wk-pics { padding: 0 0 6% 0; }
.wk-desk { width: 100%; height: auto; transition: transform .7s var(--ease); }
.wk-phone { position: absolute; right: 4%; bottom: 0; width: 22%; height: auto; transition: transform .7s var(--ease); }
.wk-cap { display: block; margin-top: 14px; font-size: var(--s-text); color: var(--muted); max-width: 60ch; }
.wk-cap b { color: var(--ink); font-weight: 700; }
.wk-cap span { color: #c9ccd8; }
.wk-next { display: grid; gap: 20px; }
.wk-next-title { font-size: var(--s-lead); letter-spacing: -.02em; }
.wk-cover { position: relative; display: block; aspect-ratio: 16 / 10; background-color: var(--ground-2); background-image: url('../img/grain.png'); background-size: 220px 220px; transition: background-color .35s; }
.wk-pics + .wk-cover { display: none; }
.wk-dot { position: absolute; right: 9%; bottom: 14%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: transform .5s var(--ease); }
.wk-demo .wk-cap { margin-top: 10px; }
@media (hover: hover) {
  .wk-latest:hover .wk-desk { transform: scale(1.02); }
  .wk-latest:hover .wk-phone { transform: translateY(-3%); }
  .wk-demo:hover .wk-cover { background-color: #2f3550; }
  .wk-demo:hover .wk-dot { transform: scale(1.6); }
}
.wk:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.wk:active { transform: translateY(1px); }

/* the work opened to the whole screen */
.wk-dialog { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ground); color: var(--ink); }
.wk-dialog::backdrop { background: rgba(32, 36, 53, .7); }
.wk-dialog[open] { display: block; }
.wk-panel { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--m) calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
.wk-close { justify-self: end; min-height: 48px; padding: 0 18px; background: none; border: 1px solid rgba(246, 244, 239, .35); color: var(--ink); font: 700 16px var(--font-text); cursor: pointer; }
.wk-close:hover, .wk-close:focus-visible { background: var(--ink); color: var(--paper-ink); }
.wk-stage { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; justify-items: center; overflow: auto; }
.wk-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wk-stage .wk-big-phone { max-height: 100%; width: auto; }
.wk-stage .wk-empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 20px; text-align: center; width: min(720px, 100%); aspect-ratio: 16 / 10; background-color: var(--ground-2); background-image: url('../img/grain.png'); background-size: 220px 220px; padding: 24px; }
.wk-stage .wk-empty p { font: 700 var(--s-head)/1.05 var(--font-display); letter-spacing: -.035em; margin: 0; }
.wk-stage .wk-empty span { color: var(--muted); }
.wk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.wk-dcap { flex: 1 1 32ch; font-size: var(--s-text); color: var(--muted); }
.wk-dcap b { color: var(--ink); }
html.wk-locked { overflow: hidden; }
@media (max-width: 767px) {
  .works { padding: var(--gap) 16px 0; }
  .works-head { display: block; }
  .works-head h2 { margin-bottom: 16px; }
  .works-grid { grid-template-columns: 1fr; gap: 48px; }
  .wk-next { grid-template-columns: 1fr 1fr; }
  .wk-next-title { grid-column: 1 / -1; }
  .wk-demo:first-of-type { grid-column: 1 / -1; }
  .wk-stage { grid-template-columns: 1fr; }
  .wk-stage .wk-big-desk { display: none; }
}
.wk-cta[hidden] { display: none; }
/* card back: the component sets font-size on the face itself in cqw, which resolves against the viewport (the face is
   its own container); sizes go on its children, so they follow the card */
.card-flip .cf-back { padding: 26px 34px 34px; gap: 10px 28px; align-content: center; }
.card-flip .cf-back > * { font-size: 3.3cqw; line-height: 1.4; }
.card-flip .cf-back address a { color: var(--paper-ink); }
.card-flip .cf-back h3 { font-size: 6.4cqw; }
.card-flip .cf-back p, .card-flip .cf-back address { margin: 0 0 .5em; font-style: normal; }
.card-flip .cf-back [data-open-status] { font-size: 2.4cqw; }
.card-flip .cf-back .cf-acts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.card-flip .cf-back .cf-acts a { font-size: 3cqw; padding: 0 1cqw; min-height: 44px; }
@media (max-width: 767px) { .card-flip .cf-back { padding: 18px 20px 22px; } .card-flip .cf-back > * { font-size: 4.2cqw; } .card-flip .cf-back .cf-acts a { font-size: 3.8cqw; } }
.cd-bar a[href^="tel:"], .card-flip .cf-acts a[href^="tel:"], [data-signature="menu-overlay"] .mo-actions a[href^="tel:"] { display: grid; place-items: center; }

/* ---------- 2 · il nodo (frame-to-full): the component assumes a light ground, Node's ground is ink ---------- */
.scene.node-scene { background: var(--ground); color: var(--ink); }
.scene.node-scene .f2f-title { font: 700 var(--s-head)/1 var(--font-display); letter-spacing: -.035em; color: var(--ink); }
.scene.node-scene .f2f-caption { background: rgba(32, 36, 53, .82); color: var(--ink); font: 500 var(--s-lead)/1.35 var(--font-text); max-width: 30ch; }
@media (max-width: 767px) { .scene.node-scene .f2f-caption { font-size: var(--s-text); } }

/* ---------- the composer's knot: services light up, the two choices draw their own thread and node ---------- */
.knot-svg { max-width: 560px; }
.knot-svg .thread { stroke-dasharray: 1; stroke-dashoffset: 0; }
.knot-svg .thread.out { stroke-dashoffset: 1; stroke: var(--field-ink); transition: stroke-dashoffset .7s var(--ease); }
.knot-svg .thread.out.is-on { stroke-dashoffset: 0; }
.knot-svg .pt { fill: #fff; stroke: #c9cde8; stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: fill .3s, stroke .3s, transform .45s var(--ease); }
.knot-svg .pt.is-on { fill: var(--accent); stroke: var(--accent); transform: scale(1.25); }
.knot-svg .pt-label { font: 500 15px var(--font-text); fill: var(--paper-muted); transition: fill .3s; }
.knot-svg .pt-label.is-on { fill: var(--field-ink); font-weight: 700; }
.knot-svg .knot-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.knot.is-tied .knot-ring { animation: knot-pulse 1.1s var(--ease) 1; }
@keyframes knot-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) { .knot-svg .thread.out { transition: none; } .knot.is-tied .knot-ring { animation: none; } }
@media (max-width: 767px) { .scene.node-scene .f2f-caption { bottom: calc(var(--bar-h) + 16px); } }

/* composer: before a choice nothing waits on the right; the answer appears with its thread */
.knot-svg .pt:not(.is-on) { opacity: 0; }
.knot-svg .pt { transition: opacity .3s, fill .3s, stroke .3s, transform .45s var(--ease); }
.knot-svg .pt-label { font-size: 17px; }

/* ---------- 4 · proofs: three measured figures instead of a type specimen ---------- */
.proofs { padding: var(--gap) var(--m) 0; }
.proofs-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; margin-bottom: 72px; }
.proofs-head h2 { grid-column: 1 / span 7; font-size: var(--s-head); }
.proofs-head p { grid-column: 8 / -1; font-size: var(--s-lead); line-height: 1.4; color: #d6d8e2; }
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.figures li { display: grid; gap: 18px; align-content: start; padding: 32px 28px 36px; background-color: var(--ground-2); }
.figures .fig { font: 700 clamp(64px, 7.4vw, 120px)/.9 var(--font-display); letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.figures li:first-child .fig { color: var(--accent-soft); }
.figures span { font-size: var(--s-lead); line-height: 1.4; color: #d6d8e2; }
.proofs-note { margin-top: 40px; max-width: 62ch; font-size: var(--s-lead); line-height: 1.4; color: #d6d8e2; }
@media (max-width: 1099px) { .figures { grid-template-columns: 1fr; } .figures li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
@media (max-width: 767px) {
  .proofs { padding: var(--gap) 16px 0; }
  .proofs-head { display: block; margin-bottom: 40px; }
  .proofs-head h2 { margin-bottom: 18px; }
  .proofs-head p, .figures span, .proofs-note { font-size: var(--s-text); }
  .figures li { grid-template-columns: 1fr; padding: 24px 20px 28px; }
  .figures .fig { font-size: 64px; }
}
