/* ==========================================================
   kaankoroglu.org
   One explicit size system (breakpoint tokens), no unit tricks:
   - sizes come from tokens that change at fixed breakpoints
   - the visible screen height comes from --app-h (JS keeps it exact)
   - image frames use the padding-top ratio method (works everywhere)
   Sharp corners only.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Instrument+Serif&display=swap');

:root {
    --bg: #fcfbf6;
    --bg-2: #f4f2ea;
    --ink: #1c1c1c;
    --ink-2: #4b4a46;
    --ink-3: #8d8b84;
    --line: #dedbd1;
    --accent: #6c42f5;

    --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    /* real visible height (JS overwrites with window.innerHeight) */
    --app-h: 100vh;

    /* size tokens: phone first */
    --pad: 18px;
    --hdr: 68px;
    --fs-body: 16px;
    --fs-name: 68px;      /* hero / about name (serif) */
    --fs-h1: 50px;        /* page titles */
    --fs-h1b: 38px;       /* project titles */
    --fs-h2: 32px;        /* section / case titles */
    --fs-h3: 22px;
    --fs-lead: 18px;
    --fs-small: 14px;
    --sec-y: 56px;
}
@media (min-width: 640px) {
    :root { --pad: 26px; --hdr: 76px; --fs-name: 112px; --fs-h1: 88px; --fs-h1b: 62px; --fs-h2: 42px; --fs-h3: 26px; --fs-lead: 20px; --sec-y: 72px; }
}
@media (min-width: 1024px) {
    :root { --pad: 34px; --hdr: 84px; --fs-name: 128px; --fs-h1: 132px; --fs-h1b: 88px; --fs-h2: 54px; --fs-h3: 30px; --fs-lead: 22px; --sec-y: 96px; }
}
@media (min-width: 1440px) {
    :root { --pad: 42px; --fs-name: 156px; --fs-h1: 168px; --fs-h1b: 112px; --fs-h2: 64px; --fs-h3: 34px; --fs-lead: 24px; --sec-y: 112px; }
}
@media (min-width: 1920px) {
    :root { --pad: 60px; --hdr: 96px; --fs-body: 18px; --fs-name: 204px; --fs-h1: 210px; --fs-h1b: 140px; --fs-h2: 80px; --fs-h3: 40px; --fs-lead: 28px; --fs-small: 16px; --sec-y: 140px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: var(--fs-body); line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--ink); color: var(--bg); }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--accent); }

.wrap { width: 100%; max-width: 2000px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 400; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.ul { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.2s; }
.ul:hover { color: var(--accent); }
.muted { color: var(--ink-3); }

main { position: relative; z-index: 1; }

/* faint 4-column grid behind everything */
.gridlines { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--pad); }
.gridlines i { border-left: 1px solid rgba(28, 28, 28, 0.06); }
.gridlines i:last-child { border-right: 1px solid rgba(28, 28, 28, 0.06); }
@media (max-width: 639px) { .gridlines { grid-template-columns: repeat(2, 1fr); } .gridlines i:nth-child(n+3) { display: none; } .gridlines i:nth-child(2) { border-right: 1px solid rgba(28, 28, 28, 0.06); } }

/* scroll reveal */
html.js-ready .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js-ready .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
html:not(.js) .rv, html.reveal-fail .rv { opacity: 1 !important; transform: none !important; }

/* ==========================================================
   HEADER + MENU
   ========================================================== */
.hdr { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--hdr); padding: 20px var(--pad) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; font-size: var(--fs-small); font-weight: 600; line-height: 1.25; pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr-r { justify-self: end; transition: color 0.2s; }
.hdr-r:hover { color: var(--accent); }
.hdr-menu { display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-small); }
.hdr-menu .burger { margin-right: 10px; }
.burger { position: relative; width: 22px; height: 9px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 8px; }
.hdr-menu.open .burger i:nth-child(1) { top: 4px; transform: rotate(45deg); }
.hdr-menu.open .burger i:nth-child(2) { top: 4px; transform: rotate(-45deg); }
/* on scroll, pages with normal flow get a paper fade behind the header */
html.scrolled .hdr { background: linear-gradient(to bottom, rgba(252, 251, 246, 0.96) 55%, rgba(252, 251, 246, 0)); }

