/* canerobali.com
   Tokens, base, shared parts, then one block per page type.
   Layout is fluid (flex-wrap + clamp); the phone rules sit at the end. */

:root {
  --violet: #5B2EE5;
  --ink: #0E0B1A;
  --paper: #EFEDF6;
  --lilac: #CFC3FA;
  --lilac-2: #E4DCFF;
  --coral: #FF7350;
  --sky: #A9D2FF;
  --olive: #C9D36A;
  --now: #8CCBF7;
  --muted: #4B4660;
  --muted-on-ink: #BDB8CE;
  --soft-on-ink: #E2DFEB;
  --line: #5A5470;

  --px: clamp(20px, 3vw, 44px);
  --py: clamp(56px, 7vw, 104px);
  --card-pad: clamp(24px, 3vw, 40px);

  --f-display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --f-head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", Menlo, monospace;
  --f-hand: "Architects Daughter", cursive;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--violet);
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #fff;
  font: 17px/1.45 var(--f-body);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: #fff; color: var(--ink); font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

.hand { font-family: var(--f-hand); font-size: 20px; line-height: 1.2; }
.mono { font-family: var(--f-mono); font-size: 14px; }
.h2 { font-family: var(--f-head); font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.h2--xl { font-size: clamp(44px, 6.4vw, 96px); line-height: 1; }
.lead { max-width: 30em; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; font-weight: 500; }
.logo { display: block; width: 72px; height: 45px; fill: none; }

/* ---------- sections ---------- */

.section { padding: var(--py) var(--px); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-lilac { background: var(--lilac-2); color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.stack--tight { gap: clamp(20px, 2.4vw, 32px); }
.stack--wide { gap: clamp(40px, 5vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.section-head p { font-family: var(--f-mono); font-size: 15px; color: var(--muted); }
.bg-ink .section-head p { color: var(--muted-on-ink); }

.split { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 72px); }
.split--center { align-items: center; }
.split > .h2, .split > .note__head, .split > .nextcase__head { flex: 1 1 280px; min-width: 0; }
.split > .lead { flex: 2 1 480px; min-width: 0; }
.split__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* ---------- buttons and links ---------- */

.btn { min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; font-weight: 600; }
.btn--outline { background: none; border: 2px solid #fff; color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); }
.link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.badge { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-family: var(--f-mono); font-size: 14px; }

/* ---------- nav ---------- */

.nav { padding: 24px var(--px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-family: var(--f-display); font-weight: 600; }
.nav [aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- blueprint bits: facts strip, numbered list ---------- */

.facts { margin: 10px 0 0; align-self: stretch; border: 3px solid currentColor; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.facts div { padding: 10px 14px; }
.facts dt { font-family: var(--f-hand); font-size: 16px; }
.facts dd { margin: 0; font-weight: 700; }

.numlist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px 32px; }
.numlist--tight { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 32px; }
.numlist li { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 12px; }
.numlist__tag { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.numlist strong { font-family: var(--f-head); font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.numlist li > span:last-child { line-height: 1.4; }
.numlist__text { font-size: 19px; }

/* ---------- footer ---------- */

.footer { padding: var(--py) var(--px) 32px; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); font-family: var(--f-display); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer__top > div { flex: 1 1 560px; min-width: 0; }
.footer h2 { font-size: clamp(48px, 8vw, 120px); line-height: .95; font-weight: 900; font-stretch: 125%; letter-spacing: -.035em; }
.footer--home h2 { font-size: clamp(48px, 11.4vw, 176px); }
.footer__mail { display: inline-block; margin-top: 14px; font-size: clamp(22px, 3vw, 42px); font-weight: 600; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 6px; }
.door { flex: 0 1 340px; min-width: 0; height: auto; fill: none; stroke: #fff; }
.door text { stroke: none; fill: #fff; font-family: var(--f-hand); font-size: 22px; }
.titleblock { margin: 0; border: 3px solid #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.titleblock div { padding: 12px 16px; }
.titleblock dt { font-family: var(--f-hand); font-size: 16px; }
.titleblock dd { margin: 0; font-weight: 700; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; font-weight: 600; }

/* ---------- home: hero and floor plan ---------- */

.hero { display: flex; flex-wrap: wrap; font-family: var(--f-display); }
.hero__main { flex: 1 1 620px; min-width: 0; padding: 0 var(--px) 32px; display: flex; flex-direction: column; gap: 28px; }
.hero__main .nav { padding: 24px 0 0; }
.hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .2em; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.hero__photo { flex: none; width: .86em; height: .86em; border-radius: 50%; overflow: hidden; background: var(--coral); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__tag { margin-top: 10px; font-size: clamp(19px, 1.6vw, 23px); }

.plan { position: relative; width: 104.9%; margin-left: -4.9%; aspect-ratio: 760 / 620; }
.plan svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: #fff; }
.plan text { stroke: none; fill: #fff; font-family: var(--f-hand); font-size: 15px; text-anchor: middle; }
.room { position: absolute; margin: 0; border: 0; padding: 3.2% 3.5%; background: transparent; color: #fff; font: inherit; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; transition: background-color .2s; }
button.room { cursor: pointer; }
.room:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.room img { width: clamp(34px, 3.8vw, 56px); border-radius: 22%; }
.room__name { font-size: clamp(18px, 2.2vw, 32px); line-height: 1; font-weight: 800; font-stretch: 125%; }
.room__sub { font-family: var(--f-hand); font-size: clamp(14px, 1.3vw, 19px); line-height: 1.1; }
.room--g { left: 5.26%; top: 8.06%; width: 47.37%; height: 46.77%; padding: 4% 3.5%; gap: 8px; }
.room--g img { width: clamp(38px, 5vw, 72px); }
.room--g .room__name { font-size: clamp(22px, 3vw, 44px); }
.room--b { left: 52.63%; top: 8.06%; width: 42.1%; height: 32.26%; }
.room--z { left: 52.63%; top: 40.32%; width: 42.1%; height: 29.03%; }
.room--b .room__name, .room--z .room__name { font-size: clamp(20px, 2.5vw, 36px); }
.room--studio { left: 5.26%; top: 54.84%; width: 28.95%; height: 37.1%; padding: 4% 3.5%; }
.room--me { left: 34.21%; top: 54.84%; width: 18.42%; height: 37.1%; padding: 4% 2.5%; }
.room--me .room__name { font-size: clamp(16px, 1.9vw, 27px); }
.room--hall { left: 52.63%; top: 69.35%; width: 42.1%; height: 22.58%; padding: 2.4% 3.5%; gap: 4px; }
.room--g[aria-pressed="true"] { background: var(--coral); color: var(--ink); }
.room--b[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.room--z[aria-pressed="true"] { background: var(--olive); color: var(--ink); }

.hero__panel { flex: 1 1 480px; min-width: 0; display: flex; }
.panel { flex: 1; min-width: 0; padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0; background: var(--accent); color: var(--ink); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.panel__kicker { font-size: 19px; }
.panel h2 { font-size: clamp(52px, 7.4vw, 108px); line-height: .92; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.panel__text { max-width: 21em; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.18; font-weight: 500; }
.panel .actions { gap: 0 26px; }
.panel .link { font-weight: 700; }
.panel__screens { height: 520px; margin-top: auto; display: flex; gap: 16px; overflow: hidden; }
.panel__screens img { flex: none; width: 262px; max-width: none; }
.panel__screens img + img { margin-top: 56px; }

/* ---------- home: apps ---------- */

#apps, #work, #about { font-family: var(--f-body); }
.appgrid { display: flex; flex-wrap: wrap; gap: 20px; }
.appcard { flex: 7 1 max(480px, calc(58% - 20px)); min-width: 0; height: 660px; border-radius: 28px; padding: var(--card-pad) var(--card-pad) 0; color: var(--ink); display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.appcard { position: relative; }
.cardlink::after { content: ""; position: absolute; inset: 0; }
.appcard .link:not(.cardlink) { position: relative; z-index: 1; }
.appcard--narrow { flex: 5 1 max(360px, calc(41% - 20px)); }
.appcard--genius { background: var(--coral); }
.appcard--bulut { background: var(--sky); }
.appcard__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.appcard__id { display: flex; align-items: center; gap: 16px; }
.appcard__id img { width: 76px; border-radius: 18px; }
.appcard h3 { font-family: var(--f-head); font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.appcard__id p { margin-top: 6px; font-family: var(--f-mono); font-size: 14px; }
.appcard__text { max-width: 26em; font-size: 24px; line-height: 1.25; font-weight: 500; }
.appcard__shots { flex: 1; min-height: 0; display: flex; justify-content: center; gap: 28px; padding-top: 8px; }
.appcard__shots img { flex: none; width: 270px; max-width: none; height: 600px; object-fit: cover; object-position: bottom; border-radius: 24px; transform: rotate(-4deg); }
.appcard__shots img + img { transform: rotate(3deg); margin-top: 32px; }
.appcard__shots--one img { width: 290px; transform: rotate(3deg); }
.appcard--zeytin, .appcard--next { height: auto; min-height: 300px; padding-bottom: var(--card-pad); }
.appcard--zeytin { background: var(--olive); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.appcard--zeytin > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.appcard--zeytin h3 { font-size: 64px; }
.appcard--zeytin .appcard__text { font-size: 22px; }
.appcard__bigicon { flex: none; width: 240px; border-radius: 54px; }
.appcard--next { border: 2px dashed var(--line); color: #fff; justify-content: space-between; }
.appcard--next .mono { color: var(--muted-on-ink); }
.appcard--next h3 { font-size: 48px; line-height: 1.02; font-weight: 700; }

/* ---------- studio folders ---------- */

.folders { display: flex; flex-wrap: wrap; gap: 24px 20px; }
.folder { flex: 1 1 max(420px, calc(50% - 10px)); min-width: 0; height: 580px; position: relative; display: block; color: var(--ink); }
.folder--wide { flex-basis: 100%; height: 640px; }
.folder--next { flex: 1 1 480px; max-width: 680px; height: 480px; }
a.folder:hover { opacity: 1; }
.folder__tab { position: absolute; left: 0; top: 0; height: 48px; padding: 10px 20px 0; background: var(--lilac); border-radius: 14px 14px 0 0; font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.folder__back { position: absolute; inset: 36px 0 0; background: var(--lilac); border-radius: 0 24px 24px 24px; }
.folder img { position: absolute; left: 24px; top: 64px; width: calc(100% - 48px); max-width: none; height: 420px; object-fit: cover; object-position: center top; border-radius: 12px; transition: transform .25s ease; }
.folder--left img { object-position: left top; }
.folder--wide img { height: 480px; object-position: center; }
.folder--next img { height: 320px; }
a.folder:hover img { transform: translateY(-10px); }
.folder__label { position: absolute; left: 0; right: 0; bottom: 0; height: 128px; padding: 0 24px; background: var(--lilac-2); border-radius: 0 0 24px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.folder__label strong { font-family: var(--f-head); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.folder__label span { font-size: 19px; line-height: 1.25; font-weight: 500; }

/* ---------- home: about ---------- */

.about { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.about__img { flex: 0 1 380px; width: 380px; height: 420px; object-fit: cover; border-radius: 28px; }
.about__body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about__body p { max-width: 36em; font-size: 20px; line-height: 1.4; color: var(--soft-on-ink); }
.timeline { align-self: stretch; margin: 8px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.timeline span:first-child { font-family: var(--f-mono); font-size: 14px; color: var(--muted-on-ink); }
.timeline span:last-child { font-weight: 600; }
.timeline .is-now { border-top: 2px solid var(--now); padding-top: 9px; }
.timeline .is-now span:first-child { color: var(--now); }

/* ---------- page hero (apps, studio) ---------- */

.phero { background: var(--accent, var(--lilac)); color: var(--ink); display: flex; flex-wrap: wrap; }
.phero--center { align-items: center; }
.phero__main { flex: 1 1 560px; min-width: 0; padding: clamp(32px, 5vw, 72px) var(--px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.phero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.phero__title img { width: clamp(72px, 8vw, 112px); border-radius: 22%; }
.phero h1 { font-family: var(--f-display); font-size: clamp(48px, 9vw, 132px); line-height: .92; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.phero--case h1 { font-size: clamp(40px, 7.6vw, 112px); }
.phero__tag { max-width: 21em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; font-weight: 500; }
.phero__intro { max-width: 34em; font-size: 19px; line-height: 1.4; }
.phero__shots { flex: 1 1 420px; min-width: 0; height: 640px; padding: 56px 24px 0; display: flex; justify-content: center; align-items: flex-start; gap: 16px; overflow: hidden; }
.phero__shots img { flex: none; width: 262px; max-width: none; }
.phero__shots img:nth-child(even) { margin-top: 56px; }
.phero--case .phero__shots { height: 600px; }
.phero--case .phero__shots img { width: 240px; }
.phero--case .phero__shots--3 img { width: 200px; }
.phero__image { flex: 1 1 420px; min-width: 0; padding: var(--px); }
.phero__image img, .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phero__image img { border-radius: 24px; }

/* ---------- app page ---------- */

.section--bleed { padding-right: 0; }
.section--bleed .section-head { padding-right: var(--px); }
.scroller { display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--px) 16px 0; }
.scroller img { flex: none; width: 280px; max-width: none; border-radius: 20px; }
.note { background: var(--accent); color: var(--ink); }
.note__head { display: flex; flex-direction: column; gap: 8px; }
.cards2 { display: flex; flex-wrap: wrap; gap: 20px; }
.infocard { flex: 1 1 360px; min-width: 0; background: #fff; border-radius: 28px; padding: var(--card-pad); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.infocard .mono { color: var(--muted); }
.infocard p { font-size: 22px; line-height: 1.3; font-weight: 500; }
.miniapp { flex: 1 1 360px; min-width: 0; min-height: 260px; border-radius: 28px; padding: var(--card-pad); background: var(--accent); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.miniapp__id { display: flex; align-items: center; gap: 16px; }
.miniapp__id img { width: 76px; border-radius: 18px; }
.miniapp__id > span { display: flex; flex-direction: column; gap: 6px; }
.miniapp strong { font-family: var(--f-head); font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.miniapp__tag { max-width: 24em; font-size: 22px; line-height: 1.25; font-weight: 500; }

/* ---------- case study ---------- */

.personas { display: flex; flex-wrap: wrap; gap: 20px; }
.persona { flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 28px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 18px; }
.persona__head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.persona__head img { width: 96px; height: 96px; object-fit: cover; border-radius: 22px; }
.persona h3 { margin-bottom: 6px; font-family: var(--f-head); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.persona .mono { color: var(--muted); }
.persona > p { font-size: 19px; line-height: 1.4; }
.persona ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.persona__map { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.persona__map div { border-top: 1px solid var(--lilac); padding-top: 10px; }
.persona__map dt { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.persona__map dd { margin: 2px 0 0; }
.persona > .persona__quote { margin-top: auto; padding-top: 6px; font-family: var(--f-hand); font-size: 22px; line-height: 1.3; }

.ia { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; align-items: start; }
.ia__group { display: flex; flex-direction: column; gap: 10px; }
.ia__group strong { border: 3px solid var(--ink); padding: 10px 14px; font-family: var(--f-head); font-size: 22px; line-height: 1.1; font-weight: 700; }
.ia__group ul { margin: 0 0 0 16px; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.ia__group li { background: var(--lilac-2); padding: 8px 12px; font-weight: 500; }

.groups { display: flex; flex-wrap: wrap; gap: 64px 72px; }
.group { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.group h3 { font-family: var(--f-head); font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.group p { margin-top: 4px; max-width: 34em; color: var(--soft-on-ink); }
.group__shots { display: flex; flex-wrap: wrap; gap: 20px; }
.group__shots img { width: 220px; }
.groups--parking .group__shots img { width: 200px; }
.nextcase__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- astrologer ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.gallery img { border-radius: 20px; }
.store { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 5vw, 72px); }
.store__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.store__info p { max-width: 32em; font-size: 19px; line-height: 1.4; }
.deflist { align-self: stretch; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; }
.deflist div { border-top: 2px solid var(--ink); padding-top: 10px; }
.deflist dt { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.deflist dd { margin: 2px 0 0; font-weight: 600; }
.store__shots { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.store__shots img { width: 230px; border-radius: 20px; }

/* ---------- more ideas ---------- */

.idea { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 5vw, 72px); }
.idea__text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.idea__text .mono { color: var(--muted); }
.idea h2 { font-family: var(--f-head); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.idea p, .idea__next { max-width: 24em; font-size: 19px; line-height: 1.4; }
.idea ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.idea li { background: var(--lilac-2); padding: 6px 12px; font-family: var(--f-mono); font-size: 14px; }
.idea > img { flex: 2 1 560px; min-width: 0; width: 100%; max-width: 860px; aspect-ratio: 900 / 689; object-fit: cover; border-radius: 20px; }
.folder--onlilac .folder__label { background: #fff; }

/* ---------- about page ---------- */

.ahero { padding: clamp(24px, 4vw, 56px) var(--px) var(--py); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.ahero__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; font-family: var(--f-display); }
.ahero h1 { font-size: clamp(52px, 7.6vw, 112px); line-height: .92; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.ahero__lead { max-width: 22em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; }
.ahero .actions { font-weight: 700; }
.ahero figure { flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ahero figure img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; }
.ahero figcaption { font-size: 19px; }
.prose { flex: 2 1 520px; min-width: 0; max-width: 40em; display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.45; }

.career { margin: 0; padding: 0; list-style: none; }
.career > li { border-top: 1px solid var(--line); padding: 24px 0 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.career > li:last-child { padding-bottom: 0; }
.career > .is-now { border-top: 2px solid var(--now); }
.career__when { flex: 0 0 220px; font-size: 15px; color: var(--muted-on-ink); }
.is-now .career__when { color: var(--now); }
.career__body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.career h3 { font-family: var(--f-head); font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.career__role { font-size: 19px; font-weight: 600; }
.career ul { margin: 4px 0 0; padding-left: 20px; max-width: 44em; display: flex; flex-direction: column; gap: 6px; color: var(--soft-on-ink); }
.career ul a { text-decoration: underline; text-underline-offset: 4px; }
.career__label { margin-top: 10px; color: var(--muted-on-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px clamp(32px, 5vw, 72px); }
.cta h2 { flex: 1 1 420px; min-width: 0; max-width: 14em; font-family: var(--f-head); font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.cta .actions { font-weight: 700; }

/* ---------- privacy, 404 ---------- */

.legal { max-width: 44em; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 19px; line-height: 1.5; }
.legal h1 { font-family: var(--f-head); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.legal h2 { margin-top: 16px; font-family: var(--f-head); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.legal ul { margin: 0; padding-left: 22px; }
.legal h3 { margin-top: 8px; font-family: var(--f-head); font-size: 22px; line-height: 1.15; font-weight: 700; }
.legal li + li { margin-top: 6px; }
.legal a:not(.link) { text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 60em; }
.legal > p, .legal > ul, .legal > h1, .legal > h2, .legal > h3 { max-width: 44rem; }
.tablewrap { align-self: stretch; overflow-x: auto; background: #fff; border-radius: 16px; }
.tablewrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.tablewrap th, .tablewrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lilac-2); }
.tablewrap th { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--muted); background: var(--lilac-2); }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap td:first-child { font-weight: 600; }
.notfound { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; font-family: var(--f-display); }
.notfound h1 { max-width: 12em; font-size: clamp(40px, 6vw, 88px); line-height: .95; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }

/* ---------- phones ---------- */

@media (max-width: 640px) {
  .hide-s { display: none; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* floor plan: notes readable, small rooms keep icon and name only */
  .plan text { font-size: 26px; }
  .room--b img, .room--z img { width: 26px; }
  .room--b .room__sub, .room--z .room__sub, .room--me .room__sub { display: none; }
  .nav { gap: 12px 20px; }
  .nav .logo { width: 56px; height: 35px; }

  .panel__screens { height: 300px; }
  .panel__screens img { width: 150px; }
  .panel__screens img + img { margin-top: 32px; }

  .appcard__shots { gap: 16px; }
  .appcard__shots img { width: 150px; height: 333px; }
  .appcard__shots--one img { width: 200px; height: 414px; }
  .appcard__bigicon { width: 180px; border-radius: 40px; }

  .phero__shots, .phero--case .phero__shots { height: 340px; padding: 24px 20px 0; }
  .phero__shots img, .phero--case .phero__shots img { width: 150px; }
  .phero__shots img:nth-child(even) { margin-top: 32px; }
  .phero--case .phero__shots--3 { height: 260px; }
  .phero--case .phero__shots--3 img { width: 100px; }
  .phero--case .phero__shots--3 img:nth-child(even) { margin-top: 24px; }

  .group { width: 100%; }
  .group__shots img, .groups--parking .group__shots img, .store__shots img { width: calc(50% - 10px); }
  .career__when { flex-basis: 100%; }

  /* policy tables: each row becomes a small card */
  .tablewrap table { min-width: 0; }
  .tablewrap thead { display: none; }
  .tablewrap tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--lilac-2); }
  .tablewrap tr:last-child { border-bottom: 0; }
  .tablewrap td { display: block; padding: 4px 0; border: 0; }
  .tablewrap td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 13px; font-weight: 400; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .folder img, .room { transition: none; }
}
