@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Layout concept: a left-aligned 12-column workbench. The developer stands in front of his live work;
   every project is shown inside real device frames. One accent, used for actions and the mark. */
:root {
  --paper: #F2F2EE;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5A5F69;
  --line: #DCDDD7;
  --stage: #E6E7E1;
  --accent: #FF5B1F;
  --accent-text: #B93B0A;
  --on-accent: #16181D;
  --bezel: #0E0F12;
  --chrome: #23262D;
  --chrome-ink: #9AA0AA;
  --shadow: 0 30px 60px -30px rgba(22, 24, 29, .35), 0 12px 24px -12px rgba(22, 24, 29, .18);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.8vw, 5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111317; --surface: #181B20; --ink: #ECEDE9; --muted: #9BA0AA; --line: #2A2E35;
    --stage: #1B1E24; --accent: #FF6A2E; --accent-text: #FF8E5E; --on-accent: #111317;
    --chrome: #2A2E36; --chrome-ink: #8D939D;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111317; --surface: #181B20; --ink: #ECEDE9; --muted: #9BA0AA; --line: #2A2E35;
  --stage: #1B1E24; --accent: #FF6A2E; --accent-text: #FF8E5E; --on-accent: #111317;
  --chrome: #2A2E36; --chrome-ink: #8D939D;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--stage); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }

.btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 .98rem/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--accent); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; padding: 8px; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links:not(.open) { display: none; }
  .nav .btn-hire { display: none; }
}