.menu { position: fixed; top: 0; left: 0; right: 0; height: var(--app-h); z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 24px) var(--pad) 24px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s; overflow-y: auto; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu li { overflow: hidden; }
.menu li a { display: inline-block; font-size: 44px; line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; transform: translateY(105%); transition: transform 0.8s var(--ease), color 0.2s; }
@media (min-width: 640px) { .menu li a { font-size: 72px; } }
@media (min-width: 1024px) { .menu li a { font-size: 92px; } }
@media (min-width: 1440px) { .menu li a { font-size: 112px; } }
.menu.open li a { transform: none; }
.menu.open li:nth-child(2) a { transition-delay: 0.05s, 0s; }
.menu.open li:nth-child(3) a { transition-delay: 0.1s, 0s; }
.menu.open li:nth-child(4) a { transition-delay: 0.15s, 0s; }
.menu.open li:nth-child(5) a { transition-delay: 0.2s, 0s; }
.menu li a:hover { color: var(--accent); }
.menu-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-top: 24px; font-size: var(--fs-small); font-weight: 600; }
.menu-foot > div { margin-right: 28px; margin-top: 12px; }
.menu-foot a { display: block; margin-top: 6px; }
.menu-foot a:hover { color: var(--accent); }
.menu-legal a { display: inline-block; margin-right: 18px; color: var(--ink-3); }

/* ==========================================================
   HOME (single screen, no scrolling)
   ========================================================== */
body.home { overflow: hidden; height: var(--app-h); }
body.home .foot { display: none; }

.hero { position: relative; height: var(--app-h); min-height: 520px; overflow: hidden; background: var(--bg); isolation: isolate; }
body.home .hero { min-height: 0; }
.smoke { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; animation: smokeIn 2.6s var(--ease) 0.05s forwards; transition: opacity 0.9s; }
@keyframes smokeIn { from { opacity: 0; transform: scale(1.1); } to { opacity: var(--smoke-o, 1); transform: scale(1); } }
.hero[data-mode="bold"] .smoke { animation: none; opacity: 0; }

.hero-name { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--hdr) + 14px); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: calc(var(--fs-name) * 0.86); line-height: 0.95; letter-spacing: -0.05em; }
.hero-name .ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-name .ch { display: inline-block; transform: translateY(130%); animation: chIn 1.2s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.06s); }
@keyframes chIn { to { transform: none; } }

.hero-sub { position: absolute; z-index: 3; left: var(--pad); top: calc(var(--hdr) + 14px + var(--fs-name) * 0.86 * 1.9 + 28px); width: 300px; max-width: 70vw; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.025em; }
.hero-sub p + p { margin-top: 16px; }

.hero-fig { position: absolute; z-index: 2; left: 50%; bottom: 0; height: calc(var(--app-h) * 0.86); max-height: 1100px; transform: translateX(-50%); pointer-events: none; transition: height 0.9s var(--ease); }
.hero-fig img, .hero-fig canvas { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
.hero-fig { width: calc(var(--app-h) * 0.86 * 0.331); max-width: 90vw; }
.hero-fig img.ph { opacity: 0.14; }
.fig-canvas { visibility: hidden; }
.hero-fig.has-canvas img { visibility: hidden; }
.hero-fig.has-canvas .fig-canvas { visibility: visible; }
.hero[data-mode="bold"] .hero-fig.has-canvas img { visibility: visible; }
.hero[data-mode="bold"] .hero-fig.has-canvas .fig-canvas { visibility: hidden; }
.hero[data-mode="bold"] .hero-fig { height: calc(var(--app-h) * 0.9); width: calc(var(--app-h) * 0.9 * 0.331); }
.fig-note { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-3); width: 240px; }

.hero-bl { position: absolute; z-index: 3; left: var(--pad); bottom: 22px; font-size: var(--fs-small); font-weight: 600; }
.hero-br { position: absolute; z-index: 3; right: var(--pad); bottom: 22px; text-align: right; font-size: var(--fs-small); font-weight: 600; }
.hero-br a { display: table; margin-left: auto; margin-top: 12px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.2s; }
.hero-br a:hover { color: var(--accent); }

