/* Ghada Samy — static site. Hand-editable, no build step. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --body: #5b5b66;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #2563eb;
  --radius: 20px;
  --gutter: 20px;
  --max: 1600px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d; --surface: #141417; --ink: #fafafa; --ink-2: #d4d4d8; --body: #a8a8b3;
    --muted: #a1a1aa; --line: #27272a; --accent: #60a5fa;
  }
}
@media (min-width: 1024px) { :root { --gutter: 12px; } }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.nav ul { display: flex; gap: 6px; list-style: none; padding: 0; align-items: center; }
.nav a.link { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; cursor: pointer; }
.nav a.link:hover { background: var(--line); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; transition: opacity .2s, transform .2s; cursor: pointer; border: 0; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--line); opacity: 1; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 100px); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; margin-bottom: 28px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
h1.display { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; max-width: 14ch; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 52ch; margin: 28px 0 36px; line-height: 1.5; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.proof { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* Sections */
section { padding: clamp(56px, 8vw, 110px) 0; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
h2.title { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.035em; line-height: 1.08; font-weight: 600; max-width: 20ch; }
.head { margin-bottom: clamp(32px, 5vw, 60px); }

/* Work grid */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.card .thumb { border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4/3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.card h3 svg { width: 22px; height: 22px; transition: transform .25s; flex: none; }
.card:hover h3 svg { transform: translate(3px, -3px); }
.card p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.card { cursor: pointer; }

/* About + lists */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-2); }
.stats { display: flex; gap: 48px; margin-top: 36px; }
.stats b { display: block; font-size: 44px; letter-spacing: -0.04em; font-weight: 600; color: var(--ink); line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); }
.list { border-top: 1px solid var(--line); }
.list .item { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list .item b { font-weight: 500; }
.list .item span { color: var(--muted); font-size: 15px; }
.list .item .when { text-align: right; }
.list a.item { transition: padding .25s; cursor: pointer; }
.list a.item:hover { padding-left: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2); }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.skills h3 { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { margin: 0 auto 32px; max-width: 16ch; }
.cta .row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 22px; }

/* Case study: a vertical deck of rounded slides (structure modelled on the Oo portfolio case studies) */
.deck { max-width: 1600px; padding-left: 12px; padding-right: 12px; padding-bottom: 40px; counter-reset: slide; }
.back { font-size: 15px; color: var(--muted); display: inline-block; margin: 40px 0 20px; cursor: pointer; }
.back:hover { color: var(--ink); }
.slide { position: relative; counter-increment: slide; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 32px; padding: clamp(24px, 5vw, 72px); margin-bottom: 24px; scroll-margin-top: 90px; }
.slide::after { content: counter(slide, decimal-leading-zero); position: absolute; right: 28px; bottom: 20px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-title::after, .s-divider::after { color: #71717a; }
.slide .chip { align-self: flex-start; display: inline-block; font-size: 13px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px; }
.slide h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; }
.slide h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.slide h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin: 22px 0 6px; }
.slide p, .slide li { color: var(--body); }
.slide ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.slide .txt p { margin-top: 14px; max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); }
.slide .txt .btn { margin-top: 24px; }
.shot { margin: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); align-self: center; }
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; max-height: min(560px, 52vw); object-fit: contain; }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: center; }