/* ---------- Device frames ---------- */
.browser {
  background: var(--chrome); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--chrome) 80%, #000);
}
.browser-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding-inline: 12px; }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.url {
  flex: 1; min-width: 0; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--bezel) 55%, var(--chrome));
  color: var(--chrome-ink); font-size: 11.5px; display: flex; align-items: center; gap: 6px; padding-inline: 10px;
  white-space: nowrap; overflow: hidden; max-width: 420px; margin-inline: auto; justify-content: center;
}
.url svg { width: 10px; height: 10px; flex: none; }
.screen { position: relative; aspect-ratio: 1552 / 756; background: #fff; overflow: hidden; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phone {
  position: relative; background: var(--bezel); border-radius: 13% / 6.2%; padding: 3.2%;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #2C2F36;
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 2.6%; left: 50%; translate: -50% 0; width: 30%; height: 2.6%;
  background: var(--bezel); border-radius: 999px; z-index: 2;
}
.phone-screen { position: relative; aspect-ratio: 390 / 800; border-radius: 10.5% / 5%; overflow: hidden; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 7px 14px 7px 10px; border-radius: 999px; }
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .45); } 70% { box-shadow: 0 0 0 9px rgba(34, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); } }
.hero-grid > div:first-child { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 7.6cqi, 4.1rem); margin-top: 22px; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .role { display: block; font-size: .5em; letter-spacing: -.015em; line-height: 1.2; margin-top: .45em; color: var(--accent-text); }
.hero h1 .role > span { animation-delay: .12s; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; margin-top: 22px; line-height: 1.5; animation: fade .8s .25s both; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade .8s .35s both; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); animation: fade .8s .45s both; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 480px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts b { font-family: var(--display); font-weight: 600; font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: var(--step--1); line-height: 1.3; max-width: 14ch; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.showcase { position: relative; aspect-ratio: 1 / 1.04; max-width: 600px; margin-left: auto; width: 100%; }
.showcase .stage {
  position: absolute; inset: 14% 0 0 6%; border-radius: 28px; background: var(--stage); overflow: hidden;
}
.showcase .stage::before { /* drafting grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .55; mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
}
.showcase .orb { position: absolute; width: 46%; aspect-ratio: 1; right: 8%; top: 30%; border-radius: 50%; background: var(--accent); opacity: .92; animation: fade 1s .1s both; }
.showcase .browser { position: absolute; width: 66%; left: 3%; top: 9%; z-index: 1; animation: float-in 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
.showcase .me { position: absolute; z-index: 2; bottom: 0; right: 9%; width: 50%; height: auto; animation: me-in 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.showcase .phone { position: absolute; z-index: 3; width: 23%; right: -4%; bottom: 3%; animation: phone-in 1s .45s cubic-bezier(.2, .8, .2, 1) both; }
.showcase .tag {
  position: absolute; z-index: 4; left: 2%; bottom: 9%; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; animation: fade .8s .7s both;
  max-width: 46%;
}
.showcase .tag small { display: block; color: var(--muted); font-size: .75rem; }
.showcase .tag strong { font-weight: 600; }
@keyframes float-in { from { opacity: 0; transform: translate(-18px, 18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes me-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(6deg); } to { opacity: 1; transform: none; } }
.cycler img { transition: opacity .7s ease; }
.cycler img.out { opacity: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase { margin-inline: auto; max-width: 520px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--muted); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 48px; transition: color .2s; }
.marquee-track a:hover { color: var(--ink); }
.marquee-track a::after { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 46ch; font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: clamp(24px, 3vw, 36px) clamp(0px, 2vw, 28px) clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: clamp(16px, 3vw, 36px); }
.service .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--stage); display: grid; place-items: center; color: var(--accent-text); }
.service .ico svg { width: 26px; height: 26px; }
.service h3 { font-size: var(--step-1); margin-bottom: 8px; }
.service p { color: var(--muted); }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink); background: var(--surface); }
@media (max-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(odd) { border-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
}

/* Work grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 500 .95rem var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .2s; }
.filter .n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none !important; }
.card.feature { grid-column: span 2; }
.card.feature .card-media { aspect-ratio: auto; height: 100%; min-height: 0; }
.card.feature .card-media .browser { width: 74%; left: 6%; top: 10%; }
.card.feature .card-media .phone { width: 16%; right: 8%; bottom: -10%; }
.card.feature h3 { font-size: 1.3rem; }
@media (max-width: 600px) { .card.feature { grid-column: auto; } .card.feature .card-media { aspect-ratio: 16 / 11; height: auto; } }
.card-media { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; background: var(--stage); overflow: hidden; }
.card-media .browser { position: absolute; left: 7%; top: 9%; width: 82%; border-radius: 9px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card-media .browser-bar { height: 20px; padding-inline: 8px; }
.card-media .dots i { width: 6px; height: 6px; }
.card-media .dots { gap: 4px; }
.card-media .url { display: none; }
.card-media .phone { position: absolute; width: 21%; right: 6%; bottom: -14%; padding: 2.4%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card-media .phone::before { display: none; }
.card:hover .card-media .browser { transform: translateY(-4px) scale(1.02); }
.card:hover .card-media .phone { transform: translateY(-14%); }
.card-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.card .sector { color: var(--muted); font-size: .9rem; }
.chip { flex: none; font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.chip.shopify { color: #2F7A3C; border-color: color-mix(in srgb, #5E8E3E 45%, var(--line)); }
.chip.wordpress { color: #2271B1; border-color: color-mix(in srgb, #2271B1 40%, var(--line)); }
.chip.react { color: #1A8AA8; border-color: color-mix(in srgb, #1A8AA8 40%, var(--line)); }
:root[data-theme="dark"] .chip.shopify { color: #8BC57A; } :root[data-theme="dark"] .chip.wordpress { color: #7DB7E8; } :root[data-theme="dark"] .chip.react { color: #6FD3EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.shopify { color: #8BC57A; } :root:not([data-theme="light"]) .chip.wordpress { color: #7DB7E8; } :root:not([data-theme="light"]) .chip.react { color: #6FD3EE; } }

/* About + experience */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-copy h2 { font-size: var(--step-3); margin-bottom: 22px; }
.about-copy p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 40ch; }
.about-copy p + p { margin-top: 16px; }
.about-copy .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.about-copy .tools li { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--stage); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.timeline li.now .when { color: var(--accent-text); font-weight: 600; }
.timeline h3 { font-family: var(--body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.timeline h3 a { text-decoration: none; }
.timeline h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.timeline .role { color: var(--accent-text); font-size: .95rem; font-weight: 500; }
.timeline p { color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); left: -150px; bottom: -230px; opacity: .9; }
.contact .hero-cta { position: relative; z-index: 2; }
.contact > * { position: relative; z-index: 1; }
.contact h2 { font-size: var(--step-3); }
.contact p { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: var(--step-1); margin-top: 16px; max-width: 34ch; }
.contact .hero-cta { animation: none; }
.contact .btn-ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.contact .btn-ghost:hover { border-color: var(--paper); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: end; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.contact-list small { display: block; color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: .8rem; }
.contact-list .val { font-weight: 500; user-select: all; word-break: break-all; }
.copy { font: 500 .8rem var(--body); color: var(--paper); background: transparent; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 999px; padding: 6px 12px; cursor: pointer; flex: none; }
.copy:hover { border-color: var(--paper); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .contact::after { width: 240px; left: auto; right: -120px; bottom: auto; top: -130px; } }

/* Footer */
.site-footer { padding-block: 40px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--surface); transition: transform .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Project page ---------- */
.crumbs { padding-top: clamp(20px, 3vw, 36px); }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 16px; height: 16px; }
.p-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding-block: 28px 40px; }
.p-head h1 { font-size: var(--step-4); letter-spacing: -.035em; animation: fade .7s both; }
.p-head .lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-top: 18px; max-width: 38ch; animation: fade .7s .1s both; }
.p-head .chip { display: inline-block; margin-bottom: 18px; font-size: .85rem; padding: 6px 12px; }
.p-head .btn { animation: fade .7s .2s both; }
@media (max-width: 860px) { .p-head { grid-template-columns: minmax(0, 1fr); } }

