/* Henry Oyoto portfolio. Light theme only.
   Colours come from a circuit board: blue ink, soldermask green, gold pads, coral. */

:root {
  --ink: #14204a;
  --ink-soft: #3d4a75;
  --line: #dde5fa;
  --page: #ffffff;
  --wash: #f3f7ff;

  --blue: #2e5bff;
  --blue-deep: #1b3fd0;
  --blue-soft: #dce7ff;
  --blue-hi: #b4caff;

  --green: #14b26b;
  --green-deep: #0a7a4b;
  --green-soft: #d6f4e4;
  --green-hi: #98e4bc;

  --gold: #ffb81f;
  --gold-deep: #9a6400;
  --gold-soft: #fff0c2;
  --gold-hi: #ffd45c;

  --coral: #ff6a5c;
  --coral-deep: #c8362a;
  --coral-soft: #ffe1dc;
  --coral-hi: #ffb6ac;

  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Tint helpers: a card or section picks one and everything inside follows it */
.t-blue  { --t: var(--blue);  --t-deep: var(--blue-deep);  --t-soft: var(--blue-soft);  --t-hi: var(--blue-hi); }
.t-green { --t: var(--green); --t-deep: var(--green-deep); --t-soft: var(--green-soft); --t-hi: var(--green-hi); }
.t-gold  { --t: var(--gold);  --t-deep: var(--gold-deep);  --t-soft: var(--gold-soft);  --t-hi: var(--gold-hi); }
.t-coral { --t: var(--coral); --t-deep: var(--coral-deep); --t-soft: var(--coral-soft); --t-hi: var(--coral-hi); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.05rem, 4.4vw, 3.35rem); }
h3 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.15; }

/* Highlighter strokes behind the words that matter */
mark {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--hl, var(--gold-hi)), var(--hl, var(--gold-hi)));
  background-repeat: no-repeat;
  background-size: 100% 64%;
  background-position: 0 90%;
  padding: 0 .14em;
  margin: 0 -.06em;
  border-radius: .22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-blue  { --hl: var(--blue-hi); }
