/* טווים חשיבה · design D ("colour chapters"): brand palette, Heebo, the site's own pictures, one circle */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --ground: #f6f6f4;
  --teal: #a8e0dc;
  --lav: #c5b8e8;
  --lime: #d4e84a;
  --lime-d: #b8cc20;
  --peach: #f5c87a;
  --soft: #4a4a4a;
  --banner: #ecff91;   /* ground of the existing quote banner */
  --drawing: #cbeef0;  /* ground of the existing drawing */

  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  --step-head: clamp(2.25rem, 1rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 1rem + 5.6vw, 6rem);
  --step-poster: clamp(3.5rem, 0.5rem + 8vw, 8.5rem);

  --m: clamp(20px, 3.3vw, 48px);
  --side: 34%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
body { font-family: 'Heebo', sans-serif; font-size: var(--step-body); line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--lime); }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; border-radius: 999px; }
.skip:focus { top: 8px; }

/* the circle runs the system: buttons are fully round */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.btn:hover { background: #333; }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 4px; }
.draft { display: block; background: var(--lime); color: var(--ink); font-size: var(--step-small); font-weight: 700; padding: 10px var(--m); text-decoration: none; text-align: center; }

/* ---------------- top row ---------------- */
.top { display: flex; align-items: center; gap: 28px; padding: 22px var(--m); position: relative; z-index: 3; }
.top .mark img { height: 32px; width: auto; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 24px; font-size: var(--step-small); font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top .btn { min-height: 44px; padding: 0 22px; font-size: var(--step-small); }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 18px; border-radius: 999px; background: var(--ground); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .panel { display: flex; }
.menu .panel { display: none; position: absolute; inset-inline: 12px; top: 100%; flex-direction: column; background: var(--paper); padding: 8px 24px 20px; border-radius: 24px; box-shadow: 0 12px 28px rgba(0,0,0,.14); } /* taste-skill-ignore: open menu floats over the page */
.menu .panel a { padding: 12px 0; font-size: var(--step-lead); font-weight: 700; text-decoration: none; }

/* ---------------- hero: one giant circle, the headline on the bare ground ---------------- */
.phero { position: relative; z-index: 1; overflow: hidden; background: var(--paper); min-height: max(82svh, 640px); display: grid; grid-template-rows: auto 1fr; }
.hero { min-height: max(100svh, 720px); }
.disc { position: absolute; width: 104vh; height: 104vh; max-width: 980px; max-height: 980px; border-radius: 50%; overflow: hidden; left: 20%; top: 56%; transform: translate(-50%, -50%); }
.disc.big { width: 120vh; height: 120vh; max-width: 1100px; max-height: 1100px; left: 22%; top: 55%; }
.disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.disc img[src*="pro.png"] { transform: scale(1.22); object-position: 50% 50%; }
.copy { position: relative; z-index: 2; align-self: center; padding: 24px 8% 48px var(--m); max-width: 54%; }
.copy h1 { font-size: var(--step-display); line-height: .98; letter-spacing: -0.035em; }
.copy h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.copy h1 [data-line] { display: block; }
.copy p { margin: 22px 0 30px; font-size: var(--step-lead); max-width: 36ch; }
.acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.crumb a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

main, .phero { position: relative; z-index: 1; }

/* ---------------- statement tiles (home) ---------------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 38svh 38svh; gap: 8px; padding: 8px; }
.tiles > * { overflow: hidden; display: flex; align-items: flex-end; padding: 20px 24px; }
.t-a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--peach); }
.t-b { grid-column: 9 / 13; grid-row: 1; background: var(--teal); }
.t-c { grid-column: 9 / 13; grid-row: 2; padding: 0 !important; background: var(--banner); }
.t-c img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.t-a h2, .t-b span { font-size: var(--step-poster); line-height: .88; letter-spacing: -0.045em; font-weight: 900; }
.tiles-text { display: grid; grid-template-columns: repeat(12, 1fr); padding: 72px var(--m) 110px; background: var(--ground); margin: 0 8px; }
.tiles-text p { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.45; max-width: 52ch; }

/* ---------------- poster list (home) ---------------- */
.poster { background: var(--lime); padding: 96px var(--m); }
.poster a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; text-decoration: none; padding-block: 2px; }
.poster a b { font-size: var(--step-poster); font-weight: 900; letter-spacing: -0.04em; line-height: .98; transition: color 120ms ease; }
.poster a span { font-size: var(--step-lead); font-weight: 700; text-align: left; max-width: 24ch; line-height: 1.25; }
.poster a:hover b, .poster a:focus-visible b { color: var(--paper); }
.poster .note { color: var(--ink); }

/* the existing quote banner, as its own chapter */
.quote { background: var(--banner); }
.quote img { width: 100%; max-width: 1582px; margin: 0 auto; }

/* ---------------- text chapter ---------------- */
.sec { padding: 120px var(--m); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); background: var(--paper); }
main > .sec:nth-child(even) { background: var(--ground); }
.sec > .side { padding-inline-end: 40px; font-size: var(--step-small); font-weight: 700; padding-top: 12px; }
.sec > .side p { max-width: 34ch; }
.sec > .side p + p { margin-top: 8px; font-weight: 400; font-size: var(--step-body); color: var(--soft); }
.sec > .body > h2 { font-size: var(--step-head); line-height: 1; margin-bottom: 28px; max-width: 16ch; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose .lead { font-size: var(--step-lead); line-height: 1.45; }
.prose ul { margin-top: 16px; padding-inline-start: 1.2em; }
.prose li { max-width: 60ch; margin-bottom: 6px; }
.prose h3 { font-size: var(--step-lead); margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose a { font-weight: 700; }

.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin-top: 40px; }
.defs h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.defs p { max-width: 42ch; }
.dot { width: 28px; height: 28px; border-radius: 50%; flex: none; }

.rows { margin-top: 32px; }
.rows > a, .rows > div { display: grid; grid-template-columns: 22% 1fr auto; gap: 20px; align-items: baseline; padding: 14px 16px; border-radius: 20px; text-decoration: none; }
.rows > a { transition: background-color 160ms ease; }
.rows > a:hover, .rows > a:focus-visible { background: var(--lime); }
.rows .k { color: var(--soft); font-size: var(--step-small); }
.rows b { font-size: var(--step-body); }
.rows .v { font-size: var(--step-small); text-align: left; }
.rows .d { grid-column: 2 / -1; color: var(--soft); max-width: 60ch; margin-top: -6px; }
.rows .grp { margin-top: 28px; }
.note { margin-top: 32px; font-size: var(--step-small); color: var(--soft); max-width: 56ch; }

/* ---------------- colour chapter ---------------- */
.cpage { padding: 130px var(--m); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.cpage > .side { padding-inline-end: 40px; }
.cpage > .side p { max-width: 32ch; }
.cpage h2 { font-size: var(--step-head); line-height: 1; margin-bottom: 40px; max-width: 18ch; }
.cpage .big { list-style: none; }
.cpage .big li { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; padding-block: 10px; max-width: 30ch; }

/* six hats demo */
.cpage label { display: block; font-weight: 700; margin: 28px 0 8px; }
.cpage input { width: 100%; max-width: 380px; font: inherit; padding: 14px 20px; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; }
.hatlist button { display: grid; grid-template-columns: 44px 11ch 1fr; gap: 16px; align-items: center; width: 100%; padding: 12px 14px; background: none; border: 0; border-radius: 999px; font: inherit; color: inherit; text-align: start; cursor: pointer; transition: background-color 160ms ease; }
.hatlist button:hover { background: rgba(255,255,255,.4); }
.hatlist button[aria-pressed="true"] { background: var(--paper); }
.hatlist .dot { width: 32px; height: 32px; box-shadow: inset 0 0 0 2px rgba(26,26,26,.2); } /* taste-skill-ignore: keeps the white hat visible */
.hatlist b { font-size: var(--step-body); }
.hatlist span.r { font-size: var(--step-small); }
.q { margin-top: 28px; background: var(--paper); padding: 28px 32px 32px; border-radius: 28px; }
.q strong { display: block; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.125rem); line-height: 1.2; max-width: 28ch; }
.q small { display: block; margin-top: 12px; font-size: var(--step-body); color: var(--soft); }

/* ---------------- steps that step across ---------------- */
.stairs { padding: 120px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); row-gap: 56px; background: var(--peach); }
.stairs .step p { color: var(--ink); }
.step h3::before { background: var(--paper) !important; }
.stairs > .step:nth-child(1) { grid-column: 1 / -1; }
.stairs > .step:nth-child(2) { grid-column: 3 / -1; }
.stairs > .step:nth-child(3) { grid-column: 5 / -1; }
.stairs > .step:nth-child(4) { grid-column: 7 / -1; }
.stairs > .step:nth-child(5) { grid-column: 9 / -1; }
.step h3 { font-size: var(--step-head); line-height: 1; display: flex; align-items: center; gap: 18px; }
.step h3::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: var(--lime); flex: none; }
.stairs.small .step h3 { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); }
.step p { margin-top: 12px; max-width: 42ch; color: var(--soft); }