/* Title slide: always dark, outcome phrase highlighted */
.s-title { background: #0b0b0d; border-color: #0b0b0d; color: #fafafa; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.s-title .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #e4e4e7; }
.s-title h1 { font-size: clamp(28px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.s-title h1 em { font-style: normal; color: #93b4ff; }
.s-title .summary { color: #a1a1aa; margin: 20px 0 26px; font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 14px 36px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.meta dt { font-size: 13px; color: #a1a1aa; }
.meta dd { margin: 2px 0 0; font-weight: 600; color: #fafafa; }
.s-title .shot { border-color: rgba(255,255,255,.12); background: #15151a; }

/* Context */
.s-context .lbl { margin: 26px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lead2 { max-width: 62ch; font-size: 18px; }
.ctx3 { margin-top: 32px; align-items: stretch; }
.ctx3 .card3 { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.ctx3 .n { margin-bottom: 0; }
.ctx3 h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ctx-big { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink) !important; }
.ctx-big b { font-weight: 600; }
.ctx-sub { font-size: 16px; line-height: 1.5; }
.ctx3 .chips { gap: 8px; }
.ctx3 .chips span { padding: 6px 14px; font-size: 14px; }
.ctx-out { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.5; color: var(--muted) !important; }
.ctx-out b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 860px) { .ctx3 { grid-template-columns: 1fr; } }
.ctx2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(24px, 4vw, 64px); }
@media (max-width: 860px) { .ctx2 { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0 !important; grid-template-columns: repeat(4, 1fr); gap: 16px !important; margin-top: 28px !important; }
.steps li { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--bg); }
.steps p { font-size: 15px; margin-top: 6px; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* Section divider */
.s-divider { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.s-divider .num { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.s-divider h2 { color: var(--ink); margin: 14px 0 26px; }
.subs { list-style: none; padding: 0 !important; max-width: 640px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
.subs a { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: background .2s; cursor: pointer; }
.subs a:hover { background: var(--line); }
.subs svg { width: 16px; height: 16px; }

/* Content slide: text left, image right */
.s-content { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.s-content.no-shot { grid-template-columns: 1fr; }
.s-content.no-shot .txt { max-width: 720px; }

/* Stacked images: text left, two images on the right one under the other, slide keeps its 16:9 height */
.s-content.s-stack { grid-template-columns: 1fr 1.35fr; align-items: stretch; }
.s-stack .txt { align-self: center; }
.s-stack .shots2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; min-height: 0; height: 100%; }
.s-stack .shot { min-height: 0; height: 100%; display: flex; }
.s-stack .shot a { display: flex; width: 100%; height: 100%; }
.s-stack .shot img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.obs-cards { display: grid; gap: 16px; margin-top: 16px; }
.obs-cards .card3 { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.slide .txt .obs-cards p { margin: 0; max-width: none; }
.slide .txt .obs-cards .ctx-big { font-size: clamp(17px, 1.5vw, 20px); }
.slide .txt .obs-cards .ctx-sub { font-size: 15px; }
.s-content.s-big { grid-template-columns: 1fr 1.65fr; }
@media (min-width: 861px) { .s-content.s-big h2 { white-space: nowrap; } }
@media (max-width: 860px) { .s-content.s-big { grid-template-columns: 1fr; } }
.ins { margin-top: 26px; gap: 16px; }
.ins .card3 { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.slide .txt .ins p { margin: 0; max-width: none; }
.slide .txt .ins .ctx-big { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.25; }
.slide .txt .ins .q { font-size: 15px; line-height: 1.5; font-style: italic; color: var(--body); padding-left: 14px; border-left: 3px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.slide .txt .chips { margin-top: 14px; }
.slide .txt p.full { max-width: none; text-wrap: pretty; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.cards2 .card3 { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .cards2 { grid-template-columns: 1fr; } }
.pad-shots .shot { padding: clamp(10px, 1.5vw, 18px); }
.pad-shots .shot img { border-radius: 10px; }
.pad-shots .shot.cap-fig { padding: 0; }
.pad-shots .shot.cap-fig a { padding: clamp(10px, 1.5vw, 18px); }
.s-stack .shot.cap-fig { flex-direction: column; }
.s-stack .shot.cap-fig a { flex: 1; min-height: 0; height: auto; }
.shot figcaption { font-size: 13px; line-height: 1.35; color: var(--muted); padding: 8px 14px 10px; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 860px) { .s-content.s-stack { grid-template-columns: 1fr; } .s-stack .shots2 { grid-template-rows: none; height: auto; } .s-stack .shot, .s-stack .shot a { height: auto; } .s-stack .shot img { height: auto; } }

/* Cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card3 { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--bg); }
.card3 .sub { margin: 4px 0 8px; }

.s-thanks { text-align: left; }
.s-thanks p { margin: 14px 0 26px; }
.next { display: block; padding: clamp(40px, 6vw, 80px) 0 0; }
.next small { color: var(--muted); font-size: 14px; }
.next b { display: block; font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.04em; font-weight: 600; line-height: 1.1; transition: padding .3s; }
.next:hover b { padding-left: 14px; }

@media (max-width: 860px) {
  .work, .about, .skills { grid-template-columns: 1fr; }
  .slide { aspect-ratio: auto; }
  .s-divider { min-height: 280px; }
  .s-title, .s-content { grid-template-columns: 1fr; }
  .steps, .cards3 { grid-template-columns: 1fr 1fr; }
  .list .item { grid-template-columns: 1fr; gap: 2px; }
  .list .item .when { text-align: left; }
  .nav a.link.hide-sm { display: none; }
  .stats { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) { .steps, .cards3 { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* Home hero with portrait */
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .portrait { justify-self: start; max-width: 300px; order: -1; } }

/* Case study: phone galleries, tradeoff table, stat cards, prototype links */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-self: center; align-items: start; }
.phones.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.phones .ph { display: grid; gap: 8px; min-width: 0; }
.phones .shot img { max-height: none; width: 100%; height: auto; object-fit: cover; }
.cap { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tryit { font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; width: fit-content; }
.tryit:hover { text-decoration: underline; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-self: center; align-items: center; }
.duo .shot img { max-height: min(560px, 52vw); }
.big { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.hmw { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; color: var(--ink-2); max-width: none; margin-top: 18px; }
.slide .txt .hmw { max-width: none; font-size: clamp(22px, 2.6vw, 34px); color: var(--ink-2); margin-top: 18px; }
.note, .slide .txt .note { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 72ch; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.tbl thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tbl tbody th { font-weight: 600; color: var(--ink); width: 20%; }
.tbl .pick { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tbl thead th.pick { color: var(--accent); }
.proto { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 860px) { .phones, .phones.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duo { grid-template-columns: 1fr; } .tbl { font-size: 14px; display: block; overflow-x: auto; } }

/* Image modal (case studies) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 32px; background: rgba(0,0,0,.82); cursor: zoom-out; overflow: auto; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 64px); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; cursor: default; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Wide slide: text on top, a row of screens below */
.s-content.s-wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 20px; }
.s-wide .txt { max-width: 760px; }
.s-wide .phones { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-self: start; align-items: start; }
.s-wide .shots2 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; align-self: center; }
.s-wide .shots2 .shot, .s-wide .shots2 .shot a { height: auto; }
.s-wide .shots2 .shot img { height: auto; }
@media (max-width: 860px) { .s-wide .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s-wide .shots2 { grid-template-columns: 1fr; } }
.qs { margin: 4px 0 0; padding-left: 18px; color: var(--body); display: grid; gap: 6px; }
.res .card3 { display: flex; flex-direction: column; gap: 8px; }
.res .card3 p { margin: 0 0 6px; flex: 1; }
.res .resp { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); }
.res .resp span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.bas .card3 { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; }
.bas .card3 h3 { margin: 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ba figure { margin: 0; display: flex; flex-direction: column-reverse; gap: 8px; }

.ba figcaption { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--body); }
.ba .new figcaption { color: var(--accent); }
.slide .txt .bas .was { margin: 0; font-size: 14px; line-height: 1.4; color: var(--body); }
.slide .txt .bas .now { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.bas .card3 { background: #f1f1f3; }
.ba { gap: 10px; }
.ba img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.1); }

/* Relationship diagram (dealership platform) */
.rel { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 26px; }
.rel .node { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.rel .node.hub { background: #0b0b0d; border-color: #0b0b0d; }
.rel .node.hub h3, .rel .node.hub b { color: #fafafa; }
.rel .node.hub p, .rel .node.hub li { color: #a1a1aa; }
.rel .node small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rel .node.hub small { color: #93b4ff; }
.rel .node p { margin: 0; font-size: 15px; line-height: 1.4; }
.rel .node b { display: block; font-size: 13px; margin-top: 6px; color: var(--ink); }
.rel .link { align-self: center; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 12px; line-height: 1.3; color: var(--body); max-width: 112px; }
.rel .link svg { width: 56px; height: 18px; color: var(--accent); }
.rel-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .rel { grid-template-columns: 1fr; } .rel .link { max-width: none; grid-auto-flow: column; justify-content: center; } .rel .link svg { transform: rotate(90deg); } }
.s-content.s-side { grid-template-columns: minmax(200px, .62fr) 2.38fr; }
.s-side .phones.four { grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: center; }
@media (max-width: 860px) { .s-content.s-side { grid-template-columns: 1fr; } .s-side .phones.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-side h2 { font-size: clamp(26px, 3.2vw, 40px); }
.s-wide .shots2.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Full screen galleries */
.slide.s-gallery { aspect-ratio: auto; justify-content: flex-start; }
.gal { display: grid; gap: 14px; margin-top: 26px; align-items: start; }
.gal.m { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gal.d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal .shot { border-radius: 14px; align-self: start; }
.gal .shot img { max-height: none; width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .gal.m { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gal.m, .gal.d { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gal.d { grid-template-columns: 1fr; } }

/* Relationship visual */
.flow3 { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 2.4fr) auto minmax(0, .8fr); gap: clamp(8px, 1.6vw, 22px); align-items: start; margin-top: 26px; }
.flow3 .col { display: grid; gap: 12px; justify-items: center; text-align: center; min-width: 0; }
.flow3 .col > b { font-size: 14px; color: var(--ink); }
.flow3 img { width: 100%; height: auto; display: block; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(20, 24, 80, .14); background: #fff; }
.flow3 img.ph { border-radius: 22px; max-width: 200px; }
.flow3 img.dk { border-radius: 14px; }
.flow3 .hub > b { color: var(--accent); }
.flow3 .steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.flow3 .steps li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--body); }
.flow3 .arr { align-self: center; margin-top: -60px; display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.flow3 .arr svg { width: clamp(36px, 5vw, 64px); color: var(--accent); }
@media (max-width: 860px) { .flow3 { grid-template-columns: 1fr; } .flow3 .arr { margin-top: 0; } .flow3 .arr svg { transform: rotate(90deg); } }
.flow3 p.steps { margin: 0; font-size: 13px; line-height: 1.6; color: var(--body); max-width: 26ch; }
.flow3 .hub p.steps { max-width: none; }
.flow3 p.steps i { font-style: normal; color: var(--accent); margin: 0 2px; }
.flow3 p.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; line-height: 1; }
.flow3 p.steps span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }

/* Flow diagram */
.flowsvg { width: 100%; height: auto; margin-top: 22px; display: block; font-family: inherit; }
.flowsvg .lane { fill: var(--bg); stroke: var(--line); }
.flowsvg .lane.nerv { fill: #0b0b0d; stroke: #0b0b0d; }
.flowsvg .ll { font-size: 19px; font-weight: 600; fill: var(--ink); }
.flowsvg .ls { font-size: 14px; fill: var(--muted); }
.flowsvg .lane.nerv ~ .ll { }
.flowsvg .nd rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.flowsvg .nd text { font-size: 15px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.flowsvg .nd.hub rect { fill: #4553d6; stroke: #4553d6; }
.flowsvg .nd.hub text { fill: #fff; }
.flowsvg .ar { fill: none; stroke: var(--accent); stroke-width: 2; color: var(--accent); }
.flowsvg .ar.v { stroke-width: 2.4; stroke-dasharray: 5 5; }
.flowsvg marker path { stroke: var(--accent); }
.flowsvg .lane.nerv + .ll { fill: #fafafa; }
.flowsvg .lane.nerv + .ll + .ls { fill: #a1a1aa; }
.flowsvg .nd text { font-size: 14px; }

/* Car service journey */
.jr { display: grid; grid-template-columns: 1.9fr repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 30px; position: relative; align-items: start; }
.jr::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: var(--line); }
.jr .st { position: relative; display: grid; gap: 8px; justify-items: start; min-width: 0; }
.jr .n { width: 30px; height: 30px; border-radius: 50%; background: #4553d6; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.jr b { font-size: 14px; line-height: 1.25; color: var(--ink); }
.jr em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.jr em.sn { width: auto; height: auto; display: inline-block; background: #0b0b0d; color: #fafafa; font-weight: 500; }
.jr em.sa { background: color-mix(in srgb, #4553d6 12%, var(--surface)); color: #3340b8; font-weight: 500; }
.jr img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(20, 24, 80, .12); background: #fff; margin-top: 4px; }
.jr .st.d img { border-radius: 12px; }
.jr .done { width: 100%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, #4553d6 10%, var(--surface)); color: #4553d6; display: grid; place-items: center; max-width: 110px; margin-top: 4px; }
.jr .done svg { width: 44%; }
@media (max-width: 960px) { .jr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jr::before { display: none; } }
.jr em.sn { width: auto; height: auto; border-radius: 999px; }
.jsvg .dot { fill: #4553d6; }
.jsvg .dn { font-size: 14px; font-weight: 600; fill: #fff; text-anchor: middle; }
.jsvg .sn { font-size: 14px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.jsvg .hl { fill: none; stroke: var(--line); stroke-width: 2; color: var(--muted); }
.jsvg .nd.nerv rect { fill: #4553d6; stroke: #4553d6; }
.jsvg .nd.nerv text { fill: #fff; }
.jsvg .nd text { font-size: 13px; }
.jsvg .lane.nerv { fill: #0b0b0d; }
.jsvg .lane.cust + .ll + .ls { }
.jsvg .nd.app rect { stroke: #4553d6; }
.jsvg .ar.v { stroke: #7a89f5; stroke-width: 2; stroke-dasharray: none; stroke-linecap: round; }
.jsvg .hl { stroke: #7a89f5; stroke-width: 2; stroke-linecap: round; opacity: .6; }
.jsvg .ar2 { fill: none; stroke: #4553d6; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.jsvg .lane.nerv ~ .ar2 { }
.jsvg .nd text { font-size: 12px; }
.jsvg .bd { fill: #4553d6; stroke: var(--surface); stroke-width: 2; }
.jsvg .bn { font-size: 11px; font-weight: 600; fill: #fff; text-anchor: middle; }
.jsvg .nd text { font-size: 13px; }
.jsvg .ll { font-size: 17px; }
.jsvg .ls { font-size: 13px; }
.jsvg .lane.nerv ~ .ar2 { stroke: #8f9cff; }
.jsvg .ar2 { stroke-width: 2.2; }
.jsvg .lane.nerv ~ .ar2 { stroke: #8f9cff; }
.jsvg .ar2, .jsvg .lane.nerv ~ .ar2 { stroke: #6573ec; stroke-width: 2.4; }
.gal.m4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards3.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .gal.m4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards3.c4 { grid-template-columns: 1fr 1fr; } }

/* iPhone mockups */
.mock .shot { position: relative; background: #0d0d11; border: 0; padding: 6px; border-radius: 30px; box-shadow: 0 0 0 1.5px #2c2c34, 0 14px 32px rgba(15, 18, 60, .22); overflow: visible; }
.mock .shot a, .mock .shot > img { position: relative; display: block; border-radius: 24px; overflow: hidden; }
.mock .shot img { border-radius: 24px; display: block; width: 100%; height: auto; max-height: none; object-fit: cover; }
.mock .shot a::before { content: ""; position: absolute; z-index: 2; top: 1.2%; left: 50%; transform: translateX(-50%); width: 27%; aspect-ratio: 4.2 / 1; max-height: 3%; border-radius: 99px; background: #0d0d11; }
.mock .shot::before, .mock .shot::after { content: ""; position: absolute; width: 3px; background: #2c2c34; border-radius: 2px; }
.mock .shot::before { left: -3px; top: 17%; height: 7%; box-shadow: 0 34px 0 #2c2c34; }
.mock .shot::after { right: -3px; top: 24%; height: 10%; }
.mock.gal { gap: 22px; }
.gal.m { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slide.s-auto { aspect-ratio: auto; }
.s-auto .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .s-auto .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal.m4, .gal.m { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .gal.m4, .gal.m { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Skills: bento cards */
.sk { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.sk-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: 28px; display: grid; align-content: start; gap: 6px; }
.sk-card.c-design { grid-column: span 7; }
.sk-card.c-res { grid-column: span 5; }
.sk-card.c-gfx { grid-column: span 5; }
.sk-card.c-cert { grid-column: span 7; }
.sk-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); margin-bottom: 14px; }
.sk-ic svg { width: 24px; height: 24px; }
.sk-card h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.sk-n { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sk-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sk-card li { font-size: 15px; padding: 8px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.sk-card.c-cert { background: #0b0b0d; border-color: #0b0b0d; align-content: center; }
.sk-card.c-cert .sk-ic { background: rgba(255, 255, 255, .1); color: #93b4ff; }
.sk-card.c-cert h3 { font-size: 14px; font-weight: 500; color: #a1a1aa; letter-spacing: .1em; text-transform: uppercase; }
.sk-card.c-cert p { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: #fafafa; max-width: 22ch; }
@media (max-width: 860px) { .sk { grid-template-columns: 1fr; } .sk-card.c-design, .sk-card.c-res, .sk-card.c-gfx, .sk-card.c-cert { grid-column: auto; } .sk-card { padding: 22px; } }
.sk { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.sk-card, .sk-card.c-design, .sk-card.c-res, .sk-card.c-gfx { grid-column: auto; }
.sk-card h3 { min-height: 2.5em; }
@media (max-width: 960px) { .sk { grid-template-columns: 1fr; } .sk-card h3 { min-height: 0; } }
.sk-card h3 { line-height: 1.25; min-height: 2.5em; }
@media (max-width: 960px) { .sk-card h3 { min-height: 0; } }

/* Hero: centred with cut-out portrait */
.hero2 { --h2a: #fafafa; --h2b: #eef0ff; --h2glow: #c9d0ff; background: linear-gradient(180deg, var(--h2a) 0, var(--h2b) 100%); text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(56px, 9vw, 120px) var(--gutter) 0; overflow: hidden; }
@media (prefers-color-scheme: dark) { .hero2 { --h2a: #0b0b0d; --h2b: #14152a; --h2glow: #2a3080; } }
.hero2 h1.display { max-width: 15ch; font-size: clamp(40px, 6.2vw, 96px); margin: 22px auto 18px; }
.hero2 .lead { margin: 0 auto 28px; max-width: 58ch; }
.hero2 .row { justify-content: center; }
.h2-photo { position: relative; margin: 36px 0 0; width: min(430px, 86%); }
.h2-photo::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 130%; aspect-ratio: 1; transform: translate(-50%, 52%); border-radius: 50%; background: radial-gradient(closest-side, var(--h2glow), transparent); }
.h2-photo img { position: relative; display: block; width: 100%; height: auto; }
.h2-logos { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(18px, 4vw, 56px); width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(var(--gutter) * -1); padding: 22px var(--gutter) 26px; border-top: 1px solid var(--line); background: var(--h2b); color: var(--muted); font-size: 14px; font-weight: 500; }

/* Hero: flat background, client logos */
.hero2 { background: var(--bg); }
.h2-photo::before { display: none; }
.h2-logos { display: grid; gap: 18px; justify-items: center; background: transparent; border-top: 1px solid var(--line); padding: 30px var(--gutter) 40px; }
.h2-lbl { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h2-logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px clamp(22px, 3.4vw, 52px); max-width: 1440px; }
.h2-logos img { display: block; width: auto; filter: grayscale(1); opacity: .72; transition: opacity .2s, filter .2s; }
.h2-logos li:hover img { opacity: 1; filter: none; }
.h2-logos .l-bi { height: 30px; } .h2-logos .l-am { height: 26px; } .h2-logos .l-al { height: 28px; } .h2-logos .l-oc { height: 28px; }
.h2-logos .l-mm { height: 44px; } .h2-logos .l-er { height: 44px; }
.h2-logos .l-ab { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-2); opacity: .72; white-space: nowrap; }
.nav { transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.h2-logos .l-mz { height: 40px; }
.h2-logos { padding-bottom: clamp(72px, 9vw, 128px); }
.hero2 { padding-top: clamp(24px, 5vw, 70px); }
