/* ═══════════════════════════════════════════════════════════
   SONYXAI portfolio
   ═══════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --bg:          #ededed;
  --bg-alt:      #e6e6e6;
  --card:        #ffffff;
  --ink:         #16161a;
  --ink-2:       #6b6b73;
  --ink-3:       #9a9aa2;
  --line:        #dedee2;
  --accent:      #7c3aed;
  --accent-dk:   #6428d4;
  --accent-soft: #f1e9fe;
  --dark:        #121214;

  /* type */
  --sans:  "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:  "Gloria Hallelujah", var(--sans);

  /* layout */
  --pad:    clamp(1.25rem, 5vw, 5.5rem);
  --gap:    clamp(1rem, 2vw, 1.75rem);
  --radius: 22px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(0 0 0 / .10);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block: 6rem 8rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; margin: 0; padding: 0; }
a   { color: inherit; text-decoration: none; }
p   { margin: 0 0 1.15em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ── type scale ───────────────────────────────────────────── */

.h2 {
  font-size: clamp(2.15rem, 1.1rem + 4.4vw, 4.75rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
}
.h2 em { font-style: normal; color: var(--accent); }
.h2--center { text-align: center; }
.h2--light { color: #fff; }

.h3 {
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 .55em;
}

.lede {
  font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: 1.4em;
}

.sub {
  color: var(--ink-2);
  font-size: clamp(1.02rem, .97rem + .35vw, 1.25rem);
  max-width: 46ch;
  margin: 0;
}
.sub--light { color: rgb(255 255 255 / .62); margin-inline: auto; text-align: center; }

/* handwritten eyebrow */
.scribble {
  font-family: var(--hand);
  font-size: clamp(.9rem, .85rem + .25vw, 1.1rem);
  color: var(--ink);
  margin: 0 0 2.5rem;
}
.scribble--sm     { color: var(--accent); margin-bottom: 1.75rem; }
.scribble--center { text-align: center; }
.scribble--light  { color: rgb(255 255 255 / .55); text-align: center; }

/* ── layout primitives ────────────────────────────────────── */

.section {
  padding: clamp(4.5rem, 9vw, 9rem) var(--pad);
}
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__head--stack { display: block; }
.section__head--stack .sub { max-width: 52ch; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.75rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: var(--gap);
}

/* ── buttons & links ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.02rem;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgb(124 58 237 / .8);
}
.btn--accent:hover { background: var(--accent-dk); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 500;
  margin-top: auto;
  transition: color .2s, gap .2s var(--ease);
}
.link:hover { color: var(--accent); gap: .85em; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ═══════════════════════ HERO ═══════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* tighter side padding than other sections so the split name gets
     as much width as possible before it has to shrink */
  padding: 6rem clamp(1rem, 2.5vw, 3rem) 11rem;
  overflow: hidden;
}

/* faint hexagon tile */
.hero__hexes {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 60 19v34L30 70 0 53V19zM90 2l30 17v34L90 70 60 53V19zM60 54l30 17v34L60 122 30 105V71z' fill='none' stroke='%23000' stroke-opacity='.05' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.5rem, 2vw, 2.5rem);
  width: 100%;
  max-width: 1500px;
}

.hero__side--left  { text-align: left; }
.hero__side--right { text-align: right; }

.hero__eyebrow {
  color: var(--ink-2);
  font-size: clamp(.85rem, .8rem + .3vw, 1.05rem);
  margin: 0 0 .5rem;
}

/* Both halves share one size, chosen so the LONGER of the two still fits
   beside the portrait card. Verified to fit from 880px up at "CONSULT LTD"
   (11 chars) — if you swap in anything longer, drop the 6.8vw a little. */
.hero__word {
  font-size: clamp(2.4rem, 6.8vw, 9rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .88;
  margin: 0;
  white-space: nowrap;
}
.hero__word--left  { margin-right: -.06em; }
.hero__word--right { margin-left: -.06em; }

.hero__card {
  margin: 0;
  width: clamp(10rem, 20vw, 20rem);
  aspect-ratio: 7 / 10;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #f7f7f8, #e3e3e6);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .35);
  animation: float 7s ease-in-out infinite;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@keyframes float {
  0%, 100% { transform: translateY(-8px); }
  50%      { transform: translateY(8px); }
}

.hero__clock {
  margin: 1.25rem 0 0;
  color: var(--ink-2);
  font-size: clamp(.85rem, .8rem + .3vw, 1.05rem);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.dot {
  width: .6em; height: .6em; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgb(52 211 153 / .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 .7em rgb(52 211 153 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); }
}

.hero__scroll {
  position: absolute;
  bottom: 8.5rem;
  left: 50%;
  translate: -50% 0;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { translate: -50% 0; } 50% { translate: -50% 8px; } }

/* ═══════════════════════ ABOUT ═══════════════════════ */

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__text { max-width: 40rem; }
.about__text p { color: var(--ink-2); }

.about__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #f7f7f8, #e3e3e6);
  box-shadow: var(--shadow);
  aspect-ratio: 7 / 9;
  position: sticky;
  top: 4rem;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.trust { margin-bottom: 1.75rem; }
.stars { color: var(--accent); font-size: 1.7rem; letter-spacing: .12em; line-height: 1; }
.trust__label { margin: .6rem 0 0; font-weight: 500; }

.socials { display: flex; flex-wrap: wrap; gap: .7rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1.2em;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 500;
  font-size: .97rem;
  transition: transform .25s var(--ease), color .2s;
}
.socials a:hover { transform: translateY(-2px); color: var(--accent); }
.socials svg { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ═══════════════════════ VIDEOS ═══════════════════════ */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--gap);
}

.video {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.video:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -20px rgb(0 0 0 / .28); }

.video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #2a2a30, #16161a);
  overflow: hidden;
}
.video__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.video:hover .video__thumb img { transform: scale(1.05); }

.badge {
  position: absolute; top: .85rem; left: .85rem;
  background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 500;
  padding: .35em .9em; border-radius: 999px;
}
.dur {
  position: absolute; right: .7rem; bottom: .7rem;
  background: rgb(0 0 0 / .78); color: #fff;
  font-size: .8rem; padding: .2em .55em; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.play {
  position: absolute; inset: 0; margin: auto;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: rgb(255 255 255 / .92);
  transition: transform .3s var(--ease), background .2s;
}
.play::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: .95rem solid var(--ink);
  border-block: .58rem solid transparent;
  translate: .16rem 0;
}
.video:hover .play { transform: scale(1.1); background: #fff; }

.video__title {
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 0;
  padding: 1.3rem 1.4rem 1.5rem;
}

/* ═══════════════════════ SKILLS ═══════════════════════ */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--gap);
}
.skill p:not(.scribble):not(.skill__num) { color: var(--ink-2); }
.skill__num {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 .35rem;
}

.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.tags li {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: .5em 1.05em;
  font-size: .93rem;
}
.tags li::before {
  content: "";
  width: .42em; height: .42em; border-radius: 50%;
  background: var(--accent);
}
.section--alt .tags li { background: var(--bg); }

/* ═══════════════════════ MARQUEE ═══════════════════════ */

.marquee {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.5rem 0;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 38s linear infinite;
  font-size: clamp(1rem, .9rem + .6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ═══════════════════════ PORTFOLIO ═══════════════════════ */

.group {
  display: flex;
  align-items: center;
  gap: .7em;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.75rem;
  scroll-margin-top: 6rem;
}
.group + .cards { margin-bottom: clamp(3rem, 6vw, 5rem); }
.group svg { width: 1.6em; height: 1.6em; fill: var(--accent); }

.work { display: flex; flex-direction: column; }
.work p { color: var(--ink-2); }

.pill {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .84rem;
  font-weight: 500;
  padding: .4em 1em;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.pill--grey { background: #ededf0; color: var(--ink); }

/* ═══════════════════════ TRAINING ═══════════════════════ */

.impact p:not(.impact__org) { color: var(--ink-2); margin-bottom: 0; }
.impact__icon { display: block; font-size: 2rem; line-height: 1; margin-bottom: 1.1rem; }
.impact__org  { color: var(--accent); font-weight: 500; margin: -.3rem 0 1rem; }

.banner {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.banner__label { color: rgb(255 255 255 / .6); margin: 0 0 .4rem; }
.banner__stat {
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
  max-width: 20ch;
}

/* ═══════════════════════ SPEAKING ═══════════════════════ */

.tabs { display: flex; gap: .75rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tab {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.tab b {
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: .05em .6em;
  font-size: .88em;
}
.tab:hover { transform: translateY(-2px); }
.tab.is-active { background: var(--accent); color: #fff; }
.tab.is-active b { background: rgb(255 255 255 / .22); color: #fff; }

.deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 3vw, 2.5rem);
}
.deck[hidden] { display: none; }

.deck__stack {
  position: relative;
  width: min(100%, 34rem);
  /* 3:2 matches the conference photos exactly, so they aren't cropped */
  aspect-ratio: 3 / 2;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #d6d6da, #bcbcc2);
  box-shadow: 0 24px 54px -24px rgb(0 0 0 / .4);
  transition: transform .55s var(--ease), opacity .45s, filter .45s;
  transform-origin: center bottom;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* one portrait-orientation photo in an otherwise landscape set — bias the
   crop upward so faces stay in frame rather than centring on torsos */
.slide--portrait img { object-position: center 17%; } /* tuned to hold both faces + handshake */

/* The engagement videos are Shorts. YouTube pads their thumbnail out to 16:9
   with dark side bars, so give that deck a portrait card — object-fit: cover
   then crops the padding away and leaves just the vertical frame. */
#panel-videos .deck__stack {
  aspect-ratio: 9 / 16;
  width: min(100%, 21rem);
}

/* video slides: whole card is a link, with a play affordance */
.slide--video a { display: block; width: 100%; height: 100%; }
.slide--video .play {
  width: 4.2rem; height: 4.2rem;
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / .5);
}
.slide--video[data-pos="0"]:hover .play { transform: scale(1.1); background: #fff; }

.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.5rem 1.35rem;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / .75));
}

/* stacked-card positions, driven by data-pos in JS */
.slide[data-pos="0"] { transform: translate(0,0) scale(1);            opacity: 1;   z-index: 4; }
.slide[data-pos="1"] { transform: translate(3%, -4%) scale(.95);      opacity: .85; z-index: 3; filter: blur(.5px); }
.slide[data-pos="2"] { transform: translate(6%, -8%) scale(.90);      opacity: .55; z-index: 2; filter: blur(1px); }
.slide[data-pos="3"] { transform: translate(9%, -12%) scale(.85);     opacity: .28; z-index: 1; filter: blur(1.5px); }
.slide[data-pos="hidden"] { transform: translate(9%, -12%) scale(.85); opacity: 0;  z-index: 0; pointer-events: none; }
.slide[data-pos="0"] figcaption { opacity: 1; }
.slide:not([data-pos="0"]) figcaption { opacity: 0; }

.deck__nav {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.deck__nav:hover { background: var(--accent); color: #fff; transform: scale(1.08); }

/* ═══════════════════════ FAQ ═══════════════════════ */

.faq {
  max-width: 60rem;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.qa {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 2.4vw, 1.9rem) clamp(1.35rem, 2.4vw, 2.25rem);
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -.015em;
}
.qa summary::-webkit-details-marker { display: none; }

.qa__icon {
  flex: none;
  position: relative;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: background .25s, rotate .35s var(--ease);
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  background: var(--accent);
  border-radius: 2px;
}
.qa__icon::before { width: .95rem; height: 2px; }
.qa__icon::after  { width: 2px; height: .95rem; transition: opacity .25s; }

.qa[open] .qa__icon { rotate: 180deg; background: var(--accent); }
.qa[open] .qa__icon::before { background: #fff; }
.qa[open] .qa__icon::after  { opacity: 0; }

.qa__body {
  padding: 0 clamp(1.35rem, 2.4vw, 2.25rem) clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--ink-2);
  max-width: 62ch;
}
.qa__body p { margin: 0; }
.qa[open] .qa__body { animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; translate: 0 -6px; } }

/* ═══════════════════════ CONTACT ═══════════════════════ */

#contact { text-align: center; padding-bottom: 3rem; }
#contact .h2 { text-align: center; }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  max-width: 62rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: left;
}
.contact__card {
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 18px;
  padding: 1.6rem 1.75rem;
  display: grid;
  gap: .35rem;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.contact__card:hover {
  background: rgb(255 255 255 / .1);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.contact__label { color: rgb(255 255 255 / .55); font-size: .88rem; }
.contact__value { font-size: 1.1rem; font-weight: 500; word-break: break-word; }

.footer {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 2rem;
  padding-bottom: 6.5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgb(255 255 255 / .55);
  font-size: .93rem;
  text-align: left;
}
.footer p { margin: 0; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a:hover { color: #fff; }

/* ═══════════════════════ FLOATING DOCK NAV ═══════════════════════ */

.dock {
  position: fixed;
  z-index: 100;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  max-width: calc(100vw - 2rem);
  padding: .5rem .55rem .5rem .75rem;
  border-radius: 999px;
  background: rgb(18 18 20 / .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -14px rgb(0 0 0 / .55);
  color: #fff;
}

.dock__home {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  flex: none;
  transition: background .2s;
}
.dock__home:hover { background: rgb(255 255 255 / .12); }
.dock__home svg { width: 1.25rem; height: 1.25rem; fill: #fff; }

.dock__sep {
  width: 1px;
  height: 1.5rem;
  background: rgb(255 255 255 / .2);
  margin-inline: .3rem;
  flex: none;
}

.dock__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock__list::-webkit-scrollbar { display: none; }

.dock__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  padding: .65em 1em;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .98rem;
  color: rgb(255 255 255 / .82);
  transition: background .22s, color .22s;
}
.dock__list > li > a:hover { color: #fff; background: rgb(255 255 255 / .1); }
.dock__list > li > a.is-current { color: #fff; background: rgb(255 255 255 / .16); }
.chev { opacity: .6; transition: rotate .25s var(--ease); }

/* portfolio submenu */
.dock__has-menu { position: relative; }
.dock__menu {
  position: absolute;
  bottom: calc(100% + .85rem);
  left: 50%;
  translate: -50% 0;
  min-width: 12rem;
  padding: .4rem;
  border-radius: 16px;
  background: rgb(18 18 20 / .97);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s, transform .28s var(--ease), visibility .22s;
}
.dock__has-menu:hover .dock__menu,
.dock__has-menu:focus-within .dock__menu,
.dock__has-menu.is-open .dock__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dock__has-menu:hover .chev,
.dock__has-menu.is-open .chev { rotate: 90deg; }

.dock__menu a {
  display: block;
  padding: .7em 1em;
  border-radius: 11px;
  font-size: .95rem;
  color: rgb(255 255 255 / .82);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.dock__menu a:hover { background: rgb(255 255 255 / .12); color: #fff; }

.dock__cta {
  flex: none;
  padding: .72em 1.35em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: .98rem;
  white-space: nowrap;
  transition: background .22s, transform .22s var(--ease);
}
.dock__cta:hover { background: var(--accent-dk); transform: scale(1.03); }

/* ═══════════════════════ SCROLL REVEAL ═══════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 30rem; }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-block: 5rem 9rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .hero__side--left, .hero__side--right { text-align: center; }
  .hero__word { font-size: clamp(3rem, 13vw, 6rem); margin: 0; }
  .hero__card { order: -1; width: min(62vw, 17rem); }
  .hero__scroll { display: none; }

  .banner { flex-direction: column; align-items: flex-start; }

  .dock {
    left: .75rem; right: .75rem;
    translate: 0 0;
    max-width: none;
    justify-content: flex-start;
  }
  .dock__cta { margin-left: auto; }
  .dock__menu { left: 0; translate: 0 0; }
}

@media (max-width: 520px) {
  .dock__home, .dock__sep { display: none; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