.hl-green { --hl: var(--green-hi); }
.hl-gold  { --hl: var(--gold-hi); }
.hl-coral { --hl: var(--coral-hi); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Icons and buttons ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.ic-stroke { fill: none; stroke: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.45rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 24px -12px rgba(46, 91, 255, .8); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0c1536; }
.btn-gh { background: #24292f; color: #fff; }
.btn-gh:hover { background: #000; }
.btn-yt { background: #ff0000; color: #fff; box-shadow: 0 12px 24px -12px rgba(255, 0, 0, .7); }
.btn-yt:hover { background: #cc0000; }
.btn-sm { padding: .75rem 1.15rem; font-size: .95rem; }

/* Round social buttons in each brand colour */
.soc { display: flex; flex-wrap: wrap; gap: .65rem; }
.soc a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c); color: #fff;
  box-shadow: 0 10px 20px -10px var(--c);
  transition: transform .2s ease;
}
.soc a:hover { transform: translateY(-3px) rotate(-6deg); }
.soc .ic { width: 22px; height: 22px; }
.c-li   { --c: #0a66c2; }
.c-x    { --c: #14171a; }
.c-gh   { --c: #24292f; }
.c-wa   { --c: #25d366; }
.c-yt   { --c: #ff0000; }
.c-mail { --c: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 1rem 0; }
.bar {
  display: flex; align-items: center; gap: 1rem;
  width: min(100%, var(--wrap)); margin-inline: auto;
  padding: .55rem .6rem .55rem 1rem;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 2px solid var(--line); border-radius: 999px;
  box-shadow: 0 16px 36px -22px rgba(20, 32, 74, .45);
}
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; transition: background-color .2s ease; }
.nav a:hover { background: var(--wash); }
.bar .btn { padding: .8rem 1.25rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto;
  border: 2px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 2px 0; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Organic image shapes ---------- */
.shape { position: relative; display: block; margin: 0; filter: drop-shadow(0 18px 22px rgba(20, 32, 74, .2)); }
.shape-back { position: absolute; inset: 0; background: var(--t-hi, var(--blue-hi)); transform: translate(14px, 14px); }
.shape img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.s-b0 .shape-back, .s-b0 img { clip-path: url(#b0); }
.s-b1 .shape-back, .s-b1 img { clip-path: url(#b1); }
.s-b2 .shape-back, .s-b2 img { clip-path: url(#b2); }
.s-b3 .shape-back, .s-b3 img { clip-path: url(#b3); }
.s-b4 .shape-back, .s-b4 img { clip-path: url(#b4); }
.s-b5 .shape-back, .s-b5 img { clip-path: url(#b5); }
.s-leaf-a .shape-back, .s-leaf-a img { border-radius: 36px 150px 36px 150px; }
.s-leaf-b .shape-back, .s-leaf-b img { border-radius: 150px 36px 150px 36px; }
.s-arch .shape-back, .s-arch img { border-radius: 999px 999px 36px 36px; }
.s-circle .shape-back, .s-circle img { border-radius: 50%; }
.s-pill .shape-back, .s-pill img { border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -78px; padding: calc(78px + 2.4rem) 0 7.5rem; }
.hero-bgs, .hero-bgs .bg { position: absolute; inset: 0; z-index: -3; }
.hero-bgs .bg { opacity: 0; transition: opacity .9s ease; }
.hero-bgs .bg.is-on { opacity: 1; }
.bg-gold  { background: radial-gradient(60% 70% at 82% 35%, #ffe7a0 0, transparent 70%), #fff4d2; }
.bg-blue  { background: radial-gradient(60% 70% at 82% 35%, #c3d6ff 0, transparent 70%), #e4edff; }
.bg-green { background: radial-gradient(60% 70% at 82% 35%, #b9ecd1 0, transparent 70%), #e1f7ec; }
.bg-coral { background: radial-gradient(60% 70% at 82% 35%, #ffc6bd 0, transparent 70%), #ffeae6; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(20, 32, 74, .15) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0, #000, transparent 72%);
  mask-image: radial-gradient(70% 90% at 100% 0, #000, transparent 72%);
}
.hero-trace { position: absolute; right: -6%; top: 70px; width: min(64vw, 900px); z-index: -1; fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hero-trace .pad { fill: #fff; stroke: none; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; fill: var(--page); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 2rem; }
.mega {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; pointer-events: none;
  font-size: clamp(2.95rem, 5.7vw, 5.4rem); line-height: 1; letter-spacing: -.045em;
}
.mega .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mega .ln > span { display: inline-block; animation: rise .95s cubic-bezier(.2, .75, .2, 1) both; }
.mega .ln:nth-child(2) > span { animation-delay: .12s; }
.mega .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.mega mark { background-size: 100% 42%; background-position: 0 90%; padding: 0 .1em; margin: 0 -.05em; }
.pill {
  display: inline-block; width: 1.9em; height: .78em; margin: 0 .06em; vertical-align: -.02em;
  border: .05em solid #fff; border-radius: 999px; overflow: hidden;
  box-shadow: 0 .3em .6em -.25em rgba(20, 32, 74, .5);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.pill-a { transform: rotate(-3deg); }
.pill-b { transform: rotate(3deg); }

.hero-copy { grid-column: 1; grid-row: 2; align-self: start; padding-top: 1.8rem; }
.role { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--blue-deep); }
.role::before { content: ""; width: 44px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.quote { margin-top: 1rem; max-width: 22ch; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.28; letter-spacing: -.02em; }
.quote mark { background-size: 100% 46%; }
.hero .lead { margin-top: 1.1rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero .soc { margin-top: 1.4rem; }

.controls { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.ctl {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.ctl:hover { background: var(--ink); color: #fff; }
.ctl .ic { width: 18px; height: 18px; }
.ctl .i-play { display: none; }
.ctl.is-paused .i-play { display: block; }
.ctl.is-paused .i-pause { display: none; }
.dots { display: flex; gap: .5rem; }
.dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: rgba(20, 32, 74, .24); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.dot.is-on { width: 36px; background: var(--ink); }

.stage-wrap { grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: end; }
.stage { position: relative; width: 100%; aspect-ratio: 1 / .86; animation: arrive .9s .2s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.stage-blob { position: absolute; inset: 3% 1% 1% 3%; background: rgba(255, 255, 255, .62); clip-path: url(#b1); }
.stage-ring { position: absolute; inset: -1% 2% 3% 0; border: 2px dashed rgba(20, 32, 74, .2); border-radius: 50%; }
.pad-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; }
.pad-dot.a { left: 2%; top: 12%; background: var(--gold); box-shadow: inset 0 0 0 5px var(--gold), inset 0 0 0 9px #fff; }
.pad-dot.b { right: 4%; top: 4%; background: var(--green); box-shadow: inset 0 0 0 5px var(--green), inset 0 0 0 9px #fff; }
.pad-dot.c { right: 8%; bottom: 8%; background: var(--coral); box-shadow: inset 0 0 0 5px var(--coral), inset 0 0 0 9px #fff; }
.pane {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 7%;
  opacity: 0; transform: translateX(70px) scale(.97);
  transition: opacity .7s ease, transform .85s cubic-bezier(.2, .75, .2, 1);
  pointer-events: none;
}
.pane.is-on { opacity: 1; transform: none; }
.pane.is-left { transform: translateX(-70px) scale(.97); }
.no-anim, .no-anim * { transition: none !important; }
.pane img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(20, 32, 74, .28)); }

.slide-card {
  position: relative; z-index: 4; width: min(100%, 440px); margin: -1.6rem 0 0 auto;
  padding: 1rem 1.3rem 1.1rem;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 2px solid #fff; border-radius: 24px;
  box-shadow: 0 24px 40px -22px rgba(20, 32, 74, .5);
}
.copy-stack { display: grid; }
.copy-pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.copy-pane.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.copy-pane h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.copy-pane li { position: relative; padding-left: 1.6rem; margin-top: .25rem; font-weight: 500; font-size: .95rem; line-height: 1.4; }
.copy-pane li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--pad, var(--gold)); box-shadow: inset 0 0 0 3.5px var(--pad, var(--gold)), inset 0 0 0 6px #fff;
}
.copy-pane[data-slide="0"] { --pad: var(--gold); }
.copy-pane[data-slide="1"] { --pad: var(--blue); }
.copy-pane[data-slide="2"] { --pad: var(--green); }
.copy-pane[data-slide="3"] { --pad: var(--coral); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }
.section-head { max-width: 46rem; }
.section-head .lead { margin-top: 1rem; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
.collage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto; }
.cl-blob { position: absolute; inset: 0 4% 8% 0; background: var(--green-soft); clip-path: url(#b3); }
.cl-main { position: absolute; left: 3%; top: 4%; width: 74%; aspect-ratio: 1 / 1; --t-hi: var(--green-hi); }
.cl-avatar {
  position: absolute; right: 2%; bottom: 2%; width: 40%; aspect-ratio: 1 / 1;
  border: 6px solid #fff; border-radius: 50%; overflow: hidden; background: var(--coral-soft);
  box-shadow: 0 18px 30px -16px rgba(20, 32, 74, .5);
}
.cl-avatar svg { width: 100%; height: 100%; }
.cl-badge {
  position: absolute; left: 0; bottom: 6%; max-width: 15rem;
  display: flex; flex-direction: column; gap: .55rem;
  padding: .85rem 1.1rem; background: #fff; border: 2px solid var(--line); border-radius: 22px;
  font-weight: 700; line-height: 1.3; font-size: .95rem; transform: rotate(-3deg);
  box-shadow: 0 18px 30px -20px rgba(20, 32, 74, .5);
}
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* What I do */
.services { background: var(--wash); overflow: hidden; }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(46, 91, 255, .2) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(50% 70% at 100% 0, #000, transparent 72%);
  mask-image: radial-gradient(50% 70% at 100% 0, #000, transparent 72%);
}
.services .wrap { position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; margin-top: 3.2rem; }
.svc { display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.8rem; background: #fff; border: 3px solid var(--t-hi); border-radius: 40px; }
.svc:nth-child(even) { border-radius: 40px 40px 40px 12px; }
.svc:nth-child(odd) { border-radius: 40px 40px 12px 40px; }
.svc-art { position: relative; height: 250px; margin-bottom: 1.3rem; display: grid; place-items: center; }
.svc-art .blob { position: absolute; inset: 0 6% 0 6%; background: var(--t-soft); }
.svc-art .shape { width: 78%; height: 100%; }
.svc-art .cut { position: relative; width: 82%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(20, 32, 74, .25)); }
.svc-body { padding-inline: .6rem; }
.svc-body h3 { margin-bottom: .55rem; }
.svc-body h3 mark { --hl: var(--t-hi); }
.svc-body .tagline { font-weight: 600; font-size: 1.1rem; }
.svc-body .gets { margin-top: .7rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chips li { display: flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .35rem; background: var(--t-soft); border-radius: 999px; font-weight: 700; font-size: .9rem; }
.chips img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; margin-top: 3rem; }
.proj { display: flex; flex-direction: column; background: var(--t-soft); border-radius: 36px; padding: 1.2rem 1.2rem 1.7rem; transition: transform .25s ease, box-shadow .25s ease; }
.proj:hover { transform: translateY(-5px); box-shadow: 0 30px 40px -30px var(--t); }
.proj-art { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 1.2rem; text-decoration: none; }
.proj-art .shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj-art .art-back { position: absolute; inset: 4% 6%; background: var(--t-hi); clip-path: url(#b5); }
.proj-art .art-cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; filter: drop-shadow(0 20px 16px rgba(20, 32, 74, .28)); transition: transform .35s ease; }
.proj:hover .art-cut { transform: scale(1.04) rotate(-1.5deg); }
.proj-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding-inline: .5rem; }
.proj-body h3 { font-size: 1.35rem; }
.proj-body p { margin-top: .6rem; color: var(--ink-soft); flex: 1; }
.proj-body .btn { margin-top: 1.2rem; }

.proj-feature { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2rem; align-items: center; border-radius: 52px; padding: 1.6rem; }
.proj-feature .proj-art { margin: 0; aspect-ratio: 4 / 3.1; }
.proj-feature .proj-body { padding-inline: 1rem 1.4rem; }
.proj-feature .proj-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.proj-feature .proj-body p { font-size: 1.15rem; flex: none; }
.proj-feature.is-flip .proj-art { order: 2; }
.proj:nth-child(odd):not(.proj-feature) { border-radius: 36px 36px 36px 10px; }
.proj:nth-child(even):not(.proj-feature) { border-radius: 36px 36px 10px 36px; }
.more-row { display: flex; justify-content: center; margin-top: 3rem; }

/* Work index */
.work-list { margin-top: 3rem; border-top: 3px solid var(--ink); }
.work-row {
  display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 1.6rem; align-items: center;
  padding: 1.35rem .6rem; border-bottom: 2px solid var(--line); text-decoration: none; border-radius: 0;
  transition: background-color .25s ease, padding .25s ease, border-radius .25s ease;
}
.work-row:hover, .work-row:focus-visible { background: var(--t-soft); padding-inline: 1.5rem; border-radius: 22px; }
.pad-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--t); box-shadow: inset 0 0 0 7px var(--t), inset 0 0 0 12px #fff, 0 0 0 2px var(--t-hi); }
.w-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.025em; }
.w-desc { color: var(--ink-soft); }
.w-go { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.w-go .ic { width: 20px; height: 20px; }
.work-row:hover .w-go, .work-row:focus-visible .w-go { background: var(--ink); color: #fff; transform: rotate(45deg); }

/* YouTube */
.learn { background: linear-gradient(180deg, #fff 0, var(--coral-soft) 100%); overflow: hidden; }
.learn-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4rem; align-items: center; }
.learn-copy .lead { margin: 1.1rem 0 1.8rem; }
.player { display: block; text-decoration: none; background: #fff; border: 3px solid #fff; border-radius: 34px; overflow: hidden; box-shadow: 0 40px 60px -34px rgba(255, 0, 0, .45), 0 0 0 2px var(--coral-hi); transform: rotate(1.5deg); transition: transform .3s ease; }
.player:hover { transform: rotate(0) translateY(-4px); }
.screen { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1b3fd0 0%, var(--blue) 45%, #12a874 100%); overflow: hidden; }
.screen-trace { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 3; }
.screen-trace circle { fill: rgba(255, 255, 255, .5); stroke: none; }
.chrome { position: absolute; left: 16px; top: 14px; display: flex; gap: 6px; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: #ff0000; color: #fff; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s ease; }
.play .ic { width: 34px; height: 34px; margin-left: 4px; }
.player:hover .play { transform: scale(1.1); }
.bar-track { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .35); }
.bar-fill { display: block; width: 38%; height: 100%; border-radius: 6px; background: #ff0000; }
.player-meta { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; }
.avatar { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border: 3px solid var(--blue-soft); border-radius: 50%; background: #fff; }
.avatar img { width: 40px; height: auto; }
.who { display: grid; line-height: 1.3; min-width: 0; }
.who strong { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.who span { color: var(--ink-soft); font-size: .95rem; }
.yt-chip { margin-left: auto; display: grid; place-items: center; width: 48px; height: 36px; border-radius: 12px; background: #ff0000; color: #fff; }
.yt-chip .ic { width: 22px; height: 22px; }

/* How I work */
.how { background: linear-gradient(180deg, #fff 0, var(--green-soft) 100%); }
.how-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4rem; align-items: center; }
.how-intro .lead { margin-top: 1rem; }
.how-intro .shape { width: min(100%, 460px); aspect-ratio: 1 / 1; margin-top: 2.2rem; --t-hi: var(--gold-hi); }
.how-list { display: grid; gap: 1rem; }
.how-list li { position: relative; padding: 1.3rem 1.5rem 1.4rem 4.1rem; background: var(--t-soft); border-radius: 28px; }
.how-list li:nth-child(odd) { border-radius: 28px 28px 8px 28px; }
.how-list li:nth-child(even) { border-radius: 28px 28px 28px 8px; }
.how-list li::before {
  content: ""; position: absolute; left: 1.3rem; top: 1.45rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--t); box-shadow: inset 0 0 0 6px var(--t), inset 0 0 0 11px #fff;
}
.how-list strong { display: block; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .3rem; }

/* Workbench photos */
.bench { text-align: center; overflow: hidden; }
.bench .section-head { margin-inline: auto; }
.bench-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 2.6rem; margin-top: 3.4rem; align-items: start; text-align: left; }
.g { margin: 0; }
.g .shape { width: 100%; }
.g-arch .shape { aspect-ratio: 3 / 4.1; }
.g-blob { margin-top: 4rem; }
.g-blob .shape { aspect-ratio: 1 / 1; }
.g-cap { margin-top: 1.2rem; }
.g-cap .shape { aspect-ratio: 3 / 4.5; }

/* Contact */
.contact { background: linear-gradient(180deg, #fff 0, var(--gold-soft) 100%); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(154, 100, 0, .2) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 80% at 0 100%, #000, transparent 72%);
  mask-image: radial-gradient(60% 80% at 0 100%, #000, transparent 72%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.contact-left .lead { margin-top: 1.1rem; }
.note { width: min(100%, 340px); margin-top: 2.2rem; transform: rotate(-5deg); filter: drop-shadow(0 22px 20px rgba(20, 32, 74, .25)); }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.link {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem;
  background: #fff; border: 2px solid var(--line); border-radius: 24px; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.link:hover { transform: translateY(-3px); border-color: var(--c, var(--blue)); box-shadow: 0 18px 26px -20px var(--c, var(--blue)); }
.link .badge { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--c); color: #fff; overflow: hidden; }
.link .badge .ic { width: 24px; height: 24px; }
.link .badge img { width: 100%; height: 100%; }
.link .txt { display: grid; line-height: 1.25; min-width: 0; }
.link .txt strong { font-weight: 800; }
.link .txt span { font-size: .92rem; color: var(--ink-soft); }
.link .go { margin-left: auto; width: 20px; height: 20px; flex: none; color: var(--ink-soft); }
.link-main { grid-column: 1 / -1; background: var(--blue); border-color: var(--blue); color: #fff; padding: 1.15rem 1.3rem; }
.link-main .badge { background: #fff; color: var(--blue); width: 58px; height: 58px; }
.link-main .txt strong { font-size: 1.25rem; }
.link-main .txt span, .link-main .go { color: rgba(255, 255, 255, .85); }
.link-main:hover { border-color: var(--blue-deep); background: var(--blue-deep); }
.link-wa { --c: #25d366; }
.link-li { --c: #0a66c2; }
.link-x  { --c: #14171a; }
.link-gh { --c: #24292f; }
.link-fv { --c: #1dbf73; }
.link-up { --c: #14a800; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--wash); padding: 4.5rem 0 2rem; border-top: 3px solid var(--blue-hi); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .7fr)); gap: 3rem; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--ink-soft); }
.footer .soc { margin-top: 1.4rem; }
.footer h2 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: .25em; }
.wordmark {
  margin: 3rem 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 14.5vw, 13rem); line-height: .92; letter-spacing: -.055em;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 38%, var(--gold) 68%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.footer-bottom { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 2px solid var(--line); color: var(--ink-soft); font-size: .92rem; }

/* ---------- WhatsApp button, bottom right ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 14px 28px -8px rgba(37, 211, 102, .8);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .ic { width: 32px; height: 32px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }

/* ---------- Projects page ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -78px; padding: calc(78px + 3.5rem) 0 6rem; background: radial-gradient(60% 80% at 85% 30%, #c3d6ff 0, transparent 70%), #e4edff; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(20, 32, 74, .15) 1.5px, transparent 1.7px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0, #000, transparent 72%); mask-image: radial-gradient(70% 90% at 100% 0, #000, transparent 72%);
}
.page-hero .hero-wave { height: 70px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; }
.page-hero .lead { margin-top: 1.3rem; }
.page-hero .btn { margin-top: 1.8rem; }
.page-hero .shape { width: 100%; aspect-ratio: 1.15 / 1; --t-hi: var(--gold-hi); }
.page-hero .shape img { object-position: 40% 50%; }
.cta-band { text-align: center; }
.cta-band .lead { margin: 1.1rem auto 0; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .bar .btn { display: none; }
  .nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + 10px);
    flex-direction: column; padding: .6rem; margin: 0;
    background: #fff; border: 2px solid var(--line); border-radius: 28px;
    box-shadow: 0 24px 40px -24px rgba(20, 32, 74, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: .9rem 1.1rem; }
  .hero-grid, .about-grid, .how-grid, .contact-grid, .page-hero-grid, .learn-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid { gap: 1.2rem; grid-template-rows: none; }
  .mega, .hero-copy, .stage-wrap { grid-column: 1; grid-row: auto; }
  .mega { pointer-events: auto; }
  .stage-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .slide-card { margin: -1.2rem auto 0; }
  .work-row { grid-template-columns: auto 1fr auto; row-gap: .3rem; }
  .w-desc { grid-column: 2 / 3; grid-row: 2; }
  .w-go { grid-column: 3; grid-row: 1 / span 2; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-feature, .proj-feature.is-flip { grid-template-columns: 1fr; }
  .proj-feature.is-flip .proj-art { order: 0; }
  .bench-grid { grid-template-columns: 1fr 1fr; }
  .g-cap { grid-column: 1 / -1; }
  .g-cap .shape { aspect-ratio: 2 / 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 4.4rem 0; }
  .svc-grid, .projects-grid, .links, .bench-grid { grid-template-columns: 1fr; }
  .g-blob { margin-top: 0; }
  .player { transform: none; }
  .svc-art { height: 210px; }
  .cl-badge { max-width: 12.5rem; font-size: .88rem; }
  .hero { padding-bottom: 6rem; }
  .controls { flex-wrap: wrap; }
  .wa-fab { width: 58px; height: 58px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mega .ln > span { animation: none; }
  .wa-fab::after { display: none; }
}
