/* valentinapaz v2 · warm blocks, editorial serif + sans, thin-line diagrams */
:root {
  --bg: #F1EBE1;
  --paper: #FAF6EF;
  --ink: #241A16;
  --ink-2: #4A3F39;
  --ink-3: #8A7E75;
  --line: rgba(36, 26, 22, .16);
  --terra: #DE6A3C;
  --peach: #F3B48C;
  --lilac: #B7B0E0;
  --lime: #D8DE6A;
  --butter: #EECB6B;
  --cocoa: #3B2621;
  --olive: #2F3026;
  --sage: #C9D7B0;
  --r: 22px;
  --gap: 14px;
  --max: 1280px;
  --gutter: clamp(16px, 3.5vw, 44px);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.0; letter-spacing: -0.03em; margin: 0; }
.display em { font-style: italic; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; opacity: .75; }
.body { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin: 0; }
.big-num { font-family: var(--sans); font-weight: 400; font-size: clamp(52px, 6vw, 86px); line-height: .95; letter-spacing: -0.045em; margin: 0; font-variant-numeric: tabular-nums; }
.big-num .arrow { font-family: var(--serif); font-weight: 300; opacity: .55; margin: 0 .08em; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 18px; }
.nav .name { font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.nav .links { display: flex; gap: 22px; font-size: 14.5px; }
.nav .links a { text-decoration: none; opacity: .8; }
.nav .links a:hover { opacity: 1; }

/* bento */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.b { border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.b.flush { padding: 0; }
.b .foot { margin-top: auto; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.tall { min-height: 460px; } .xtall { min-height: 560px; }

.paper { background: var(--paper); }
.terra { background: var(--terra); color: #FFF7EF; }
.peach { background: var(--peach); }
.lilac { background: var(--lilac); }
.lime { background: var(--lime); }
.butter { background: var(--butter); }
.sage { background: var(--sage); }
.cocoa { background: var(--cocoa); color: #F6EDE4; }
.olive { background: var(--olive); color: #EFEBDD; }
.cocoa .body, .olive .body, .terra .body { color: inherit; opacity: .82; }

/* link tiles */
a.b { transition: transform .5s var(--ease); }
a.b:hover { transform: translateY(-3px); }
.go { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; margin-top: 18px; }
.go i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-style: normal; transition: transform .4s var(--ease); }
.cocoa .go i, .olive .go i, .terra .go i { background: var(--paper); color: var(--ink); }
a.b:hover .go i { transform: translateX(4px); }
.soon { font-size: 12px; opacity: .6; margin-top: 14px; }

/* hero */
.hero { position: relative; }
.hero .glow { position: absolute; width: 62%; aspect-ratio: 1; right: -8%; top: -30%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(222,106,60,.85), rgba(243,180,140,.55) 38%, rgba(183,176,224,.35) 60%, transparent 72%);
  filter: blur(40px); pointer-events: none; }
.hero .display { position: relative; max-width: 14ch; }
.hero .intro { position: relative; font-size: 17px; max-width: 46ch; color: var(--ink-2); margin: 26px 0 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.chip { display: inline-block; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(6px); }
.photo .chip { position: absolute; left: 16px; bottom: 16px; }

/* media */
.shot { margin-top: auto; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(36,26,22,.35); }
.shot img { width: 100%; }
.bleed { position: absolute; inset: 0; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.over { position: relative; z-index: 1; }
.scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,10,.62), transparent 55%); }
.placeholder { border: 1.5px dashed currentColor; opacity: .55; border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 13px; padding: 20px; min-height: 160px; margin-top: auto; }

/* thin-line diagrams */
.lines { stroke: currentColor; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dg text { font-family: var(--sans); font-size: 11px; fill: currentColor; }
.dg .lbl { font-size: 12.5px; }
.dg .soft { opacity: .55; }

/* section heads */
.sec { margin: clamp(64px, 9vw, 120px) 0 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sec p { margin: 0; color: var(--ink-3); max-width: 42ch; }

/* quotes */
.quote { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.who { font-size: 13px; opacity: .7; margin-top: auto; padding-top: 18px; }

/* heatmap */
.gh { width: 100%; height: auto; margin-top: 22px; }
.gh-months { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* footer */
.footer { margin: clamp(64px, 9vw, 120px) 0 40px; }
.footer .b { min-height: 300px; }
.mail { background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-size: 15px; cursor: pointer; margin-top: 24px; align-self: flex-start; }

/* ---------- case pages ---------- */
.back { font-size: 14px; text-decoration: none; opacity: .75; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: auto; padding-top: 28px; }
.facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.rule-n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; opacity: .6; margin-bottom: auto; padding-bottom: 28px; }
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.cocoa .list li, .olive .list li { border-color: rgba(255,255,255,.18); color: inherit; }
.cap { font-size: 13.5px; opacity: .72; margin: 14px 0 0; max-width: 48ch; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; margin-top: 12px; }
.bar { height: 10px; border-radius: 999px; background: rgba(36,26,22,.12); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); transform-origin: left; }
.next { text-decoration: none; }

/* reveals */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .s3, .s4, .s5 { grid-column: span 6; }
  .s6, .s7, .s8 { grid-column: span 12; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid > * { grid-column: span 12 !important; }
  .tall, .xtall { min-height: 340px; }
  .nav .links { gap: 14px; font-size: 13.5px; }
  .hero .glow { width: 110%; right: -40%; top: -10%; }
  .bar-row { grid-template-columns: 92px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } a.b, .go i { transition: none; } }

/* ===== v2: minimal ===== */
:root { --gap: 22px; --sand: #E4D7C6; }
.sand { background: var(--sand); }
.b { padding: clamp(24px, 3vw, 40px); }
.sec { margin: clamp(96px, 12vw, 160px) 0 32px; }

/* hero, minimal */
.hero-min { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: end; position: relative; padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-min .glow { position: absolute; width: 520px; aspect-ratio: 1; left: 30%; top: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(222,106,60,.55), rgba(243,180,140,.3) 45%, transparent 70%); filter: blur(50px); pointer-events: none; z-index: 0; }
.hero-min .txt { position: relative; z-index: 1; }
.hero-min .intro { font-size: 17px; color: var(--ink-2); max-width: 44ch; margin: 28px 0 0; }
.hero-min .pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.hero-min .pic img { width: 100%; height: 120%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); padding-top: 28px; }
.stats p { margin: 0; }
.stats .big-num { font-size: clamp(44px, 5vw, 72px); }
.stats .lab { font-size: 14px; color: var(--ink-3); margin-top: 10px; max-width: 26ch; }

/* cover cards */
.cover { border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .6s var(--ease); }
a.cover:hover { transform: translateY(-4px); }
.cover .frame { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; position: relative; background: rgba(255,255,255,.35); }
.cover .frame > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cover .frame .par { position: absolute; inset: -8% 0; }
.cover .frame .par img { width: 100%; height: 100%; object-fit: cover; }
.cover .frame svg { position: absolute; inset: 12%; width: 76%; height: 76%; }
.cover .frame .ui { position: absolute; left: 8%; right: 8%; top: 12%; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 44px -22px rgba(36,26,22,.45); }
.cover .frame .ui img { width: 100%; }
.cover .cap2 { padding: 20px 10px 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: end; }
.cover .co { font-size: 13px; opacity: .65; grid-column: 1 / -1; }
.cover .ti { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.cover .st { font-size: 14px; opacity: .75; white-space: nowrap; }
.cover .soon2 { font-size: 12px; opacity: .5; }
.duo { filter: url(#duo); }

/* quotes, quiet */
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line); padding-top: 32px; }
.qrow .who { margin-top: 14px; padding: 0; }

@media (max-width: 900px) { .hero-min { grid-template-columns: 1fr; } .hero-min .pic { max-width: 420px; } .stats { grid-template-columns: 1fr; } .qrow { grid-template-columns: 1fr; } }
.cover.cocoa { color: #F6EDE4; }
.cover.terra { color: #FFF7EF; }
.gh { max-height: 150px; }

/* ===== product mockups (English, simplified) ===== */
.mock { border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 22px 46px -24px rgba(36,26,22,.45); font-family: 'Google Sans', var(--sans); }
.mk-build { aspect-ratio: 16/10; background: radial-gradient(120% 90% at 30% 20%, #F49AC4 0%, #F28FB4 35%, #F6A07A 75%, #F7A35A 100%); color: #fff; position: relative; padding: 6% 5%; }
.mk-build h4 { margin: 0; text-align: center; font-size: clamp(16px, 1.7vw, 22px); font-weight: 600; }
.mk-build .sub { text-align: center; font-size: 12px; opacity: .9; margin-top: 4px; }
.mk-build .ring { position: absolute; left: 50%; top: 56%; width: 30%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 40px rgba(255,255,255,.6), inset 0 0 30px rgba(255,255,255,.35); display: grid; place-items: center; font-weight: 600; font-size: clamp(14px, 1.5vw, 20px); }
.mk-build .ring::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; border-right-color: #fff; }
.mk-build .src { position: absolute; left: 5%; display: flex; flex-direction: column; gap: 10px; top: 34%; }
.mk-build .steps { position: absolute; right: 5%; top: 30%; display: flex; flex-direction: column; gap: 6px; }
.mk-pill { background: #fff; color: #241A16; border-radius: 999px; padding: 7px 12px; font-size: 11.5px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.mk-pill small { display: block; color: #6b6b6b; font-size: 10px; }
.mk-pill.dim { background: rgba(255,255,255,.35); color: #5a2f2a; }
.mk-pill .ok { width: 14px; height: 14px; border-radius: 50%; background: #241A16; color: #fff; font-size: 9px; display: grid; place-items: center; flex: none; }
.mk-pill .spin { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed #E46C9B; flex: none; }
.mk-build .tip { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); background: #fff; color: #241A16; border-radius: 999px; padding: 6px 14px; font-size: 11px; white-space: nowrap; }

.mk-q { background: #F7F7F9; padding: 6% 6% 0; color: #1d1d1f; }
.mk-q .eyebrow2 { color: #E0473E; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.mk-q h4 { margin: 6px 0 6px; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.2; font-weight: 600; }
.mk-q .sub { font-size: 11.5px; color: #555; max-width: 52ch; }
.mk-q .prog { display: flex; align-items: center; gap: 10px; font-size: 10.5px; margin: 12px 0 14px; }
.mk-q .prog .track { flex: 1; height: 4px; border-radius: 4px; background: #e6e6ea; position: relative; }
.mk-q .prog .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 12%; border-radius: 4px; background: linear-gradient(90deg,#F2789F,#9C7BEA); }
.mk-q .saved { border: 1px solid #ddd; border-radius: 999px; padding: 3px 9px; background: #fff; }
.mk-q .saved::before { content: "●"; color: #2DBE6C; margin-right: 5px; }
.mk-card { background: #fff; border: 1px solid #e8e8ec; border-radius: 12px 12px 0 0; padding: 14px 16px; }
.mk-card .topic { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.mk-card .q { font-size: 12.5px; line-height: 1.4; margin: 0 0 9px; }
.mk-card .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-card .opts span { border: 1px solid #d6d6dc; border-radius: 999px; padding: 5px 11px; font-size: 11px; }
.mk-card .opts span.sel { border-color: #241A16; background: #241A16; color: #fff; }
.mk-card .def { font-size: 10px; color: #8a8a90; margin-top: 7px; }
.mk-card hr { border: 0; border-top: 1px solid #eee; margin: 12px 0; }
.mk-card .clin { display: inline-block; background: #FDE4E7; color: #C2253B; font-size: 9.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
@media (max-width: 640px) { .mk-build .src, .mk-build .steps { transform: scale(.78); transform-origin: left top; } .mk-build .steps { transform-origin: right top; } }
.mk-build .ring { left: 30%; top: 55%; width: 32%; }
.mk-build .steps { right: 6%; top: 27%; gap: 5px; }
.mk-build .steps .mk-pill { padding: 5px 11px; font-size: 11px; min-width: 190px; }
.mk-build .tip { bottom: 5%; font-size: 10.5px; }
.mk-build { aspect-ratio: 4/3; }
.mk-build .steps { top: 30%; }
.mk-build .ring { top: 58%; }
/* micro-animations on the mockups */
.mk-build .ring::after { animation: mkspin 2.4s linear infinite; }
@keyframes mkspin { to { transform: rotate(360deg); } }
.mk-pill, .mk-card .opts span, .mk-q .track i { transition: background .35s, color .35s, border-color .35s, width .6s cubic-bezier(.2,.7,.2,1); }
.mk-q .saved.pulse { animation: mkpulse .8s ease; }
@keyframes mkpulse { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.mk-pill .spin { animation: mkspin 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mk-build .ring::after, .mk-pill .spin { animation: none; } }