.hero [data-in] { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.hero .hdr-dummy { display: none; }
.hero [data-in="2"] { animation-delay: 1s; }
.hero [data-in="3"] { animation-delay: 0.75s; animation-duration: 1.7s; }
.hero [data-in="4"] { animation-delay: 1.3s; }
.hero .hero-fig[data-in] { transform: translate(-50%, 70px); animation-name: riseFig; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes riseFig { to { opacity: 1; transform: translateX(-50%); } }
.hdr > * { opacity: 0; transform: translateY(-10px); animation: rise 0.9s var(--ease) 0.2s forwards; }

.panel-fine { transition: opacity 0.6s var(--ease); }
.hero[data-mode="bold"] .panel-fine { opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s linear 0.45s; pointer-events: none; }

/* Bold layout */
.panel-bold { pointer-events: none; }
.bold-words { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; mix-blend-mode: difference; color: #fff; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.9s; }
.hero[data-mode="bold"] .bold-words { visibility: visible; transition: visibility 0s; }
.bw { position: absolute; font-weight: 800; text-transform: uppercase; letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; opacity: 0; transition: transform 1s var(--ease), opacity 0.6s; font-size: 19vw; }
.bw1 { left: var(--pad); top: calc(var(--hdr) + 12px); transform: translateX(-14%); }
.bw2 { left: var(--pad); top: calc(var(--hdr) + 12px + 16vw); transform: translateX(14%); }
.bw3 { left: 0; bottom: 70px; font-size: 14vw; transform: translateY(40%); }
.bw3::before { content: ''; display: inline-block; width: 0.9em; height: 0.1em; background: currentColor; margin-right: 0.12em; vertical-align: 0.26em; }
@media (min-width: 640px) {
    .bw1, .bw2 { font-size: 12.6vw; top: calc(var(--hdr) + 14px); }
    .bw2 { left: auto; right: var(--pad); }
    .bw3 { font-size: 10.4vw; bottom: 64px; }
}
.hero[data-mode="bold"] .bw { opacity: 1; transform: none; }
.hero[data-mode="bold"] .bw2 { transition-delay: 0.08s; }
.hero[data-mode="bold"] .bw3 { transition-delay: 0.16s; }

.bold-info { position: absolute; z-index: 5; left: var(--pad); bottom: 120px; width: 170px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s, transform 0.8s var(--ease), visibility 0s linear 0.5s; pointer-events: auto; font-size: 14px; line-height: 1.3; }
.hero[data-mode="bold"] .bold-info { opacity: 1; visibility: visible; transform: none; transition-delay: 0.45s, 0.45s, 0s; }
.bold-info a { display: table; transition: color 0.2s; }
.bold-info a:hover { color: var(--accent); }
.bi-name { font-size: 19px; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 6px; }
.bi-desc, .bi-loc, .bi-mail { display: none; }
.bi-cta { border-bottom: 1px solid currentColor; margin-bottom: 6px; font-weight: 600; }
@media (min-width: 900px) {
    .bold-info { left: 64%; top: 29%; bottom: auto; width: 300px; font-size: 16px; }
    .bi-name { font-size: 32px; margin-bottom: 8px; }
    .bi-desc { display: block; font-size: 19px; letter-spacing: -0.03em; margin-bottom: 10px; }
    .bi-loc { display: block; color: var(--ink-3); margin-bottom: 16px; }
    .bi-mail { display: table; font-size: 20px; font-weight: 600; margin: 4px 0; }
}

.mode { position: absolute; z-index: 6; bottom: 22px; right: 86px; font-size: var(--fs-small); font-weight: 600; }
.mode > span, .mode i { color: var(--ink-3); font-style: normal; margin-right: 6px; }
.mode-btn { color: var(--ink-3); transition: color 0.2s; margin-right: 6px; }
.mode-btn:hover { color: var(--ink); }
.mode-btn.is-on { color: var(--ink); border-bottom: 1px solid currentColor; }
@media (min-width: 900px) { .mode { right: auto; left: 64%; } }
@media (max-width: 639px) { .hero-br { display: none; } }

/* Phone hero: name on top, text bottom-left, figure bottom-right */
@media (max-width: 639px) {
    .hero-sub { top: auto; bottom: 64px; width: 176px; font-size: 15px; }
    .hero-sub p + p { display: none; }
    .hero-fig { left: auto; right: -2%; transform: none; height: calc(var(--app-h) * 0.6); width: calc(var(--app-h) * 0.6 * 0.331); bottom: 52px; }
    .hero .hero-fig[data-in] { transform: translateY(50px); animation-name: rise; }
    .hero[data-mode="bold"] .hero-fig { height: calc(var(--app-h) * 0.64); width: calc(var(--app-h) * 0.64 * 0.331); }
    .mode { bottom: 18px; right: var(--pad); }
    .hero-bl { bottom: 18px; }
}
@media (min-width: 640px) and (max-width: 899px) {
    .hero-fig { height: calc(var(--app-h) * 0.8); width: calc(var(--app-h) * 0.8 * 0.331); }
}

/* ==========================================================
   INNER PAGES
   ========================================================== */
.sec { padding: var(--sec-y) 0; }
.sec-tight { padding: calc(var(--sec-y) * 0.6) 0; }
.sec-line { border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; font-size: var(--fs-small); font-weight: 600; }
.sec-head h2 { font-weight: 600; font-size: var(--fs-small); letter-spacing: -0.01em; }
.big-statement { font-size: calc(var(--fs-h2) * 0.8); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; max-width: 26ch; }

.ph-top { padding: calc(var(--hdr) + 34px) 0 24px; }
.ph-top h1 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.05em; font-weight: 600; }
.ph-top h1 sup { font-size: 0.12em; letter-spacing: 0; vertical-align: top; margin-left: 8px; color: var(--ink-3); font-weight: 600; position: relative; top: 0.9em; }
.ph-top p { margin-top: 20px; max-width: 460px; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.025em; }
.ph-top.sm h1 { font-size: calc(var(--fs-h1) * 0.5); line-height: 1; }

/* About */
.ab-hero { position: relative; min-height: var(--app-h); padding: calc(var(--hdr) + 24px) 0 90px; display: flex; flex-direction: column; justify-content: center; }
.ab-name { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: calc(var(--fs-name) * 0.86); line-height: 0.95; letter-spacing: -0.05em; text-align: center; }
.ab-intro { margin: 40px 0 0 auto; width: 100%; max-width: 380px; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.025em; }
.ab-intro p + p { margin-top: 16px; }
@media (max-width: 639px) { .ab-name { text-align: left; } .ab-intro { margin-left: 0; } }
.down { position: absolute; left: 50%; bottom: 28px; width: 48px; height: 48px; margin-left: -24px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-size: 18px; transition: background 0.2s; }
.down:hover { background: var(--accent); }

.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells.c4 { grid-template-columns: 1fr; }
.cells.c3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cells.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cells.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cells.c4 { grid-template-columns: repeat(4, 1fr); } }
.cell { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 240px; display: flex; flex-direction: column; transition: background 0.3s; }
.cell:hover { background: var(--bg-2); }
.cell .n { font-size: 13px; color: var(--ink-3); margin-bottom: auto; padding-bottom: 36px; }
.cell h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; margin-bottom: 10px; }
.cell p { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.cell .tags { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.cell .tags span { display: inline-block; margin-right: 12px; }

.band { background: var(--ink); color: var(--bg); }
.band-in { display: grid; grid-template-columns: 1fr; padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.band h2 { font-weight: 600; font-size: var(--fs-h1b); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: 20px; }
.band p { color: rgba(252, 251, 246, 0.72); max-width: 420px; font-size: var(--fs-lead); line-height: 1.35; margin-bottom: 20px; }
@media (min-width: 900px) { .band-in { grid-template-columns: 1fr 1fr; align-items: end; } .band h2 { margin-bottom: 0; } .band p { margin-bottom: 20px; } }

.closer { border-top: 1px solid var(--line); }
.closer-in { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.closer-q { font-size: var(--fs-h1b); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; margin-bottom: 28px; }
.closer-links { font-size: var(--fs-lead); font-weight: 600; }
.closer-links a { display: inline-block; margin: 0 28px 10px 0; }
.foot { border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.foot-in nav a { display: inline-block; margin-left: 20px; }
.foot-in > span { margin-right: 20px; }
.foot a:hover { color: var(--accent); }
@media (max-width: 639px) { .foot-in nav a { margin: 6px 16px 0 0; } .foot-in > span { display: block; width: 100%; margin-bottom: 4px; } }

/* ==========================================================
   WORKS: slides (desktop) and list
   ========================================================== */
.works .slides-view { display: none; }
html.slides-mode .works .slides-view { display: block; }
html.slides-mode .works .list-view { display: none; }
html.slides-mode body.works-page { overflow: hidden; height: var(--app-h); }
html.slides-mode body.works-page .foot { display: none; }
.slides-view { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; background: var(--bg); }
.slides-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; visibility: hidden; pointer-events: none; }
.slide.is-active, .slide.is-out { visibility: visible; }
.slide.is-active { pointer-events: auto; }
.s-text { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--hdr) + var(--app-h) * 0.045); width: 44vw; max-width: 760px; }
.s-title { font-size: 56px; line-height: 0.92; letter-spacing: -0.055em; font-weight: 600; }
@media (min-width: 1024px) { .s-title { font-size: 64px; } }
@media (min-width: 1280px) { .s-title { font-size: 78px; } }
@media (min-width: 1600px) { .s-title { font-size: 100px; } }
@media (min-width: 1920px) { .s-title { font-size: 120px; } }
@media (min-height: 1px) and (max-height: 760px) { .s-title { font-size: 56px; } }
.s-title a:hover { color: var(--accent); }
.s-desc { margin-top: 18px; max-width: 380px; font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.s-meta { margin-top: 28px; font-size: 15px; max-width: 420px; }
.s-meta > div { display: grid; grid-template-columns: 88px 1fr; margin-top: 10px; }
.s-meta dt { color: var(--ink-3); font-weight: 500; }
.s-meta dd { font-weight: 600; }
@media (max-height: 800px) { .s-desc { margin-top: 12px; font-size: 15px; } .s-meta { margin-top: 16px; } .s-meta > div { margin-top: 6px; } }
.s-more { display: inline-block; margin-top: 18px; font-weight: 600; border-bottom: 1px solid currentColor; transition: color 0.2s; }
.s-more:hover { color: var(--accent); }
.s-media { position: absolute; z-index: 1; right: var(--pad); bottom: 78px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: block; opacity: 0; transform: translate3d(24vw, 46vh, 0) rotate(-12deg); transition: transform 1.2s var(--ease), opacity 0.7s; }
.s-media.wide { width: 52vw; max-width: 1000px; }
.s-media.wide::before { content: ''; display: block; padding-top: 56.25%; }
.s-media.tall { height: calc(var(--app-h) * 0.7); width: calc(var(--app-h) * 0.7 * 0.75); max-height: 900px; }
.s-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.s-text > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.slide.is-active .s-text > * { opacity: 1; transform: none; }
.slide.is-active .s-title { transition-delay: 0.25s; }
.slide.is-active .s-desc { transition-delay: 0.38s; }
.slide.is-active .s-meta { transition-delay: 0.5s; }
.slide.is-active .s-more { transition-delay: 0.62s; }
.slide.is-active .s-media { opacity: 1; transform: none; transition-delay: 0.12s; }
.slide.pre-prev .s-media { transform: translate3d(-24vw, -46vh, 0) rotate(12deg); transition: none; }
.slide.pre-next .s-media { transform: translate3d(24vw, 46vh, 0) rotate(-12deg); transition: none; }
.slide.is-out .s-text > * { opacity: 0; transform: translateY(-14px); transition-duration: 0.35s; transition-delay: 0s; }
.slide.is-out.out-next .s-media { opacity: 0; transform: translate3d(-24vw, -46vh, 0) rotate(12deg); transition: transform 1s var(--ease), opacity 0.6s; transition-delay: 0s; }
.slide.is-out.out-prev .s-media { opacity: 0; transform: translate3d(24vw, 46vh, 0) rotate(-12deg); transition: transform 1s var(--ease), opacity 0.6s; transition-delay: 0s; }
.slides-ui { position: absolute; z-index: 4; left: var(--pad); right: 90px; bottom: 22px; display: flex; align-items: center; font-size: var(--fs-small); font-weight: 600; }
.s-counter { color: var(--ink-3); margin-right: 22px; font-variant-numeric: tabular-nums; }
.s-counter b { color: var(--ink); font-weight: 600; }
.s-nav button { width: 42px; height: 42px; border: 1px solid var(--ink); margin-right: 4px; font-size: 16px; transition: background 0.2s, color 0.2s; }
.s-nav button:hover { background: var(--ink); color: var(--bg); }
.view-sw { margin-left: auto; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.view-sw:hover { color: var(--accent); }
.more .view-sw { margin-left: 0; }

/* list view + filters */
.filters { margin-bottom: 24px; font-size: var(--fs-small); font-weight: 600; }
.flt { color: var(--ink-3); border-bottom: 1px solid transparent; padding-bottom: 2px; margin: 0 22px 8px 0; transition: color 0.2s; }
.flt sup { font-size: 0.65em; margin-left: 2px; }
.flt:hover { color: var(--ink); }
.flt.active { color: var(--ink); border-color: var(--ink); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 70px; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), color 0.2s; }
.row .num { display: none; }
.row .thumb { grid-column: 1; grid-row: 1 / span 2; position: relative; display: block; height: 0; padding-top: 75%; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.row .thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.row .thumb.tall img { object-fit: contain; }
.row .name { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.row .kind { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.row .cat { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--ink-3); text-align: right; }
@media (min-width: 900px) {
    .row { grid-template-columns: 44px 104px minmax(0, 1fr) minmax(0, 260px) 96px; grid-template-rows: auto; padding: 14px 0; }
    .row .num { display: block; grid-column: 1; grid-row: 1; font-size: 13px; color: var(--ink-3); }
    .row .thumb { grid-column: 2; grid-row: 1; }
    .row .name { grid-column: 3; grid-row: 1; font-size: 40px; }
    .row .kind { grid-column: 4; grid-row: 1; font-size: 15px; margin-top: 0; }
    .row .cat { grid-column: 5; grid-row: 1; font-size: 14px; }
}
@media (min-width: 1440px) { .row .name { font-size: 52px; } }
.row:hover { padding-left: 14px; color: var(--accent); }
.row:hover .kind { color: inherit; }
.peek { position: fixed; z-index: 30; left: 0; top: 0; width: 300px; pointer-events: none; opacity: 0; background: var(--bg-2); border: 1px solid var(--ink); transition: opacity 0.25s; }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }
.more { margin-top: 24px; font-weight: 600; text-align: right; }

/* ==========================================================
   PROJECT DETAIL
   ========================================================== */
.pd-top { padding: calc(var(--hdr) + 30px) 0 24px; }
.pd-count { display: flex; justify-content: space-between; font-size: var(--fs-small); font-weight: 600; margin-bottom: 20px; }
.pd-count a:hover { color: var(--accent); }
.pd-top h1 { font-size: var(--fs-h1b); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; max-width: 14ch; }
.pd-lead { margin-top: 20px; max-width: 520px; font-size: var(--fs-lead); line-height: 1.28; letter-spacing: -0.025em; }
.pd-body { display: grid; grid-template-columns: 1fr; padding-bottom: 48px; }
.pd-meta > div { display: grid; grid-template-columns: 96px 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pd-meta dt { color: var(--ink-3); font-weight: 500; }
.pd-meta dd { font-weight: 600; }
.pd-meta dd a { border-bottom: 1px solid currentColor; }
.pd-meta dd a:hover { color: var(--accent); }
.pd-media { margin-top: 28px; border: 1px solid var(--line); background: var(--bg-2); }
.pd-media img { width: 100%; height: auto; }
.pd-media.tall { max-width: 520px; }
@media (min-width: 900px) {
    .pd-body { grid-template-columns: 4fr 8fr; column-gap: 56px; align-items: start; }
    .pd-media { margin-top: 0; }
    .pd-media.tall { margin-left: auto; }
}
.cases { border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr; padding: 32px 0; border-bottom: 1px solid var(--line); }
.case h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 14px; }
.case p { font-size: 18px; line-height: 1.5; letter-spacing: -0.015em; max-width: 720px; }
@media (min-width: 900px) { .case { grid-template-columns: 4fr 8fr; column-gap: 56px; } .case h2 { margin-bottom: 0; } .case p { font-size: 22px; } }
.pn { display: grid; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
.pn a { display: block; margin-bottom: 20px; }
.pn small { display: block; font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 6px; }
.pn strong { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.04em; font-weight: 600; transition: color 0.2s; }
.pn a:hover strong { color: var(--accent); }
@media (min-width: 640px) { .pn { grid-template-columns: 1fr 1fr; column-gap: 24px; } .pn a.next { text-align: right; } }

.cards { display: grid; grid-template-columns: 1fr; row-gap: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); column-gap: 22px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; }
.card-media { position: relative; height: 0; padding-top: 75%; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.card-media.tall { padding-top: 133%; }
@media (min-width: 1024px) { .card-media.tall { padding-top: 75%; } }
.card-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 0.8s var(--ease); object-fit: cover; }
@media (min-width: 1024px) { .card-media.tall img { object-fit: contain; } }
.card:hover .card-media img { transform: scale(1.04); }
.card-info { padding-top: 12px; }
.card-info h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; transition: color 0.2s; }
.card-info span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.card:hover h3 { color: var(--accent); }

/* References */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logo { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
@media (min-width: 1024px) { .logo { min-height: 160px; } }
.logo:hover { background: var(--bg-2); }
.logo img { width: auto; height: auto; max-width: 78%; max-height: 50px; filter: grayscale(1) contrast(1.05); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
@media (min-width: 1024px) { .logo img { max-height: 62px; } }
.logo:hover img { filter: none; opacity: 1; }

/* ==========================================================
   CONTACT
   ========================================================== */
.ct-hero { position: relative; min-height: var(--app-h); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 24px) 0 40px; }
.ct-hero h1 { font-size: var(--fs-h1b); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; }
.ct-hero .sub { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.3; }
.ct-info { margin-top: 36px; font-size: 15px; font-weight: 600; }
.ct-info dt { color: var(--ink-3); font-weight: 500; margin-top: 12px; }
.ct-info dd a { border-bottom: 1px solid currentColor; }
.ct-info dd a:hover { color: var(--accent); }
@media (min-width: 900px) {
    .ct-hero h1, .ct-hero .sub { text-align: center; }
    .ct-info { position: absolute; z-index: 3; right: var(--pad); bottom: 28px; margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 32px; row-gap: 8px; }
    .ct-info dt { margin-top: 0; }
}
.form-sec { padding: var(--sec-y) 0; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr; }
.form-grid h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 28px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 4fr 8fr; column-gap: 56px; } .form-grid h2 { margin-bottom: 0; } }
.cform { display: grid; grid-template-columns: 1fr; row-gap: 24px; }
@media (min-width: 640px) { .cform { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.field input, .field select, .field textarea { font: inherit; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0 12px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color 0.2s; }
.field textarea { min-height: 112px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field ::placeholder { color: #b7b5ad; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 17px; height: 17px; margin: 3px 12px 0 0; accent-color: var(--ink); flex: none; }
.consent a { border-bottom: 1px solid currentColor; }
.actions { grid-column: 1 / -1; }
.actions .form-note { display: inline-block; margin-left: 18px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 600; border: 1px solid var(--ink); transition: background 0.25s, color 0.25s; }
.btn span { margin-left: 10px; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.form-note.ok { color: #1c7a5c; font-weight: 600; }
.form-note.err { color: #b42318; font-weight: 600; }

/* legal prose */
.prose { max-width: 740px; font-size: 17px; line-height: 1.6; color: var(--ink-2); letter-spacing: -0.01em; }
@media (min-width: 1100px) { .prose { margin-left: 22%; } }
.prose .lead { font-size: 24px; line-height: 1.3; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 28px; }
.prose h2 { color: var(--ink); font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; margin: 40px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 22px 20px; list-style: square; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }

.nf { min-height: var(--app-h); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 24px) 0 48px; }
.nf .code { font-weight: 600; font-size: var(--fs-name); line-height: 0.9; letter-spacing: -0.05em; }
.nf p { max-width: 440px; font-size: 19px; margin: 22px 0 28px; line-height: 1.3; }

/* ==========================================================
   COOKIE + VEIL
   ========================================================== */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 95; width: 380px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--ink); padding: 18px 20px 20px; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.cookie p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.cookie p a { border-bottom: 1px solid currentColor; }
.cookie .row2 { display: flex; }
.cookie .btn { min-height: 44px; flex: 1; justify-content: center; padding: 0 12px; font-size: 14px; }
.cookie .btn + .btn { margin-left: 8px; }

.veil { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; background: var(--ink); transform: translateY(100%); pointer-events: none; }
.veil.go { transform: translateY(0); transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1); }
html.veil-in .veil { transform: translateY(0); transition: none; }
.veil.leave { transform: translateY(-100%); transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .rv, .hero [data-in], .hdr > * { opacity: 1; transform: none; }
    .hero .hero-fig[data-in] { transform: translateX(-50%); }
    .hero-name .ch { transform: none; }
    .smoke { opacity: 1; }
    .bw { opacity: 1; transform: none; }
    .veil { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 639px) { .hero .hero-fig[data-in] { transform: none; } }

@media (max-width: 699px) { .more .view-sw { display: none; } }

/* Portrait tablets: text on top, picture below it */
@media (max-width: 1100px) and (orientation: portrait) {
    .s-text { width: auto; right: var(--pad); max-width: none; }
    .s-title { font-size: 60px; }
    .s-desc { max-width: 520px; }
    .s-media.wide { width: 74vw; }
    .s-media.tall { height: calc(var(--app-h) * 0.36); width: calc(var(--app-h) * 0.36 * 0.75); }
}
/* Small landscape screens: keep text and picture side by side, just tighter */
@media (max-width: 1100px) and (orientation: landscape) {
    .s-text { width: 40vw; }
    .s-title { font-size: 46px; }
    .s-media.wide { width: 48vw; }
    .s-media.tall { height: calc(var(--app-h) * 0.6); width: calc(var(--app-h) * 0.6 * 0.75); }
}
/* Page-wide smoke behind About / References / Works (same cloud canvas as the home and contact heroes) */
.page-smoke { position: fixed; z-index: 0; }
html.slides-mode .slides-view { background: transparent; }
.s-counter, .s-meta dt, .row .num, .row .cat, .sec-head .muted, .ph-top h1 sup { color: var(--ink-2); }
/* ---- fixes from real phone screenshots ---- */
/* contact info sits outside .wrap: give it the same side padding */
.ct-info { padding-left: var(--pad); padding-right: var(--pad); }
.ct-info dt { color: var(--ink-2); }
@media (min-width: 900px) { .ct-info { padding-left: 0; padding-right: 0; } }
/* phone figure must stay fully inside the screen */
@media (max-width: 639px) { .hero-fig { right: 8px; } }
/* header: frosted bar once the page scrolls, so text never runs through the menu labels */
html.scrolled .hdr { background: rgba(252, 251, 246, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html.scrolled .hdr { box-shadow: 0 1px 0 rgba(28, 28, 28, 0.06); }
body.home .hdr, html.slides-mode body.works-page .hdr { background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* ---- spacing + phone hero centring (from phone screenshots) ---- */
/* boxes: no forced tall minimum on phones/tablets, number sits right above the title */
@media (max-width: 899px) {
    .cell { min-height: 0; padding: 18px 18px 20px; }
    .cell .n { margin-bottom: 12px; padding-bottom: 0; }
    .cell h3 { margin-bottom: 8px; }
    .cell .tags { margin-top: 10px; }
}
/* phone hero: figure centred, text under the name, nothing overlapping */
@media (max-width: 639px) {
    .hero { --fh: max(160px, min(calc(var(--app-h) * 0.62), calc(var(--app-h) - 340px))); }
    .hero-sub { top: calc(var(--hdr) + 14px + var(--fs-name) * 0.86 * 1.9 + 14px); bottom: auto; width: 230px; font-size: 15px; }
    .hero-fig { left: 50%; right: auto; transform: translateX(-50%); height: var(--fh); width: calc(var(--fh) * 0.331); bottom: 52px; }
    .hero .hero-fig[data-in] { transform: translate(-50%, 50px); animation-name: riseFig; }
    .hero[data-mode="bold"] .hero-fig { height: calc(var(--fh) * 1.1); width: calc(var(--fh) * 1.1 * 0.331); }
    .bold-info { mix-blend-mode: difference; color: #fff; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 639px) { .hero .hero-fig[data-in] { transform: translateX(-50%); } }
/* ---- menu: letters with dots/cedillas (İ, Ş, ş, ç, ğ) must not be clipped by the reveal mask ---- */
.menu li { overflow: hidden; font-size: 44px; line-height: 1.04; padding: 0.14em 0 0.22em; margin-bottom: -0.2em; }
.menu li a { font-size: inherit; line-height: 1.04; }
@media (min-width: 640px) { .menu li { font-size: 72px; } }
@media (min-width: 1024px) { .menu li { font-size: 92px; } }
@media (min-width: 1440px) { .menu li { font-size: 112px; } }
/* hero name reveal mask: same protection for ö, ğ, ı marks */
.hero-name .ln { padding-top: 0.12em; margin-top: -0.12em; }

/* ---- screen height: let the browser follow the real visible area (address bar in/out) ---- */
@supports (height: 100dvh) { :root { --app-h: 100dvh; } }
/* menu: five big links must fit the visible height on every screen */
.menu li { font-size: max(30px, min(44px, calc((var(--app-h) - 250px) / 6.2))); }
@media (min-width: 640px) { .menu li { font-size: max(30px, min(72px, calc((var(--app-h) - 250px) / 6.2))); } }
@media (min-width: 1024px) { .menu li { font-size: max(30px, min(92px, calc((var(--app-h) - 250px) / 6.2))); } }
@media (min-width: 1440px) { .menu li { font-size: max(30px, min(112px, calc((var(--app-h) - 250px) / 6.2))); } }
/* phone: the figure stands on the bottom edge of the screen (no gap under the feet) */
@media (max-width: 639px) {
    .hero { --fh: max(160px, min(calc(var(--app-h) * 0.64), calc(var(--app-h) - 300px))); }
    .hero-fig { bottom: 0; }
    .hero-bl, .mode > span, .mode i, .mode-btn:not(.is-on) { color: var(--ink-2); }
}
/* phone: contact links bottom-left, stacked above the clock */
@media (max-width: 639px) {
    .hero-br { display: block; left: var(--pad); right: auto; bottom: 46px; text-align: left; font-size: 12.5px; line-height: 1.2; }
    .hero-br a { display: table; margin: 7px 0 0; padding-bottom: 1px; color: var(--ink); }
}
@media (max-width: 639px) { .hero-br { font-size: 12px; letter-spacing: -0.03em; } }

/* desktop: composition like a poster - one-line name top-left, figure centred, calm cream space between */
@media (min-width: 1100px) {
    .hero-name { font-size: clamp(60px, 5.5vw, 128px); letter-spacing: -0.045em; top: calc(var(--hdr) + 40px); white-space: nowrap; }
    .hero-name .ln { display: inline-block; }
    .hero-name .ln + .ln { margin-left: 0.24em; }
    .hero-sub { top: calc(var(--hdr) + 40px + clamp(60px, 5.5vw, 128px) * 1.15 + 36px); width: 300px; font-size: 17px; font-weight: 500; line-height: 1.22; letter-spacing: -0.035em; }
    .hero-sub p + p { margin-top: 22px; }
    .hero-fig { height: calc(var(--app-h) * 0.8); width: calc(var(--app-h) * 0.8 * 0.331); }
}
@media (min-width: 1100px) { .hero-fig { height: calc(var(--app-h) * 0.86); width: calc(var(--app-h) * 0.86 * 0.331); } }

@media (min-width: 1100px) { .hero-name { font-size: clamp(60px, 5.5vw, 128px); } }
.hero { --smoke-o: 0.62; }

/* grain over the smoke, and a very faint backlight behind text, icons and rules */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.17; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.1 -.42'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); background-size: 240px 240px; }
.hero-name, .hero-sub, .hero-bl, .hero-br a, .mode, .hdr > *, .hdr .burger { filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.5)); }

/* arrow icon (drawn, so phones never swap in an emoji) */
.ar { display: inline-block; width: 0.72em; height: 0.72em; margin-left: 0.28em; vertical-align: -0.02em; flex: none; }
/* phones: no Fine/Bold switch, always the fine layout */
@media (max-width: 639px) { .hero .mode { display: none; } }