/* ---------------- about: a light inset panel, round pictures ---------------- */
.about { margin: 20px; background: var(--teal); padding: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.about h2 { grid-column: 1 / 7; font-size: var(--step-head); line-height: 1; }
.about .lead { grid-column: 1 / 7; margin-top: 24px; font-size: var(--step-lead); max-width: 46ch; }
.about .photo { grid-column: 1 / 8; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 32px; align-items: end; }
.about .photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; background: var(--paper); }
.about .photo img[src*="pro.png"] { transform: scale(1.0); }
.about .photo p { max-width: 32ch; padding-bottom: 24px; }
.about .aside { grid-column: 9 / 13; grid-row: 1 / 4; align-self: center; }
.tile { background: var(--peach); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; max-width: 320px; margin-inline: auto; }
.tile b { font-size: var(--step-poster); line-height: .85; letter-spacing: -0.045em; }
.tile span { font-weight: 700; margin-top: 8px; max-width: 16ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 28px; font-size: var(--step-small); }
.facts dt { color: var(--soft); }
.facts dd { font-weight: 700; }
.facts.wide { grid-template-columns: repeat(3, 1fr); gap: 28px 32px; font-size: var(--step-body); margin-top: 0; }

/* ---------------- closing chapter ---------------- */
.close { position: relative; background: var(--peach); min-height: 60svh; padding: 96px var(--m) 72px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.close .say { grid-column: 1 / 9; }
.close .say p:first-child { font-size: clamp(1.625rem, 1rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.25; max-width: 30ch; }
.close .say a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; transition: background-color 160ms ease; }
.close .say a:hover { background: var(--lime); }
.close .say p + p { margin-top: 32px; }
.close .say p + p a { text-decoration-thickness: 2px; }
.close .face { grid-column: 10 / 13; justify-self: end; width: min(100%, 260px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #2a6f8f; }
.close .face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }

/* ---------------- form ---------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.form label, .form legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: var(--step-small); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; font: inherit; padding: 13px 18px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; }
.form textarea { min-height: 140px; resize: vertical; }
.form fieldset { border: 0; }
.form .checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.form .checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: var(--step-body); margin: 0; cursor: pointer; }
.form .checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.form .fine { font-size: var(--step-small); color: var(--soft); }
.sent { display: none; font-size: var(--step-lead); font-weight: 700; background: var(--lime); padding: 28px; border-radius: 28px; max-width: 760px; }

/* ---------------- footer: a board of tiles ---------------- */
footer { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 8px; background: var(--paper); font-size: var(--step-small); }
footer > * { padding: 22px; min-height: 220px; }
footer a { text-decoration: none; }
footer nav a, .f-small a { display: block; padding-block: 3px; }
footer a:hover { text-decoration: underline; }
footer nav span { display: block; font-weight: 700; margin-bottom: 6px; }
.f-say { grid-column: 1 / 4; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.f-say small { font-size: var(--step-small); }
.f-say p { font-size: var(--step-lead); font-weight: 700; line-height: 1.3; max-width: 22ch; }
.f-nav { grid-column: 4 / 7; background: var(--teal); }
.f-legal { grid-column: 7 / 10; background: var(--ground); }
.f-mail { grid-column: 10 / 13; background: var(--lav); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.f-mail a { font-size: var(--step-lead); font-weight: 700; }
.f-word { grid-column: 1 / 7; background: var(--ground); min-height: 300px; display: flex; align-items: center; justify-content: center; }
.f-word img { width: min(76%, 560px); }
.f-small { grid-column: 7 / 9; background: var(--peach); min-height: 300px; }
.f-go { grid-column: 9 / 13; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; transition: background-color 160ms ease; }
.f-go:hover { background: var(--lime-d); text-decoration: none; }
.f-go b { font-size: clamp(1.5rem, 1rem + 1vw, 1.75rem); line-height: 1.2; }
.f-go svg { width: 56px; height: 56px; flex: none; margin-inline-start: auto; }

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .copy h1 [data-line] { transform: translateY(105%); animation: up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 300ms); }
  .js .copy p, .js .copy .acts { opacity: 0; animation: fade 700ms var(--ease-out) 800ms forwards; }
  .js .disc { clip-path: circle(0% at 50% 50%); animation: shutter 1100ms cubic-bezier(0.76, 0, 0.24, 1) 100ms forwards; }
  .js .disc img { scale: 1.12; animation: settle 1500ms cubic-bezier(0.33, 1, 0.68, 1) 100ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .close .face img { animation: drift 16s ease-in-out infinite alternate; }
}
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes shutter { to { clip-path: circle(75% at 50% 50%); } }
@keyframes settle { to { scale: 1; } }
@keyframes drift { from { transform: scale(1.22); } to { transform: scale(1.3); } }

/* ---------------- phone ---------------- */
@media (max-width: 960px) {
  .top nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 860px) {
  :root { --side: 0; }
  .phero { min-height: 0; grid-template-rows: auto auto 64vw; }
  .hero { grid-template-rows: auto auto 78vw; }
  .copy { max-width: none; padding: 6svh var(--m) 24px; align-self: start; }
  .copy h1 { font-size: 11.5vw; }
  .copy p { font-size: var(--step-body); }
  .disc, .disc.big { width: 130vw; height: 130vw; max-width: none; max-height: none; left: 50%; top: auto; bottom: -62vw; transform: translateX(-50%); }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh 44vw; gap: 6px; padding: 6px; }
  .t-a { grid-column: 1 / -1; grid-row: 1; }
  .t-b { grid-column: 1; grid-row: 2; }
  .t-c { grid-column: 2; grid-row: 2; }
  .t-a h2, .t-b span { font-size: 15vw; }
  .tiles-text { padding: 40px 20px 72px; margin: 0 6px; }
  .tiles-text p { grid-column: 1 / -1; font-size: var(--step-body); }
  .poster { padding-block: 64px; }
  .poster a { flex-direction: column; gap: 2px; margin-bottom: 20px; }
  .poster a b { font-size: 12vw; }
  .poster a span { text-align: start; font-size: var(--step-body); }
  .sec, .cpage { grid-template-columns: minmax(0, 1fr); padding-block: 88px; }
  .sec > .side { order: 2; padding: 24px 0 0; font-size: var(--step-body); }
  .sec > .side > p:first-child { display: none; }
  .cpage > .side { order: 2; }
  .cpage { gap: 32px; }
  .sec > .body > h2, .cpage h2 { font-size: 9vw; }
  .sec > .body > h2[style*="20ch"] { font-size: 1.625rem; }
  .defs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rows > a, .rows > div { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
  .rows .k { grid-column: 1 / -1; }
  .rows .d { grid-column: 1 / -1; margin-top: 0; }
  .hatlist button { grid-template-columns: 36px 1fr; border-radius: 22px; }
  .hatlist span.r { grid-column: 2; }
  .q strong { font-size: var(--step-lead); }
  .stairs { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-block: 88px; }
  .stairs > .step:nth-child(n) { grid-column: 1; }
  .stairs > .step:nth-child(2) { padding-inline-start: 6vw; } .stairs > .step:nth-child(3) { padding-inline-start: 12vw; }
  .stairs > .step:nth-child(4) { padding-inline-start: 18vw; } .stairs > .step:nth-child(5) { padding-inline-start: 24vw; }
  .step h3, .stairs.small .step h3 { font-size: 8.4vw; }
  .about { margin: 10px; padding: 32px 20px; grid-template-columns: minmax(0, 1fr); }
  .about h2, .about .lead, .about .photo, .about .aside { grid-column: 1; grid-row: auto; }
  .about h2 { font-size: 9vw; }
  .about .photo { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .about .photo img { width: 80vw; margin-inline: auto; }
  .about .aside { margin-top: 32px; }
  .tile { max-width: 240px; }
  .facts.wide { grid-template-columns: 1fr 1fr; }
  .close { grid-template-columns: minmax(0, 1fr); padding: 64px 20px 48px; gap: 32px; }
  .close .say, .close .face { grid-column: 1; }
  .close .say p:first-child { font-size: 1.375rem; }
  .close .face { width: 140px; justify-self: start; }
  .form { grid-template-columns: minmax(0, 1fr); }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .f-mail a { font-size: var(--step-body); overflow-wrap: anywhere; }
  footer > * { min-height: 0; grid-column: auto; }
  .f-word { grid-column: 1 / -1; order: -2; min-height: 150px; }
  .f-go { grid-column: 1 / -1; order: -1; min-height: 150px; }
  .f-nav { order: 1; } .f-legal { order: 2; } .f-mail { order: 3; } .f-small { order: 4; min-height: 0; } .f-say { order: 5; grid-column: 1 / -1; }
}
