/* essam.biz: white, black, calm. One page. Flat colours only. */
:root {
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --faint: #86868b;
  --soft: #f5f5f7;
  --line: #e8e8ed;
  --white: #fff;
  --night: #1d1c21;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  --gap: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.55 Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.od :focus-visible, .hood :focus-visible, .ship.dark:focus-visible { outline-color: #fff; }

/* A hairline at the very top that fills as the page is read */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  background: var(--soft); color: var(--ink); transition: transform .35s var(--ease), background .25s;
}
.pill:hover { transform: translateY(-1px); background: #ececf0; }
.pill:active { scale: .97; }
.pill.solid { background: var(--ink); color: var(--white); }
.pill.solid:hover { background: #000; }
.pill.small { height: 40px; padding: 0 18px; font-size: 14px; }
.pill.big { height: 58px; padding: 0 28px; font-size: 17px; }
.go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip, rgba(0, 0, 0, .06)); transition: background .35s var(--ease), color .35s var(--ease), transform .5s var(--ease), opacity .3s; }

/* Nav: a small floating glass bar */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto; width: min(640px, 100% - 28px); margin-inline: auto; height: 56px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 10px 30px -14px rgba(20, 30, 60, .16), inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .08);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled .nav-inner { background: rgba(255, 255, 255, .78); box-shadow: 0 16px 40px -16px rgba(20, 30, 60, .26), inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(0, 0, 0, .1); }
.brand { font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand span { color: var(--faint); }
.nav-links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; z-index: 1; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--grey); padding: 9px 13px; border-radius: 999px; transition: color .25s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-glow { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: rgba(0, 0, 0, .055); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; pointer-events: none; }
.nav-glow.on { opacity: 1; }
.snd { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--grey); cursor: pointer; transition: background .25s, color .25s, scale .3s var(--ease); }
.snd:hover { background: rgba(0, 0, 0, .055); color: var(--ink); }
.snd:active { scale: .9; }
.snd[aria-pressed="false"] { --waves: 0; --off: 1; color: var(--faint); }
@media (max-width: 600px) { .nav-links { display: none; } .snd { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: clamp(170px, 25vh, 260px) 0 0; text-align: center; }
.hero-words { position: relative; z-index: 2; will-change: transform, opacity; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--grey); margin-bottom: 22px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
h1 { font-size: clamp(52px, 12.4vw, 150px); letter-spacing: -.055em; line-height: .98; }
h1 .w, h2.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .06em .16em; margin: -.02em -.06em -.16em; }
h1 .w > span, h2.split .w > span { display: inline-block; }
.rot { margin-top: 16px; font-size: clamp(19px, 2.9vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; color: var(--faint); white-space: nowrap; }
.rot-box { position: relative; display: inline-block; vertical-align: bottom; text-align: left; transition: width .6s var(--ease); }
.rot-word { display: inline-block; color: var(--ink); font-weight: 600; white-space: nowrap; will-change: transform, opacity; }
.stats { list-style: none; display: flex; justify-content: center; max-width: 800px; margin: clamp(30px, 4.6vh, 44px) auto 0; padding: 0; }
.stats li { flex: 1 1 0; min-width: 0; }
.stats li + li { border-left: 1px solid var(--line); }
.stats a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 12px; text-decoration: none; transition: translate .45s var(--ease); }
.stats a:hover { translate: 0 -4px; }
.stats b { font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats a > span { font-size: 13.5px; line-height: 1.3; color: var(--grey); text-wrap: balance; }
.hint { display: inline-flex; align-items: center; gap: 8px; margin: clamp(90px, 15vh, 160px) 0 22px; font-size: 14px; font-weight: 500; color: var(--faint); }
.hint .ico { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@media (max-width: 640px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .stats li:nth-child(odd) { border-left: 0; }
}

/* The hero's playground (built by play.js on wide screens): loose files, Sweepy on its dock, the OrbitDrop wheel */
.playground { position: absolute; inset: 0; z-index: 3; display: none; pointer-events: none; will-change: transform, opacity; }
.playground.on { display: block; }
.file { position: absolute; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--grey); pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: scale .3s var(--ease); }
.file i { position: relative; width: 38px; height: 46px; border-radius: 6px; background: var(--white); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.file i::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px; height: 13px; border-radius: 3px; background: var(--c, #0a84ff); transition: background .3s; }
.file i::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; background: #dcdce1; clip-path: polygon(0 0, 100% 100%, 0 100%); border-radius: 0 0 0 3px; }
.file span { max-width: 104px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .8); white-space: nowrap; }
.file:hover { scale: 1.07; }
.file.held { cursor: grabbing; scale: 1.14; z-index: 7; }
.file.held i { box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .38), inset 0 0 0 1px var(--line); }
.file.wobble i { animation: wobble .18s linear infinite; }
.file.gone { pointer-events: none; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.mini { position: absolute; left: 0; top: 0; z-index: 4; width: 84px; height: 84px; pointer-events: auto; cursor: grab; touch-action: none; will-change: transform; }
.mini.held { cursor: grabbing; }
.mini svg { width: 100%; height: 100%; overflow: visible; }
.mini .brush { transform-box: view-box; }
.mini .brush.left { transform-origin: 34px 58px; }
.mini .brush.right { transform-origin: 166px 58px; }
.mini .brush line { stroke: #3a3c46; stroke-width: 1.5; stroke-linecap: round; }
.mini .brush line:nth-child(3n+2) { stroke: #d73a4a; }
.mini.spin .brush.left { animation: spinL .3s linear infinite; }
.mini.spin .brush.right { animation: spinR .3s linear infinite; }
@keyframes spinL { to { transform: rotate(-360deg); } }
@keyframes spinR { to { transform: rotate(360deg); } }
.mini-dock { position: absolute; width: 104px; height: 34px; border-radius: 12px 12px 16px 16px; background: var(--night); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.mini-dock span { position: absolute; left: 50%; top: 7px; width: 34px; height: 4px; margin-left: -17px; border-radius: 2px; background: #5bf29a; box-shadow: 0 0 10px #5bf29a; }
.bubble { position: absolute; z-index: 6; padding: 7px 12px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -100%); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.bubble.gone { opacity: 0; transform: translate(-50%, -80%); }
.wheel { position: absolute; width: 190px; height: 190px; margin: -95px 0 0 -95px; scale: .88; pointer-events: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .2)); transition: scale .5s var(--ease); }
.wheel:hover { scale: .93; }
.wheel.live { scale: 1.04; }
.wheel.done { scale: .95; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .seg path { fill: #f2f2f4; transition: fill .15s; }
.wheel .seg text { font: 600 10.5px Inter, sans-serif; fill: #3a3a3c; text-anchor: middle; dominant-baseline: central; transition: fill .15s; }
.wheel .seg.on path { fill: #111; }
.wheel .seg.on text { fill: #fff; }
.wc-top { font: 600 6.4px Inter, sans-serif; letter-spacing: .1em; fill: #8e8e93; text-anchor: middle; }
.wc-fmt { font: 700 19px Inter, sans-serif; letter-spacing: -.03em; fill: #1d1d1f; text-anchor: middle; }
.wc-top, .wc-fmt, .wc-icon { transition: opacity .2s; }
.wheel:not(.aim) :is(.wc-top, .wc-fmt), .wheel.aim .wc-icon { opacity: 0; }

/* The two apps. Click one and it opens; the other steps aside. */
.apps { position: relative; z-index: 4; padding-bottom: clamp(70px, 9vw, 120px); }
.duo { display: flex; gap: var(--gap); align-items: stretch; }
.app {
  --mh: 300px;
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  transition: flex-grow .9s var(--ease), translate .7s var(--ease);
}
.app.od { --bg: var(--night); --fg: #f5f5f7; --mute: #a1a1a8; --chip: rgba(255, 255, 255, .1); --x-bg: rgba(255, 255, 255, .14); --x-fg: #fff; }
.app.sw { --bg: var(--soft); --fg: var(--ink); --mute: var(--grey); --chip: rgba(0, 0, 0, .06); --x-bg: rgba(255, 255, 255, .8); --x-fg: var(--ink); }

.media { position: relative; height: var(--mh); overflow: hidden; transition: height .9s var(--ease), opacity .4s var(--ease) .3s; }
.clip { position: absolute; inset: 0; background: var(--cbg, transparent); opacity: 0; transition: opacity .6s var(--ease); }
.clip.on { opacity: 1; }
.clip video { width: 100%; height: 100%; object-fit: contain; }
.clip.fill video { object-fit: cover; object-position: 50% 80%; }
/* A clip of one window: cropped to the window itself, which floats on the card. */
.clip.panel { display: flex; justify-content: center; padding: 26px; }
.frame { position: relative; flex: none; height: 100%; aspect-ratio: var(--ar); border-radius: var(--r, 14px); overflow: hidden; background: #fff; box-shadow: 0 28px 60px -34px rgba(20, 30, 60, .4), 0 0 0 1px rgba(0, 0, 0, .06); }
.clip .frame video { position: absolute; left: var(--vx, 0); top: var(--vy, 0); width: var(--vw, 100%); height: var(--vh, 100%); max-width: none; object-fit: fill; }
/* The cover clip sits closer while the card is small (its caption out of view), and pulls back when the card opens. */
.clip.zoom video { position: absolute; left: 50%; top: 0; width: auto; height: 119%; max-width: none; aspect-ratio: 1232 / 600; transform: translateX(-50%); transition: height .9s var(--ease); }
.app.open .clip.zoom video { height: 100%; max-width: 100%; }

.body { position: relative; padding: 20px 24px 24px; transition: opacity .4s var(--ease) .3s; }
.id { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.icon { width: 52px; height: 52px; flex: none; border-radius: 13px; }
.od .icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .13); }
.icon.round { border-radius: 50%; }
.names { flex: 1; min-width: 0; }
.names :is(h2, h3) { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; }
.names p { color: var(--mute); font-size: 15px; line-height: 1.35; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.x {
  position: absolute; z-index: 6; top: 16px; right: 16px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--x-bg); color: var(--x-fg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s;
}
.app.open .x { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .4s, transform .4s var(--ease), visibility 0s; }
.app.open .x:hover { transform: scale(1.1) rotate(90deg); }

/* What only the open card shows */
.extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.extra-in { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.app.open .extra { grid-template-rows: 1fr; }
.app.open .extra-in { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .35s, visibility 0s; }
.seg { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--chip); }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: 600 14px/1 inherit; font-family: inherit; color: var(--mute); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .3s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { color: var(--ink); }
.thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); overflow: hidden; transition: transform .5s var(--ease), width .5s var(--ease); }
.thumb i { display: none; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; }
.cta { display: flex; align-items: center; gap: 20px; flex: none; }
.badge-link { display: inline-flex; border-radius: 6px; transition: transform .3s var(--ease); }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { height: auto; }
.od .badge-link img { border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .26); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link:hover .ico { transform: translate(2px, -2px); }
.desc { flex: none; color: var(--mute); font-size: 16px; text-align: right; white-space: nowrap; transition: opacity .2s; }
.desc.swap { opacity: 0; }

.rail { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.rail img { width: 52px; height: 52px; border-radius: 13px; }
.sw .rail img { border-radius: 50%; }
.od .rail img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .13); }
.rail b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.rail .go { width: 38px; height: 38px; margin-top: 6px; }
.rail .go .ico { width: 18px; height: 18px; }

.hit { position: absolute; inset: 0; z-index: 5; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.hit:focus-visible { outline: 2px solid var(--fg); outline-offset: -7px; }
.app.open .hit { display: none; }

/* Side by side on a wide screen: the open card takes the row, the other becomes a slim tab. */
@media (min-width: 961px) {
  .app.open { flex-grow: 6.2; --mh: min(460px, max(300px, 100vh - 330px)); }
  .app.open .id { padding-right: var(--tabs-w, 400px); }
  .app.open .go { opacity: 0; transform: scale(.6); }
  .tabs { position: absolute; top: 20px; right: 24px; height: 56px; display: flex; align-items: center; }
  .rail { display: flex; }
  .duo[data-open] .app:not(.open) .rail { opacity: 1; transition: opacity .45s var(--ease) .35s; }
  .duo[data-open] .app:not(.open) :is(.media, .body) { opacity: 0; transition: opacity .25s var(--ease); }
  /* The app the headline is talking about steps forward */
  .duo:not([data-open])[data-spot="orbitdrop"] .od, .duo:not([data-open])[data-spot="sweepy"] .sw { translate: 0 -8px; }
  .duo:not([data-open])[data-spot="orbitdrop"] .od .go, .duo:not([data-open])[data-spot="sweepy"] .sw .go { background: var(--fg); color: var(--bg); }
}
@media (min-width: 961px) and (hover: hover) {
  .duo:not([data-open]) .app:hover { flex-grow: 1.1; }
  .duo[data-open] .app:not(.open):hover { flex-grow: 1.22; }
  .app:not(.open):hover .go { background: var(--fg); color: var(--bg); transform: translateX(2px); }
}
/* Stacked on a narrow one: the card opens downwards. */
@media (max-width: 960px) {
  .duo { flex-direction: column; }
  .app { flex: none; border-radius: 26px; }
  .media { height: auto; aspect-ratio: 16 / 9; }
  .clip.panel { padding: 17px; }
  .body { padding: 16px 18px 20px; }
  .names p { white-space: normal; }
  .app.open .go { display: none; }
  .tabs { margin-top: 16px; }
  .seg button { flex: 1 1 auto; padding: 11px 6px; font-size: 13.5px; }
  .row2 { flex-direction: column-reverse; align-items: flex-start; gap: 20px; padding-top: 16px; }
  .desc { flex: initial; white-space: normal; text-align: left; }
  .x { top: 10px; right: 10px; width: 36px; height: 36px; }
}

/* Section headings */
.hood h2, .log h2, .more h2, .skills h2, .say h2, .reviews h2 { font-size: clamp(40px, 6.6vw, 88px); letter-spacing: -.05em; line-height: 1; }
.sub { color: var(--grey); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 560px; margin-top: 20px; text-wrap: balance; }

/* Under the hood: a black band */
.hood { padding: 0 12px; }
.hood-in { border-radius: 40px; background: var(--night); color: #f5f5f7; padding: clamp(76px, 9.5vw, 124px) 0; }
.hood .sub { color: #a1a1a8; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 60px); }
.fact { border-radius: 26px; padding: 28px 26px 30px; background: rgba(255, 255, 255, .06); cursor: pointer; will-change: transform; }
.fact:hover { background: rgba(255, 255, 255, .095); }
.fact b { display: block; height: 62px; font-size: clamp(42px, 4.3vw, 58px); font-weight: 600; letter-spacing: -.05em; line-height: 62px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact b small { margin-left: 3px; font-size: .42em; font-weight: 600; letter-spacing: -.02em; color: #a1a1a8; }
.fact b.lang { font-size: clamp(30px, 3.1vw, 42px); letter-spacing: -.04em; }
.fact b.lang span { color: #6e6e73; }
.fact > div { position: relative; display: flex; align-items: center; gap: 6px; height: 26px; margin-top: 18px; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.meter i { position: relative; width: 9%; height: 6px; border-radius: 3px; background: #f5f5f7; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .6s; }
.fact.in .meter i { transform: none; }
.pulse::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .22); }
.pulse i { position: absolute; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #f5f5f7; animation: travel 3.4s linear infinite; }
@keyframes travel { to { left: calc(100% - 6px); } }
.dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.chips i { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d1d1d6; font-size: 12px; font-weight: 600; font-style: normal; line-height: 1; }
.fact h3 { margin: 18px 0 6px; font-size: 17px; letter-spacing: -.01em; }
.fact p { color: #a1a1a8; font-size: 15px; line-height: 1.45; }
@media (max-width: 1040px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .hood { padding: 0 8px; } .hood-in { border-radius: 30px; } }

/* Five more: the same opening cards as the two apps, five to a row, with screenshots */
.more { padding: clamp(80px, 10vw, 130px) 0 0; }
.deck { margin-top: clamp(40px, 5vw, 60px); }
.deck .app { --mh: 214px; border-radius: 28px; }
.app.card { --bg: var(--soft); --fg: var(--ink); --mute: var(--grey); --chip: rgba(0, 0, 0, .06); --x-bg: rgba(255, 255, 255, .86); --x-fg: var(--ink); }
.app.card.dark { --bg: var(--night); --fg: #f5f5f7; --mute: #a1a1a8; --chip: rgba(255, 255, 255, .1); --x-bg: rgba(255, 255, 255, .14); --x-fg: #fff; }
.shots { position: absolute; inset: 10px 10px 0; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.cs { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.cs.on { opacity: 1; }
.deck .app:not(.open):hover .cs.on { transform: scale(1.04); }
.shots.mac { background: #2a292f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.mac-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #f5f5f7; }
.mac-art img { width: clamp(64px, 30%, 104px); height: auto; border-radius: 22%; margin-bottom: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform 1s var(--ease); }
.app.open .mac-art img { transform: scale(1.12) translateY(-4px); }
.mac-art span { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.mac-art small { font-size: 13.5px; color: #a1a1a8; }
.deck .body { padding: 16px 18px 18px; }
.deck .id { gap: 12px; min-height: 48px; }
.deck .icon { width: 40px; height: 40px; border-radius: 10px; }
.deck .names :is(h2, h3) { font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.deck .names p { font-size: 14px; }
/* Five to a row leaves no room for the arrow: the whole card is the button, and it still lifts on hover */
@media (min-width: 961px) {
  .deck .app:not(.open) .id { gap: 10px; }
  .deck .app:not(.open) .id .go { display: none; }
  .deck .app:not(.open) .icon { width: 36px; height: 36px; border-radius: 9px; }
  .deck .app:not(.open) .names :is(h2, h3) { font-size: 17px; }
  .deck .app:not(.open) .names p { font-size: 13.5px; }
  .deck:not([data-open]) .app:hover { translate: 0 -6px; }
}
.deck .go { width: 38px; height: 38px; }
.deck .go .ico { width: 18px; height: 18px; }
.deck .rail img { width: 40px; height: 40px; border-radius: 10px; }
.deck .rail b { max-width: 84%; font-size: 13.5px; line-height: 1.25; text-align: center; text-wrap: balance; }
.deck .rail .go { width: 34px; height: 34px; margin-top: 2px; }
.deck .row2 { padding-top: 18px; }
.deck .cta { gap: 18px; }
.deck .pill.small { gap: 6px; }
.deck .pill.small .ico { width: 16px; height: 16px; }
.dark .pill.solid { background: #f5f5f7; color: var(--ink); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--chip); font-size: 13.5px; font-weight: 600; }
@media (min-width: 961px) {
  .deck .app.open { flex-grow: 9.5; --mh: min(470px, max(300px, 100vh - 330px)); }
  .deck .tabs { top: 16px; right: 18px; height: 48px; }
}
@media (min-width: 961px) and (hover: hover) {
  .deck:not([data-open]) .app:hover { flex-grow: 1.25; }
  .deck[data-open] .app:not(.open):hover { flex-grow: 1.35; }
}
@media (max-width: 960px) {
  .deck .app { border-radius: 24px; }
  .shots { inset: 8px 8px 0; border-radius: 17px; }
}

/* Skills and knowledge: four cards of tags */
.skills { padding: clamp(80px, 10vw, 130px) 0 0; }
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 60px); }
.kit-card { display: flex; flex-direction: column; padding: 26px 24px 26px; border-radius: 26px; background: var(--soft); will-change: transform; }
.kit-n { font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.kit-card h3 { margin-top: 26px; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.kit-card p { margin-top: 8px; color: var(--grey); font-size: 15px; line-height: 1.45; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; }
.tags li { padding: 7px 12px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; line-height: 1.1; cursor: default; transition: background .25s, color .25s, box-shadow .25s, translate .35s var(--ease); }
.tags li:hover { background: var(--ink); color: var(--white); box-shadow: none; translate: 0 -2px; }
@media (max-width: 1040px) { .kit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kit { grid-template-columns: 1fr; } }

/* Always shipping: a year of work, one square a day */
.log { padding: clamp(80px, 10vw, 130px) 0 0; }
.cal { position: relative; margin-top: clamp(36px, 4.6vw, 54px); padding: 26px 26px 20px; border-radius: 28px; background: var(--soft); }
.cal-scroll { overflow-x: auto; scrollbar-width: none; margin: -6px; padding: 6px; }
.cal-scroll::-webkit-scrollbar { display: none; }
.cal-inner { min-width: 700px; }
.cal-months, .cal-grid { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); column-gap: clamp(2px, .32vw, 4px); }
.cal-months { height: 20px; margin-bottom: 6px; font-size: 12.5px; color: var(--faint); }
.cal-months span { white-space: nowrap; }
.cal-grid { grid-template-rows: repeat(7, auto); grid-auto-flow: column; row-gap: clamp(2px, .32vw, 4px); }
.cal-grid i, .cal-scale i, .cal-key i { display: block; aspect-ratio: 1; border-radius: 22%; background: var(--c); }
.cal-grid i.pad { visibility: hidden; }
[data-l="0"] { --c: #e4e4e9; }
[data-l="1"] { --c: #bdbdc4; }
[data-l="2"] { --c: #8e8e95; }
[data-l="3"] { --c: #545459; }
[data-l="4"] { --c: #1d1d1f; }
.cal-grid i[data-date] { cursor: pointer; transition: transform .25s var(--ease), opacity .6s var(--ease); }
.cal-grid i[data-date]:hover { transform: scale(1.55); position: relative; z-index: 2; box-shadow: 0 0 0 2px var(--soft); }
.cal i.pin, .cal-key i { box-shadow: 0 0 0 2px var(--soft), 0 0 0 3.5px var(--ink); }
.cal-grid i.pin:hover { box-shadow: 0 0 0 2px var(--soft), 0 0 0 3.5px var(--ink); }
.js .cal-grid i[data-date] { opacity: 0; transition-delay: 0s, calc(var(--w) * 14ms); }
.js .cal.in .cal-grid i[data-date] { opacity: 1; }
.cal-legend { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 13px; color: var(--grey); }
.cal-key, .cal-scale { display: inline-flex; align-items: center; gap: 5px; }
.cal-key { gap: 10px; }
.cal-key i, .cal-scale i { width: 12px; }
.cal-tip { position: absolute; z-index: 5; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 12.5px; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(.96); transition: opacity .2s, transform .25s var(--ease); }
.cal-tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }
.cal-tip b { font-weight: 600; font-size: 13px; }
.cal-tip span { color: #a1a1a8; }
.cal-stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; }
.cal-stats li { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-stats b { font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cal-stats span { color: var(--grey); font-size: 14.5px; line-height: 1.4; }
@media (max-width: 860px) { .cal-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cal { padding: 20px 16px 16px; border-radius: 24px; } .cal-legend { font-size: 12px; } }

/* Say hi */
.say { padding: clamp(100px, 13vw, 170px) 0 clamp(90px, 11vw, 150px); text-align: center; }
.say .sub { max-width: 520px; margin-inline: auto; }
.say-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Footer: a dark rounded panel, like Under the hood */
.footer { padding: 0 12px 12px; }
.foot-in { border-radius: 40px; background: var(--night); color: #f5f5f7; padding: clamp(56px, 7vw, 92px) 0 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(40px, 6vw, 90px); }
.foot-brand { font-size: 26px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.foot-brand span { color: #6e6e73; }
.foot-me p { max-width: 340px; margin-top: 14px; color: #a1a1a8; font-size: 16px; line-height: 1.5; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.footer .pill { height: 46px; padding: 0 20px; font-size: 15px; background: rgba(255, 255, 255, .1); color: #f5f5f7; }
.footer .pill:hover { background: rgba(255, 255, 255, .16); }
.footer .pill.solid { background: #f5f5f7; color: var(--ink); }
.footer .pill.solid:hover { background: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.foot-col h3 { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73; }
.foot-col a { position: relative; color: #d1d1d6; font-size: 15px; text-decoration: none; transition: color .25s, translate .35s var(--ease); }
.foot-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.foot-col a:hover { color: #fff; translate: 2px 0; }
.foot-col a:hover::after { transform: none; }
.foot-word { margin: clamp(56px, 7vw, 96px) 0 0; font-size: clamp(64px, 16.5vw, 236px); font-weight: 600; letter-spacing: -.065em; line-height: .8; text-align: center; color: #2a292f; white-space: nowrap; user-select: none; transition: color .8s var(--ease); }
.foot-in:hover .foot-word { color: #333239; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 14px; color: #86868b; }
.foot-up { display: inline-flex; align-items: center; gap: 6px; color: #d1d1d6; text-decoration: none; transition: color .25s; }
.foot-up .ico { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .4s var(--ease); }
.foot-up:hover { color: #fff; }
.foot-up:hover .ico { transform: rotate(180deg) translateY(3px); }
.footer :focus-visible { outline-color: #fff; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .foot-in { border-radius: 30px; }
  .footer { padding: 0 8px 8px; }
  .foot-note { order: 3; width: 100%; }
}

/* Motion: the page arrives, then things rise as you reach them */
.js h1 .w > span, .js h2.split .w > span { transform: translateY(112%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 90ms + 120ms); }
.js.ready h1 .w > span, .js h2.split.in .w > span { transform: none; }
.js h2.split .w > span { transition-delay: calc(var(--i) * 80ms); }
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 160ms); }
.js.ready .rise { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition-property: opacity, transform, translate; transition-duration: 1s, 1s, .5s; transition-timing-function: var(--ease); transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s; }
.js .reveal.in { opacity: 1; transform: none; }
/* Once a card is under the pointer it follows it straight away */
.js [data-tilt].live { transition: opacity 1s var(--ease), transform .25s ease-out; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .js h1 .w > span, .js h2.split .w > span, .js .rise, .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Reviews: two slow rows of real Store reviews, flat, white and black. */
.reviews { padding: clamp(80px, 10vw, 130px) 0 0; overflow: hidden; }
.rv-rows { display: grid; gap: 14px; margin-top: 44px; }
.rv-row { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; align-items: flex-start; gap: 14px; width: max-content; will-change: transform; }
.rv-row { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rv-row.grabbing { cursor: grabbing; }
.rv-row img { -webkit-user-drag: none; pointer-events: none; }
@keyframes rv-slide { to { transform: translateX(-50%); } }
.rv { margin: 0; width: 360px; height: 262px; flex: none; padding: 24px 26px; border-radius: 20px; background: var(--soft); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.rv .stars { color: var(--ink); letter-spacing: 2px; font-size: 15px; }
.rv blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.rv.md blockquote { font-size: 19px; line-height: 1.42; letter-spacing: -.01em; -webkit-line-clamp: 5; line-clamp: 5; }
.rv.lg blockquote { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; -webkit-line-clamp: 4; line-clamp: 4; }
.rv-by { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--grey); }
.rv-by img { width: 22px; height: 22px; border-radius: 6px; }
@media (max-width: 640px) { .rv { width: 290px; height: 290px; } }


/* Contact form in "Say hi": email required, it comes to my inbox (api/contact.js). */
.ct { margin: 36px auto 0; max-width: 620px; display: grid; gap: 12px; text-align: left; }
.ct-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
.ct-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ct-pick span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ct-pick input:checked + span { background: var(--ink); color: var(--white); }
.ct-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct input:not([type=radio]), .ct textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft); border: 0; border-radius: 14px; padding: 14px 16px; resize: vertical; }
.ct input:not([type=radio]):focus, .ct textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); background: var(--white); }
.ct .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ct-send { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ct-note { color: var(--grey); font-size: 15px; }
.say .say-row { margin-top: 28px; }
@media (max-width: 640px) { .ct-two { grid-template-columns: 1fr; } }

/* Calendar on phones: 20 weeks, full width */
.cal.short .cal-inner { min-width: 0; }
.cal.short .cal-months { font-size: 11.5px; }

/* Phones: a menu button in the bar, and a full-screen menu */
.menu-btn { display: none; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn i:first-child { top: 15px; }
.menu-btn i:last-child { top: 23px; }
.menu-open .menu-btn i:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 19px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 110px 28px 40px; opacity: 0; transition: opacity .35s var(--ease); }
.menu[hidden] { display: none; }
.menu.on { opacity: 1; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a, .menu-foot { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms + 60ms); }
.menu.on .menu-links a, .menu.on .menu-foot { opacity: 1; transform: none; }
.menu-links a { font-size: clamp(34px, 10vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; text-decoration: none; color: var(--ink); padding: 4px 0; }
.menu-links a:active { color: var(--grey); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px; }
/* Closing: the links lift away quickly in reverse order, then the panel fades (no slow drop back down). */
.menu.closing { opacity: 0; transition: opacity .3s var(--ease) .14s; }
.menu.closing .menu-links a, .menu.closing .menu-foot { opacity: 0; transform: translateY(-14px); transition: opacity .22s ease, transform .3s var(--ease); transition-delay: calc((5 - var(--i)) * 28ms); }
.menu-open, .menu-open body { overflow: hidden; }
@media (max-width: 600px) {
  .menu-btn { display: block; }
  .nav-inner .pill.small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .menu, .menu-links a, .menu-foot, .menu-btn i { transition: none; } }