.p-stage { position: relative; border-radius: 28px; background: var(--stage); padding: clamp(20px, 5vw, 64px) clamp(16px, 5vw, 64px) 0; overflow: hidden; }
.p-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; mask-image: linear-gradient(#000, transparent 85%); }
.p-stage .orb { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); right: -8%; bottom: -30%; opacity: .9; }
.p-devices { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(20px, 5vw, 64px); }
.p-devices .browser { width: 86%; animation: float-in .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
.p-devices .phone { position: absolute; width: 22%; right: 0; bottom: clamp(20px, 5vw, 64px); translate: 0 8%; animation: phone-in .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
.p-devices .phone.float { animation: phone-in .9s .35s cubic-bezier(.2, .8, .2, 1) both, bob 6s 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .p-devices .browser { width: 100%; } .p-devices .phone { width: 34%; right: 4%; translate: 0 22%; } .p-devices { padding-bottom: 28%; } }

.p-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .p-body { grid-template-columns: minmax(0, 1fr); } }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.specs dd a { color: var(--accent-text); text-underline-offset: 3px; }
.p-body h2 { font-size: var(--step-2); margin-bottom: 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; margin-top: 2px; }
@media (max-width: 560px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
.views { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.views figure { margin: 0; }
.views figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }
@media (max-width: 600px) { .views { grid-template-columns: minmax(0, 1fr); } .views .phone { max-width: 260px; } }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-block: 32px 8px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: var(--ink); transform: translateY(-2px); }
.pager a.next { text-align: right; }
.pager small { color: var(--muted); }
.pager strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: .9rem; z-index: 99; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* Projects page */
.pp-head { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.pp-head h1 { font-size: var(--step-4); letter-spacing: -.035em; animation: fade .7s both; }
.pp-head .lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-top: 18px; max-width: 46ch; animation: fade .7s .1s both; }
.more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.p-head h1 { overflow-wrap: anywhere; }

/* keep big decorative layers cheap while scrolling */
.marquee, .p-stage { contain: paint; }
.marquee-track { will-change: transform; }

/* ---------- Hero portrait (v2) ---------- */
.portrait { position: relative; width: 100%; max-width: 500px; margin-left: auto; aspect-ratio: 4 / 4.7; animation: fade .9s .1s both; }
.portrait-panel { position: absolute; inset: 8% 0 0 0; border-radius: 32px; background: var(--accent); overflow: hidden; }
.portrait-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .14)); }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--on-accent) 18%, transparent); left: 50%; top: 46%; translate: -50% -50%; }
.ring.r1 { width: 62%; aspect-ratio: 1; }
.ring.r2 { width: 92%; aspect-ratio: 1; }
.ring.r3 { width: 124%; aspect-ratio: 1; }
.portrait .me { position: absolute; z-index: 1; left: 50%; bottom: 0; translate: -50% 0; width: 84%; height: auto; border-radius: 0 0 32px 32px; animation: me-in 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.25; }
.badge strong { display: block; font-weight: 600; }
.badge small { display: block; color: var(--muted); font-size: .78rem; }
.badge .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.badge .dot.shop { background: #5E8E3E; }
.badge .dot.wp { background: #2271B1; }
.badge.b1 { left: -8%; top: 30%; animation: fade .8s .55s both, drift 7s 1.6s ease-in-out infinite; }
.badge.b2 { right: -6%; bottom: 10%; animation: fade .8s .7s both, drift 7s 2.4s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .portrait { margin-inline: auto; max-width: 420px; } }
@media (max-width: 560px) { .badge.b1 { left: 0; top: 22%; } .badge.b2 { right: 0; bottom: 6%; } .badge { padding: 10px 12px; font-size: .82rem; } .badge small { display: none; } }

/* ---------- Work reel ---------- */
.reel { overflow: hidden; padding-block: 28px 32px; border-block: 1px solid var(--line); background: var(--stage); }
.reel-track { display: flex; gap: 24px; width: max-content; animation: marquee 70s linear infinite; will-change: transform; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.reel-item { width: clamp(220px, 24vw, 320px); flex: none; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.reel-item .browser { border-radius: 10px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.reel-item .browser-bar { height: 22px; padding-inline: 9px; }
.reel-item .dots i { width: 7px; height: 7px; }
.reel-item .url { height: 14px; font-size: 9px; max-width: 70%; }
.reel-item .url svg { width: 8px; height: 8px; }
.reel-item:hover .browser { transform: translateY(-4px); }
.reel-item > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: .95rem; }
.reel-item small { color: var(--muted); font-weight: 400; font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .reel { overflow-x: auto; } .reel-track { animation: none; } }

/* ---------- Hero v3: devices left, portrait + intro right ---------- */
.hero3 { padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 56px); }
.hero3-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.devices { position: relative; aspect-ratio: 1.12 / 1; }
.dev-stage { position: absolute; inset: 6% 4% 0 0; border-radius: 28px; background: var(--stage); overflow: hidden; }
.dev-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; opacity: .55; mask-image: radial-gradient(circle at 45% 45%, #000 30%, transparent 78%); }
.devices .browser { position: absolute; z-index: 1; width: 84%; left: 5%; top: 12%; animation: float-in 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
.devices .phone { position: absolute; z-index: 2; width: 23%; right: 0; bottom: 4%; animation: phone-in 1s .45s cubic-bezier(.2, .8, .2, 1) both, bob 6s 1.6s ease-in-out infinite; }
.devices .tag { position: absolute; z-index: 3; left: 2%; bottom: 8%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .88rem; line-height: 1.3; animation: fade .8s .7s both; }
.devices .tag small { display: block; color: var(--muted); font-size: .76rem; }
.devices .tag strong { font-weight: 600; }

.me-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; container-type: inline-size; }
.me-card { position: relative; aspect-ratio: 1 / .9; width: 100%; }
.me-card .stage { position: absolute; inset: 16% 0 0 0; border-radius: 28px; background: var(--stage); overflow: hidden; }
.me-card .stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%); }
.me-card .orb { position: absolute; width: 56%; aspect-ratio: 1; left: 50%; top: 22%; translate: -50% 0; border-radius: 50%; background: var(--accent); animation: fade 1s .1s both; }
.me-card .me { position: absolute; z-index: 1; bottom: 0; left: 50%; translate: -50% 0; width: 66%; height: auto; animation: me-in 1.1s .15s cubic-bezier(.2, .8, .2, 1) both; }

.intro .status { font-size: .8rem; }
.intro h1 { font-size: clamp(1.7rem, 9.2cqi, 2.7rem); margin-top: 14px; letter-spacing: -.03em; line-height: 1.05; }
.intro h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.intro h1 .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.intro h1 .role { font-size: .52em; letter-spacing: -.01em; line-height: 1.2; margin-top: .35em; color: var(--accent-text); }
.intro h1 .role > span { animation-delay: .1s; }
.intro .lede { color: var(--muted); font-size: 1rem; line-height: 1.55; margin-top: 12px; max-width: 42ch; animation: fade .8s .25s both; }
.intro .hero-cta { margin-top: 18px; gap: 10px; animation: fade .8s .35s both; }
.intro .btn { padding: 12px 18px; font-size: .92rem; }

.facts-bar { border-top: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid > div { display: flex; align-items: baseline; gap: 14px; padding-block: clamp(22px, 3vw, 34px); padding-inline: clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts-grid b { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.facts-grid span { color: var(--muted); font-size: .95rem; line-height: 1.3; max-width: 14ch; }

@media (max-width: 900px) {
  .hero3-grid { grid-template-columns: minmax(0, 1fr); }
  .me-col { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .devices { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 700px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid > div { flex-direction: column; gap: 6px; padding-inline: 0 12px; border-left: 0; }
  .facts-grid > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Hero option B: dark stage, giant name behind the portrait ---------- */
.heroB { padding-block: clamp(16px, 2.5vw, 28px) clamp(36px, 5vw, 64px); }
.hb-panel {
  --hb-ink: #F2F2EE; --hb-bg: #16181D; --hb-muted: #A3A8B2; --hb-line: rgba(242, 242, 238, .14);
  position: relative; overflow: hidden; border-radius: 32px; background: var(--hb-bg); color: var(--hb-ink);
  min-height: clamp(560px, 46vw, 720px); container-type: inline-size;
  display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 36px);
}
:root[data-theme="dark"] .hb-panel { --hb-bg: #1D2026; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb-panel { --hb-bg: #1D2026; } }
.hb-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 75%, rgba(255, 91, 31, .35), transparent 70%); pointer-events: none; }
.hb-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-top .status { background: rgba(255, 255, 255, .06); border-color: var(--hb-line); color: var(--hb-muted); }
.hb-where { color: var(--hb-muted); font-size: .9rem; }
.hb-name { position: absolute; z-index: 1; left: 0; right: 0; top: 13%; text-align: center; pointer-events: none; }
.hb-name span {
  display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: .9;
  font-size: 12.4cqi; color: var(--accent); white-space: nowrap;
  animation: hb-rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes hb-rise { from { opacity: 0; transform: translateY(18%) scale(.98); letter-spacing: .02em; } to { opacity: 1; transform: none; } }
.hb-me {
  position: absolute; z-index: 2; left: 50%; bottom: 0; translate: -50% 0; width: auto; height: 84%; max-width: none;
  animation: me-in 1.2s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.hb-bottom { position: relative; z-index: 3; grid-row: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hb-copy { max-width: 36ch; padding: 16px 18px; border-radius: 18px; background: rgba(22, 24, 29, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--hb-line); animation: fade .8s .5s both; }
.hb-copy h1 { font-size: clamp(1.15rem, .9rem + .8vw, 1.5rem); letter-spacing: -.02em; color: var(--hb-ink); }
.hb-copy h1 span { display: block; font-size: .72em; color: #FF8E5E; margin-top: 6px; letter-spacing: -.01em; }
.hb-copy p { color: var(--hb-muted); font-size: .95rem; margin-top: 10px; line-height: 1.5; }
.hb-cta { display: flex; gap: 10px; flex-wrap: wrap; animation: fade .8s .6s both; }
.btn-onink { background: rgba(255, 255, 255, .08); color: var(--hb-ink); border-color: var(--hb-line); }
.btn-onink:hover { transform: translateY(-2px); border-color: var(--hb-ink); }
.hb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(20px, 3vw, 32px); }
.hb-facts > div { display: flex; align-items: baseline; gap: 12px; padding: 6px clamp(10px, 2vw, 24px); border-left: 1px solid var(--line); }
.hb-facts > div:first-child { border-left: 0; padding-left: 0; }
.hb-facts b { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hb-facts span { color: var(--muted); font-size: .92rem; line-height: 1.3; max-width: 14ch; }
@media (max-width: 760px) {
  .hb-panel { min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  .hb-name { position: relative; top: auto; margin-top: 22px; }
  .hb-me { position: relative; left: auto; translate: none; height: auto; width: 86%; margin: -4% auto 0; display: block; }
  .hb-bottom { margin-top: -54px; flex-direction: column; align-items: stretch; }
  .hb-cta .btn { flex: 1; justify-content: center; }
  .hb-copy { max-width: none; }
  .hb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .hb-facts > div { flex-direction: column; gap: 6px; padding-left: 0; border-left: 0; }
}

/* Option B: devices on the right of the dark stage */
.hb-panel { min-height: clamp(600px, 48vw, 760px); }
.hb-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%); }
.hb-devices { position: absolute; z-index: 2; right: clamp(20px, 3vw, 36px); top: 38%; width: 28%; animation: float-in 1s .45s cubic-bezier(.2, .8, .2, 1) both; }
.hb-devices .browser { width: 100%; border-color: rgba(255,255,255,.08); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.hb-devices .phone { position: absolute; width: 30%; right: -6%; top: 46%; box-shadow: 0 24px 50px -16px rgba(0,0,0,.8), inset 0 0 0 1.5px #3A3E46; animation: phone-in 1s .7s cubic-bezier(.2, .8, .2, 1) both, bob 6s 1.8s ease-in-out infinite; }
.hb-devices .tag { position: absolute; left: 6%; top: auto; bottom: -22px; background: #F2F2EE; color: #16181D; border-radius: 12px; padding: 9px 13px; font-size: .84rem; line-height: 1.3; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); animation: fade .8s .9s both; }
.hb-devices .tag small { display: block; color: #5A5F69; font-size: .74rem; }
.hb-devices .tag strong { font-weight: 600; }
.hb-bottom { z-index: 4; }
@media (max-width: 1100px) { .hb-me { height: 76%; } .hb-devices { top: 40%; } }
@media (max-width: 760px) {
  .hb-devices { position: relative; right: auto; top: auto; width: 82%; margin: 20px 0 6px 4%; order: 5; }
  .hb-devices .tag { left: 6%; bottom: -14px; }
  .hb-devices .phone { right: -8%; top: 30%; }
}

/* Option B v3: photo right, devices left, copy bottom-left */
.hb-panel { min-height: clamp(660px, 54vw, 800px); }
.hb-me { left: auto; right: 4%; translate: none; height: 86%; }
.hb-panel::before { background: radial-gradient(42% 60% at 76% 78%, rgba(255, 91, 31, .38), transparent 70%); }
.hb-devices { right: auto; left: clamp(20px, 3vw, 36px); top: 35%; width: 33%; }
.hb-devices .phone { right: -9%; top: 34%; width: 29%; }
.hb-devices .tag { left: 5%; bottom: -20px; }
.hb-bottom { justify-content: flex-start; }
.hb-copy { max-width: 440px; width: 37%; min-width: 320px; padding: 20px 22px; background: rgba(22, 24, 29, .72); }
.hb-copy .hb-cta { margin-top: 16px; }
.hb-copy .btn { padding: 12px 18px; font-size: .92rem; }
@media (max-width: 1100px) {
  .hb-panel { min-height: 700px; }
  .hb-me { height: 74%; right: 2%; }
  .hb-devices { top: 33%; width: 40%; }
  .hb-copy { width: 44%; }
}
@media (max-width: 760px) {
  .hb-panel { min-height: 0; }
  .hb-me { right: auto; height: auto; width: 86%; margin: -4% auto 0; }
  .hb-devices { left: auto; width: 80%; margin: 26px 0 8px 2%; }
  .hb-devices .phone { right: -12%; top: 22%; width: 31%; }
  .hb-copy { width: auto; min-width: 0; max-width: none; }
  .hb-copy .btn { flex: 1; justify-content: center; }
}
/* Option B v3.1 spacing */
.hb-devices { top: 33%; width: 48%; }
.hb-devices .phone { width: 26%; right: -8%; top: 14%; }
.hb-devices .tag { left: 4%; bottom: -18px; }
.hb-copy { width: auto; max-width: 420px; min-width: 0; }
@media (max-width: 1100px) {
  .hb-panel { min-height: 720px; }
  .hb-devices { top: 31%; width: 50%; }
  .hb-copy { max-width: 380px; }
}
@media (max-width: 760px) {
  .hb-devices { width: 78%; top: auto; }
  .hb-devices .phone { right: -14%; top: 18%; width: 30%; }
  .hb-copy { max-width: none; }
}
/* Option B v3.2: copy card bottom-right over the portrait, devices own the left */
.hb-bottom { justify-content: flex-end; }
.hb-copy { max-width: 400px; background: rgba(22, 24, 29, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hb-devices { top: 36%; width: 50%; }
@media (max-width: 1100px) { .hb-devices { top: 34%; width: 52%; } .hb-copy { max-width: 360px; } .hb-panel { min-height: 680px; } }
@media (max-width: 760px) { .hb-bottom { justify-content: stretch; } .hb-devices { width: 78%; top: auto; } .hb-copy { max-width: none; } }

/* Option B v4: two-line name, devices bottom-aligned with card */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-name { margin: 0; letter-spacing: 0; }
.hb-name span.z { text-align: right; padding-right: 4%; margin-top: -.02em; }
.hb-bottom { justify-content: space-between; align-items: flex-end; flex-wrap: nowrap; gap: clamp(20px, 3vw, 40px); }
.hb-devices { position: relative; left: auto; right: auto; top: auto; width: 50%; flex: none; margin-bottom: 0; }
.hb-devices .tag { bottom: 14px; left: 14px; }
.hb-devices .phone { top: auto; bottom: -4%; right: -8%; }
.hb-copy { align-self: flex-end; }
.hb-role { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .85rem + .6vw, 1.3rem); color: #FF8E5E; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.hb-copy p:not(.hb-role) { margin-top: 10px; }
@media (max-width: 1100px) { .hb-devices { width: 52%; } }
@media (max-width: 760px) {
  .hb-name span.z { text-align: center; padding-right: 0; }
  .hb-bottom { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; }
  .hb-devices { width: 80%; margin: 26px 0 8px 2%; }
  .hb-devices .phone { right: -14%; bottom: -6%; }
}
.hb-name span.z { text-align: left; padding-right: 0; padding-left: .02em; }
.hb-copy p.hb-role { color: #FF8E5E; margin-top: 0; font-size: clamp(1.05rem, .85rem + .6vw, 1.3rem); }
@media (max-width: 760px) {
  .hb-name span.z { text-align: center; }
  .hb-name { margin-top: 14px; }
  .hb-me { margin-top: 2%; }
}
@media (min-width: 761px) {
  .hb-name { text-align: left; padding-inline: clamp(20px, 3vw, 36px); }
  .hb-name span { text-align: left; }
  .hb-name span.z { padding-left: 0; }
}
.hb-name span.z { margin-top: .14em; }
