/* ==========================================================================
   gavinbrennan.com — stylesheet
   Sections: 1 Tokens · 2 Base · 3 Background + cursor · 4 Nav · 5 Buttons
             6 Hero · 7 Sections + glass · 8 About · 9 Ventures
             10 Achievements · 11 Press · 12 Writing · 13 Contact
             14 Footer · 15 Blog pages · 16 Motion helpers · 17 Reduced motion
   ========================================================================== */

/* 1. Tokens — change colours and fonts here ------------------------------- */
:root {
  color-scheme: dark;
  --cap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 4h6l1.6 2.2H20a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.2a2 2 0 0 1 2-2h3.4L9 4Zm3 4.6a4.4 4.4 0 1 0 0 8.8 4.4 4.4 0 0 0 0-8.8Zm0 2a2.4 2.4 0 1 1 0 4.8 2.4 2.4 0 0 1 0-4.8Z'/%3E%3C/svg%3E");

  --bg: #060b1c;
  --bg-raise: #0e1630;
  --ink: #f5f8ff;
  --muted: #b6c1dc;
  --faint: #8a96b5;

  --cyan: #2ee9ff;
  --blue: #4f86ff;
  --violet: #b06cff;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 48%, var(--violet));

  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --nav-h: 64px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: rgba(77, 125, 255, 0.45); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. Page background + cursor glow --------------------------------------- */
/* Fixed colour fields behind everything. They give the glass panels
   something to blur. */
.backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 8%, rgba(79, 134, 255, 0.32), transparent 70%),
    radial-gradient(50vw 50vh at 5% 55%, rgba(176, 108, 255, 0.26), transparent 70%),
    radial-gradient(55vw 45vh at 75% 100%, rgba(46, 233, 255, 0.2), transparent 70%),
    var(--bg);
}

/* Scroll scene (homepage). The orbs and grid are moved by scene.js as you scroll. */
.scene { background: var(--bg); overflow: hidden; }
.scene__orb { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform, opacity; }
.scene__orb--1 { left: 45%; top: -25%; background: radial-gradient(circle, rgba(79, 134, 255, 0.68), rgba(79, 134, 255, 0.22) 38%, transparent 62%); }
.scene__orb--2 { left: -30%; top: 30%; background: radial-gradient(circle, rgba(176, 108, 255, 0.62), rgba(176, 108, 255, 0.2) 38%, transparent 62%); }
.scene__orb--3 { left: 30%; top: 70%; background: radial-gradient(circle, rgba(46, 233, 255, 0.52), rgba(46, 233, 255, 0.16) 38%, transparent 62%); }
.scene__grid {
  position: absolute; left: 0; right: 0; top: 0; height: 200%;
  background-image: radial-gradient(rgba(170, 210, 255, 0.4) 1.2px, transparent 1.7px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 80%);
  opacity: 0.8; will-change: transform;
}
.scene__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(140, 200, 255, 0.24) 0%,
    rgba(79, 134, 255, 0.17) 16%,
    rgba(110, 110, 255, 0.08) 36%,
    rgba(176, 108, 255, 0.03) 54%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* 4. Nav ------------------------------------------------------------------ */
/* --navp goes from 0 (top of page) to 1 (reaching About). main.js sets it on
   scroll, so the blue bar fades in gradually instead of switching on. */
.nav {
  --navp: 0;
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding-inline: var(--pad);
  pointer-events: none;
}
.nav.is-open { --navp: 1 !important; }
.nav__bar {
  position: relative; isolation: isolate;
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
}
/* Dark glass bar with a slowly turning gradient edge, faded in by --navp */
.nav__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  /* A blue-to-violet tint over the dark glass that grows richer the further
     down the page you are (--scrollp: 0 at top, 1 at the bottom) */
  --tint: calc(0.2 + var(--scrollp, 0) * 0.32);
  background:
    linear-gradient(100deg, rgba(37, 99, 235, var(--tint)), rgba(79, 134, 255, calc(var(--tint) * 0.8)) 50%, rgba(124, 92, 246, var(--tint))),
    linear-gradient(100deg, rgba(10, 17, 44, 0.8), rgba(16, 24, 62, 0.74) 50%, rgba(28, 18, 60, 0.76));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px -20px rgba(46, 233, 255, 0.45), 0 10px 40px -18px rgba(176, 108, 255, 0.5);
  opacity: var(--navp);
}
.nav__bar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), #2ee9ff, #4f86ff, #b06cff, rgba(255, 255, 255, 0.25), #2ee9ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: calc(var(--navp) * 0.9);
  animation: nav-spin 8s linear infinite;
}
@keyframes nav-spin { to { --spin: 360deg; } }
/* Reading progress along the bottom edge */
.nav__progress {
  position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; border-radius: 2px; pointer-events: none;
  background: var(--grad); transform-origin: left; transform: scaleX(var(--scrollp, 0));
  box-shadow: 0 0 10px rgba(46, 233, 255, 0.8); opacity: var(--navp);
}

.nav__left { display: flex; align-items: center; gap: 12px; }
.nav__brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; letter-spacing: -0.025em;
  background: linear-gradient(100deg, #ffffff 30%, #9ff6ff 65%, #d3b4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(46, 233, 255, 0.45));
}
.nav__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px -4px rgba(46, 233, 255, 0.6);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nav__social:hover { background: #fff; color: #1d4ed8; border-color: #fff; }
.nav__social .icon { width: 15px; height: 15px; }
.icon { width: 18px; height: 18px; flex: none; }

.nav__links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; z-index: 1; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  color: #d3ddf5;
  text-shadow: 0 0 14px rgba(140, 225, 255, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; text-shadow: 0 0 14px rgba(160, 235, 255, 0.85); }
/* Sliding highlight that follows the section you're on (main.js moves it) */
.nav__pill {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 36px; width: 0; margin-top: -18px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(100deg, rgba(46, 233, 255, 0.18), rgba(176, 108, 255, 0.2));
  box-shadow: inset 0 0 0 1px rgba(127, 240, 255, 0.35), 0 0 18px -4px rgba(46, 233, 255, 0.55);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), width 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease;
}
.nav__pill.is-on { opacity: 1; }
.nav__links a.nav__cta {
  margin-left: 10px; font-weight: 700; color: #fff; text-shadow: none;
  background: var(--grad);
  box-shadow: 0 6px 22px -8px rgba(79, 134, 255, 0.95), 0 0 20px -6px rgba(46, 233, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav__links a.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(79, 134, 255, 1), 0 0 28px -4px rgba(46, 233, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(var(--nav-h) + 10px); left: var(--pad); right: var(--pad);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: var(--r-md);
    background: linear-gradient(160deg, rgba(12, 20, 50, 0.94), rgba(30, 20, 66, 0.94));
    border: 1px solid rgba(127, 240, 255, 0.35);
    box-shadow: 0 24px 60px -20px rgba(46, 233, 255, 0.4);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-sm); text-shadow: none; }
  .nav__links a.nav__cta { margin: 6px 0 0; text-align: center; }
  .nav__pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav__bar::after { animation: none; } }

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(79, 134, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 14px 44px -8px rgba(46, 233, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn--ghost {
  color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 48, 0.72), rgba(12, 20, 48, 0.72)) padding-box,
    linear-gradient(100deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 0 22px -6px rgba(46, 233, 255, 0.55);
  text-shadow: 0 0 12px rgba(140, 225, 255, 0.45);
}
.btn--ghost:hover {
  background:
    linear-gradient(rgba(30, 50, 110, 0.75), rgba(30, 50, 110, 0.75)) padding-box,
    linear-gradient(100deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 0 30px -4px rgba(46, 233, 255, 0.75);
}
/* Gentle pulse on the two hero buttons */
.hero__actions .btn--primary { animation: pulse-primary 3.2s ease-in-out infinite; }
.hero__actions .btn--ghost { animation: pulse-ghost 3.2s ease-in-out 1.6s infinite; }
@keyframes pulse-primary {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(79, 134, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(46, 233, 255, 0.45); }
  50% { box-shadow: 0 12px 36px -8px rgba(79, 134, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 9px rgba(46, 233, 255, 0); }
}
@keyframes pulse-ghost {
  0%, 100% { box-shadow: 0 0 22px -6px rgba(46, 233, 255, 0.55), 0 0 0 0 rgba(176, 108, 255, 0.4); }
  50% { box-shadow: 0 0 30px -4px rgba(46, 233, 255, 0.75), 0 0 0 9px rgba(176, 108, 255, 0); }
}

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.link:hover { color: var(--cyan); }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 24px) clamp(96px, 14vh, 150px);
  overflow: hidden;
}
/* Static background: shown on mobile, low-power devices, reduced motion,
   or if WebGL is unavailable. The 3D canvas fades in over it. */
.hero__fallback {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 34% at 72% 62%, rgba(79, 134, 255, 0.62), transparent 70%),
    radial-gradient(26% 26% at 26% 74%, rgba(176, 108, 255, 0.55), transparent 70%),
    radial-gradient(22% 20% at 88% 86%, rgba(46, 233, 255, 0.45), transparent 70%);
}
.hero__fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent 30%, #000 75%, transparent);
  opacity: 0.55;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease;
}
.webgl-on .hero__canvas { opacity: 1; }
.webgl-on .hero__fallback { opacity: 0.45; }
.webgl-on .hero__fallback::after { display: none; }

.hero__content {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 80px); align-items: stretch;
}
@media (min-width: 901px) {
  /* Photo has a fixed size and hangs past the right edge of the content
     column (into the page margin), which frees up room for the name. */
  .hero__content { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__content .hero__frame {
    width: clamp(407px, 40.7vw, 622px); /* 15% more area than the original 38vw photo */
    justify-self: end; align-self: center; min-height: 0;
    margin-right: calc(-1 * min(112px, 7.5vw, max(0px, max(var(--pad), (100vw - var(--wrap)) / 2) - 30px)));
  }
  .hero__frame .hero__photo { aspect-ratio: 7 / 6; min-height: 0; }
}
.hero__text { display: flex; flex-direction: column; justify-content: flex-end; container-type: inline-size; }
/* Photo matches the height of the text column so the two sit in line */
.hero__frame {
  position: relative; isolation: isolate; min-height: 100%; display: flex;
  /* A glass mat around the photo, like a framed print */
  padding: 10px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -40px rgba(0, 0, 0, 0.95),
    0 30px 80px -50px rgba(79, 134, 255, 0.7);
}
/* Thin blue hairline around the mat */
.hero__frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(127, 240, 255, 0.55), rgba(79, 134, 255, 0.12) 45%, rgba(176, 108, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Soft colour bloom behind the frame (static) */
.hero__frame::after {
  content: ""; position: absolute; inset: -12% -14% -18% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79, 134, 255, 0.38), rgba(176, 108, 255, 0.18) 55%, transparent 100%);
}
.hero__frame > .shot { border-radius: 22px; border: 0; box-shadow: none; }
/* Pulse: the frame's edge brightens and a blue/violet glow breathes out and back */
.hero__frame { animation: frame-pulse 4.2s ease-in-out infinite; }
.hero__frame::after { animation: bloom-pulse 4.2s ease-in-out infinite; }
@keyframes frame-pulse {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 30px 80px -50px rgba(79, 134, 255, 0.7),
      0 0 0 1px rgba(127, 240, 255, 0.15), 0 0 30px -12px rgba(79, 134, 255, 0.5);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 30px 80px -50px rgba(79, 134, 255, 0.9),
      0 0 0 1.5px rgba(127, 240, 255, 0.55), 0 0 60px -6px rgba(79, 134, 255, 0.85), 0 0 110px -20px rgba(176, 108, 255, 0.7);
  }
}
@keyframes bloom-pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.hero__photo { flex: 1; min-height: 100%; aspect-ratio: auto; }
.hero__photo img { object-position: 30% 50%; }
/* Caption sits at the top here so it doesn't cover the Microsoft lectern */
.hero__photo .shot__cap { top: 12px; bottom: auto; }
.hero__photo::after { inset: 0 0 55%; background: linear-gradient(0deg, transparent, rgba(4, 6, 13, 0.55)); }
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__frame { min-height: 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .hero__photo .shot__cap { font-size: 0.74rem; }
}
/* Location chip: mini map of Ireland with a pin on Ballina */
.hero__place {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 8px 20px 8px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px -12px rgba(46, 233, 255, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  margin-bottom: clamp(30px, 5vh, 50px);
}
/* Location chip is a link to Maps */
a.hero__place { color: inherit; transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, translate 0.35s cubic-bezier(.2, .8, .2, 1); }
a.hero__place:hover { border-color: rgba(127, 240, 255, 0.55); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 34px -8px rgba(46, 233, 255, 0.85); translate: 0 -2px; }
.hero__place-go { width: 16px; height: 16px; margin-left: 4px; color: #9fb4dc; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), color 0.3s ease; }
a.hero__place:hover .hero__place-go { color: #fff; transform: translate(2px, -2px); }
/* --mapglow (0 to 1) is tweened by GSAP so the glow fades in smoothly */
.hero__map { --mapglow: 0; width: 46px; height: auto; flex: none; overflow: visible; filter: drop-shadow(0 0 8px rgba(46, 233, 255, calc(var(--mapglow) * 0.45))); }
.no-motion .hero__map { --mapglow: 1; }
/* Pin: bigger, brighter, with a white rim, a steady glow and a gentle bob */
.hero__map { overflow: visible; }
.hero__pin-halo { fill: rgba(46, 233, 255, 0.28); filter: blur(3px); }
.hero__pin-head {
  fill: #2ee9ff; stroke: #fff; stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(46, 233, 255, 1)) drop-shadow(0 0 14px rgba(46, 233, 255, 0.8));
}
.hero__pin-body { animation: pin-bob 2.6s ease-in-out infinite; }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hero__pin-ring {
  fill: none; stroke: #2ee9ff; stroke-width: 2.5;
  transform-box: fill-box; transform-origin: center;
  animation: pin-ring 2.6s ease-out infinite;
}
.hero__pin-ring--2 { animation-delay: 1.3s; }
@keyframes pin-ring { 0% { transform: scale(0.4); opacity: 0.95; } 100% { transform: scale(3.4); opacity: 0; } }
.hero__where { display: flex; flex-direction: column; line-height: 1.25; font-size: 1.02rem; font-weight: 600; color: #eef3ff; letter-spacing: -0.01em; }
.hero__where small {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(90deg, #7ff0ff, #c8a8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 2px;
}
.hero__name {
  font-size: clamp(4.2rem, 10.4vw, 10.2rem);
  font-size: min(clamp(4.2rem, 10.4vw, 10.2rem), 25cqi); /* never wider than its column */
  font-weight: 600; letter-spacing: -0.055em; line-height: 0.86;
  margin-left: -0.05em;
  color: #fff;
  /* Soft blue/violet glow around the whole name */
  filter: drop-shadow(0 0 22px rgba(79, 134, 255, 0)) drop-shadow(0 0 60px rgba(176, 108, 255, 0));
  transition: filter 2s ease;
}
/* After the intro, each line becomes plain text with a light sweeping across it */
.hero__line.is-shimmer {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 38%, #a6ecff 47%, #d5b8ff 53%, #ffffff 62%, #ffffff 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: name-shimmer 7s cubic-bezier(.45, 0, .25, 1) infinite;
}
.hero__line.is-shimmer + .hero__line.is-shimmer { animation-delay: 0.35s; }
@keyframes name-shimmer { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }
.hero__name.is-glow, .no-motion .hero__name { filter: drop-shadow(0 0 22px rgba(79, 134, 255, 0.45)) drop-shadow(0 0 60px rgba(176, 108, 255, 0.25)); }
.hero__line { display: block; white-space: nowrap; } /* keeps "Brennan" on one line */
.hero__tagline {
  max-width: 30ch; margin-top: clamp(36px, 5.8vh, 62px);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.4; color: var(--ink);
  letter-spacing: -0.01em;
}
.hero__tagline strong {
  font-weight: 600;
  background: linear-gradient(100deg, #7ff0ff, #8fb2ff 55%, #d0a6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(46, 233, 255, 0.35));
}
.hero__tagline span { color: #c3cee8; }
/* Keep the tagline crisp over the brighter particle waves */
.hero__tagline { text-shadow: 0 1px 2px rgba(6, 11, 28, 0.9), 0 0 18px rgba(6, 11, 28, 0.95), 0 0 36px rgba(6, 11, 28, 0.7); }
.hero__tagline strong { text-shadow: none; }

/* Slow-moving aurora glow behind the hero text */
.hero__aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; will-change: opacity; }
/* Feather the bottom of the hero layers so nothing ends on a hard line */
.hero__canvas, .hero__bg {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.hero__aura span {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.8; mix-blend-mode: screen;
  animation: aura-drift 18s ease-in-out infinite alternate;
}
.hero__aura span:nth-child(1) { width: 30vw; height: 30vw; left: 0; top: 22%; background: radial-gradient(circle, rgba(79, 134, 255, 0.85), transparent 62%); }
.hero__aura span:nth-child(2) { width: 22vw; height: 22vw; left: 22vw; top: 52%; background: radial-gradient(circle, rgba(176, 108, 255, 0.8), transparent 62%); animation-duration: 22s; animation-delay: -6s; }
.hero__aura span:nth-child(3) { width: 20vw; height: 20vw; right: 6vw; top: 10%; background: radial-gradient(circle, rgba(46, 233, 255, 0.7), transparent 62%); animation-duration: 26s; animation-delay: -12s; }
@keyframes aura-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, -3vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 4vh, 0) scale(0.95); }
}

/* Rotating gradient glow around the hero photo */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.spin-frame { position: relative; isolation: isolate; }
.spin-frame > .shot { border: 0; }
.spin-frame::before, .spin-frame::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--r-md) + 2px);
  background: conic-gradient(from var(--spin), #2ee9ff, #4f86ff, #b06cff, #2ee9ff 50%, #4f86ff, #b06cff, #2ee9ff);
  animation: frame-spin 7s linear infinite;
}
.spin-frame::after { inset: -6px; filter: blur(26px); opacity: 0.6; }
@keyframes frame-spin { to { --spin: 360deg; } }

/* Scroll cue */
.hero__scroll {
  position: absolute; left: 0; right: 0; bottom: 26px; width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { position: relative; width: 1px; height: 42px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: scroll-cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }
@media (max-width: 900px), (max-height: 760px) { .hero__scroll { display: none; } }

/* Light sweep across the primary button */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: btn-sweep 5s ease-in-out 4s infinite;
}
@keyframes btn-sweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(38px, 6vh, 60px); }
.hero__actions .btn { min-height: 56px; padding: 0 32px; font-size: 1.04rem; }

/* 7. Sections + glass ----------------------------------------------------- */
.section { padding-block: clamp(84px, 13vw, 170px); position: relative; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
  margin-bottom: clamp(36px, 5vw, 64px); padding-bottom: clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(46, 233, 255, 0.55), rgba(79, 134, 255, 0.25) 50%, rgba(176, 108, 255, 0.5)) 1;
}
.section__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  background: linear-gradient(100deg, #ffffff 30%, #9fd8ff 70%, #c8a8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* After main.js splits a title into words, each word carries the gradient */
.section__title { filter: drop-shadow(0 0 20px rgba(79, 134, 255, 0.35)); }
.section__title.is-split { background: none; color: var(--ink); }
.is-shimmer-title {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 36%, #a6ecff 47%, #d5b8ff 54%, #ffffff 64%, #dfe6ff 100%) !important;
  background-size: 260% 100% !important; background-position: 100% 0;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
  animation: name-shimmer 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
.section__title.is-split .swi {
  background: linear-gradient(100deg, #ffffff 20%, #9fd8ff 65%, #c8a8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lead { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}
/* Pointer-following highlight. main.js sets --mx / --my on hover. */
.spot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 190, 255, 0.42), transparent 60%);
  opacity: 0; transition: opacity 0.45s ease;
}
.spot:hover::before { opacity: 1; }
/* Colourful outline on every glass card */
.glass { border-color: transparent; }
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(46, 233, 255, 0.7), rgba(79, 134, 255, 0.22) 42%, rgba(176, 108, 255, 0.62));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.75; transition: opacity 0.4s ease;
}
.glass:hover::after { opacity: 1; }
.spot > * { position: relative; }

/* Photo with a caption chip laid over it */
.shot {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box, linear-gradient(135deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: ""; position: absolute; inset: 45% 0 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 13, 0.7));
}

/* Caption chip: frosted glass, gradient hairline border, camera badge,
   and a light sheen that sweeps across when you hover the photo. */
.shot__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  width: fit-content; max-width: calc(100% - 24px);
  padding: 6px 16px 6px 6px; border-radius: 999px; overflow: hidden;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em;
  color: #f2f5fc;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(14, 22, 50, 0.58), rgba(14, 22, 50, 0.58)) padding-box,
    linear-gradient(110deg, rgba(46, 233, 255, 0.95), rgba(79, 134, 255, 0.45) 45%, rgba(176, 108, 255, 0.95)) border-box;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.95), 0 0 24px -10px rgba(77, 125, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease;
}
/* Camera badge */
.shot__cap::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background:
    var(--cap-icon) center / 12px no-repeat,
    var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(63, 224, 255, 0.45);
}
/* Sheen */
.shot__cap::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left 0.9s cubic-bezier(.2, .8, .2, 1);
}
.shot:hover .shot__cap { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.95), 0 0 30px -8px rgba(77, 125, 255, 0.75); }
.shot:hover .shot__cap::after { left: 120%; }
/* Long captions square off so the text still reads well */
.shot__cap--block { border-radius: 16px; padding: 8px 16px 8px 8px; }
.shot__cap--block::before { align-self: flex-start; }

/* ---- Collapsible captions ("Photo info") ----------------------------------
   main.js turns each caption into a button. Collapsed it shows the camera
   badge and "Photo info"; clicked, the caption text rolls out. Without JS
   the caption simply shows in full. */
.shot__cap.is-collapsible { padding: 0; border-radius: 999px; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease, border-radius 0.5s ease; }
.shot__cap.is-collapsible::before { display: none; }
.shot__cap.is-collapsible.is-open.is-multi { border-radius: 16px; }
.shot__btn {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.shot__cap.is-open.is-multi .shot__btn { align-items: flex-start; padding-block: 8px; }
/* Camera badge (same look as before) */
.shot__btn::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cap-icon) center / 12px no-repeat, var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(63, 224, 255, 0.45);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.shot__cap.is-open .shot__btn::before { transform: rotate(-12deg) scale(1.06); }
.shot__cap.is-collapsible:hover { box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.95), 0 0 34px -6px rgba(46, 233, 255, 0.8); }

/* Closed: a solid gradient button so it clearly reads as clickable */
.shot__cap.is-collapsible:not(.is-open) {
  background:
    linear-gradient(100deg, #1fb8ff, #4f86ff 50%, #9a5cff) padding-box,
    linear-gradient(100deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25)) border-box;
  box-shadow: 0 10px 26px -10px rgba(40, 90, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.shot__cap.is-collapsible:not(.is-open):hover { filter: brightness(1.08); box-shadow: 0 14px 32px -10px rgba(40, 90, 255, 1), 0 0 26px -4px rgba(46, 233, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.shot__cap.is-collapsible:not(.is-open) .shot__btn::before { background: var(--cap-icon) center / 12px no-repeat, rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.shot__cap.is-collapsible:not(.is-open) .shot__label { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 20, 80, 0.35); font-size: 0.75em; }
.shot__cap.is-collapsible:not(.is-open) .shot__btn { padding: 4px 8px 4px 4px; gap: 7px; }
.shot__cap.is-collapsible:not(.is-open) .shot__btn::before { width: 18px; height: 18px; background-size: 9px, auto; }
.shot__cap.is-collapsible:not(.is-open) .shot__icon { width: 15px; height: 15px; }
.shot__cap.is-collapsible:not(.is-open) .shot__icon::before, .shot__cap.is-collapsible:not(.is-open) .shot__icon::after { width: 7px; }
.shot__cap.is-collapsible:not(.is-open) { animation: cap-breathe 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes cap-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px -12px rgba(40, 90, 255, 0.9), 0 0 14px -8px rgba(46, 233, 255, 0.5); }
  50% { transform: scale(1.045); box-shadow: 0 10px 26px -10px rgba(40, 90, 255, 1), 0 0 22px -6px rgba(46, 233, 255, 0.85); }
}
/* A soft light glides across the button at the top of each breath */
.shot__cap.is-collapsible:not(.is-open)::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent); animation: cap-sheen 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes cap-sheen { 0%, 30% { left: -60%; } 70%, 100% { left: 130%; } }
.shot:hover .shot__cap.is-collapsible:not(.is-open) { animation-play-state: paused; }
.shot__btn::before, .shot__icon { transition: width 0.4s ease, height 0.4s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1), background 0.3s ease; }
.shot__btn { padding-right: 10px; }
.shot__btn:focus-visible { outline: none; }
.shot__cap.is-collapsible:has(.shot__btn:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }

/* Plus icon that turns into a close (x) when open */
.shot__icon {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), background 0.3s ease;
}
.shot__icon::before, .shot__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.8px; border-radius: 2px;
  background: #fff; transform: translate(-50%, -50%);
}
.shot__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.shot__cap.is-open .shot__icon { transform: rotate(45deg); background: rgba(255, 255, 255, 0.12); }
.shot__cap.is-open.is-multi .shot__icon { margin-top: 2px; }

/* The window that grows; main.js sets its width and height in px */
.shot__view {
  display: grid; overflow: hidden;
  transition: width 0.7s cubic-bezier(.65, 0, .25, 1), height 0.7s cubic-bezier(.65, 0, .25, 1);
}
.shot__label, .shot__text { grid-area: 1 / 1; justify-self: start; align-self: start; }
.shot__label {
  white-space: nowrap; font-weight: 600; letter-spacing: 0.01em;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.shot__text {
  opacity: 0; transform: translateX(-14px); visibility: hidden;
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0.7s;
}
.shot__cap.is-open .shot__label { opacity: 0; transform: translateX(10px); }
.shot__cap.is-open .shot__text {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 0.5s ease 0.18s, transform 0.7s cubic-bezier(.2, .8, .2, 1) 0.1s, visibility 0s;
}
.caption { margin-top: 14px; font-size: 0.86rem; line-height: 1.5; color: var(--faint); max-width: 60ch; }

.photo { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raise); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Section glows ------------------------------------------------------------ */
.section__aura {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* fade top and bottom so section glows blend into each other */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.section__aura span { position: absolute; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 50%; opacity: 0.5; animation: aura-drift 24s ease-in-out infinite alternate; }
.section__aura--a span:nth-child(1) { left: -14vw; top: 5%; background: radial-gradient(circle, rgba(79, 134, 255, 0.28), transparent 62%); }
.section__aura--a span:nth-child(2) { right: -12vw; bottom: -10%; background: radial-gradient(circle, rgba(176, 108, 255, 0.24), transparent 62%); animation-delay: -10s; }
.section__aura--b span:nth-child(1) { right: -14vw; top: 0; background: radial-gradient(circle, rgba(46, 233, 255, 0.2), transparent 62%); }
.section__aura--b span:nth-child(2) { left: -10vw; bottom: -12%; background: radial-gradient(circle, rgba(79, 134, 255, 0.26), transparent 62%); animation-delay: -12s; }

/* 8. About ---------------------------------------------------------------- */
.section#about { padding-top: clamp(64px, 9vw, 120px); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about__frame { margin-top: clamp(28px, 6vw, 96px); }
.about__body { margin-top: clamp(20px, 2.6vw, 30px); max-width: 58ch; }
.about__body p { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.65; letter-spacing: -0.01em; color: #d3dcf1; }
.about__body p.about__lead { color: #fff; font-size: clamp(1.3rem, 2vw, 1.62rem); font-weight: 500; line-height: 1.42; letter-spacing: -0.02em; }
.about__body p + p { margin-top: 1em; }
.about__body strong { color: #fff; font-weight: 700; }
.about__kicker {
  margin-top: clamp(26px, 3vw, 36px);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(90deg, #7ff0ff, #c8a8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Interest tiles */
.interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; max-width: 620px; }
.interest {
  padding: 18px 18px 18px; border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(46, 233, 255, 0.16), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(176, 108, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px -24px rgba(79, 134, 255, 0.8);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
}
.interest::after { opacity: 1 !important; } /* full-strength gradient outline */
.interest:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 50px -20px rgba(79, 134, 255, 1), 0 0 34px -10px rgba(46, 233, 255, 0.7); }
.interest__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: var(--grad);
  box-shadow: 0 0 22px -2px rgba(46, 233, 255, 0.65), 0 8px 20px -6px rgba(79, 134, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.interest:hover .interest__icon { transform: scale(1.08) rotate(-6deg); }
.interest__icon svg { width: 20px; height: 20px; }
.interest h3 {
  margin-top: 14px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 30%, #9fefff 70%, #d2b6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(46, 233, 255, 0.45));
}
.interest p { margin-top: 6px; font-size: 0.92rem; font-weight: 500; line-height: 1.5; color: #e4ebfb; }
.about__outro { margin-top: clamp(22px, 2.6vw, 30px); max-width: 58ch; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.6; color: #d3dcf1; }
.about__outro strong { color: #fff; font-weight: 700; }
@media (max-width: 520px) { .interests { grid-template-columns: 1fr; } }
.about__lead strong {
  background: linear-gradient(100deg, #7ff0ff, #8fb2ff 55%, #d0a6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__photo { aspect-ratio: 4 / 5; }
.about__photo img { object-position: 52% 40%; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__frame { margin-top: 0; }
  .about__photo { aspect-ratio: 4 / 3; }
}

/* 9. Ventures ------------------------------------------------------------- */
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.venture {
  display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--r-lg);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.venture:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.venture__media { aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); }
.venture__media img { transform: scale(1.12); will-change: transform; }
.venture__media .shot__cap { font-size: 0.76rem; }
.venture__media--right img { object-position: 72% 50%; }
/* Gavin is on the far left of this photo: keep him in frame on every screen */
.venture__media--left img { object-position: 14% 50%; transform-origin: 14% 50%; }

.venture__body { display: flex; flex-direction: column; flex: 1; padding: 18px 14px 14px; }
.venture__id { display: flex; align-items: center; gap: 14px; }
.venture__logo { width: 44px; height: 44px; border-radius: 11px; flex: none; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.venture__name {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff 25%, #9fefff 60%, #d2b6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(46, 233, 255, 0.55)) drop-shadow(0 0 26px rgba(79, 134, 255, 0.45));
  transition: filter 0.4s ease;
}
.venture:hover .venture__name { filter: drop-shadow(0 0 12px rgba(46, 233, 255, 0.85)) drop-shadow(0 0 34px rgba(176, 108, 255, 0.6)); }
/* Role: gradient text under the company name, brighter and with a soft glow */
.venture__role {
  margin-top: 4px; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ffffff, #e4fcff 55%, #efe6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(46, 233, 255, 0.4));
  transition: filter 0.4s ease;
}
.venture:hover .venture__role { filter: drop-shadow(0 0 9px rgba(46, 233, 255, 0.6)); }
.venture__desc { margin-top: 12px; font-size: 1.02rem; font-weight: 500; line-height: 1.55; color: #fff; }

.venture__facts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.venture__facts li { position: relative; padding-left: 18px; font-size: 0.93rem; font-weight: 500; line-height: 1.5; color: #e2e9fb; }
.venture__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 10px rgba(46, 233, 255, 0.8);
}
.venture__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 6px 18px 6px 6px; border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 48, 0.9), rgba(12, 20, 48, 0.9)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 26px -6px rgba(46, 233, 255, 0.65), 0 10px 30px -14px rgba(79, 134, 255, 0.9);
}
a.venture__badge { transition: transform 0.3s ease, box-shadow 0.3s ease; }
a.venture__badge:hover { transform: translateY(-2px); box-shadow: 0 0 34px -4px rgba(46, 233, 255, 0.85), 0 14px 34px -14px rgba(79, 134, 255, 1); }
.venture__badge img { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.venture__badge span {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; color: #dce6fb;
}
.venture__badge b {
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #8fe9ff 55%, #d2b6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.venture__link { align-self: flex-start; margin-top: auto; padding-top: 20px; font-size: 0.95rem; font-weight: 600; background-position: 0 100%; }

/* Desktop: rows line up across the three cards */
@media (min-width: 1024px) {
  .ventures { grid-template-rows: repeat(6, auto); row-gap: 0; }
  .venture { display: grid; grid-template-rows: subgrid; grid-row: span 6; padding-bottom: 18px; }
  .venture__body { display: contents; }
  .venture__id { margin: 18px 14px 0; }
  .venture__desc { margin: 12px 14px 0; }
  .venture__facts { margin: 14px 14px 0; align-self: start; }
  .venture__link { grid-row: 5; margin: 0 16px 0; padding-top: 18px; align-self: end; justify-self: start; }
  .venture__badge { grid-row: 6; margin: 16px 14px 0; align-self: end; justify-self: start; }
}

/* Tablet: two cards per row, photo on top with the same 4:3 crop as phone and
   desktop, so every device shows the same part of each photo. The third card
   sits centred on the second row. */
@media (min-width: 641px) and (max-width: 1023px) {
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ventures > .venture:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
  .venture { flex-direction: column; }
  .venture__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .venture__body { padding: 20px 12px 14px; }
}
@media (max-width: 640px) {
  .ventures { grid-template-columns: minmax(0, 1fr); }
  .venture { flex-direction: column; }
  .venture__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .venture__body { padding: 20px 12px 14px; }
}

/* 10. Achievements -------------------------------------------------------- */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.counter { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-md); }
.counter__num { filter: drop-shadow(0 0 14px rgba(46, 233, 255, 0.35)); }
.counter__num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(1.6rem, 3.3vw, 2.75rem); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter__label { margin-top: 12px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }

.honours {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
}
.honour { padding: 24px 0; border-top: 1px solid var(--line); }
.honour h3 { font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.25; letter-spacing: -0.02em; }
.honour p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; max-width: 48ch; }

@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .honours { grid-template-columns: 1fr; }
}

/* Achievements bento --------------------------------------------------------- */
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto; gap: 16px;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(176, 108, 255, 0.14), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(46, 233, 255, 0.12), transparent 55%),
    var(--glass);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease;
}
.tile::after { opacity: 1 !important; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -26px rgba(79, 134, 255, 0.95), 0 0 40px -14px rgba(46, 233, 255, 0.6); }
.tile--hero { grid-column: span 2; grid-row: span 2; min-height: 440px; justify-content: flex-end; }
.tile--wide { grid-column: span 2; }

.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.tile--hero .tile__big { font-size: min(6.6rem, 16.5cqi); } /* "Top 100.00%" always fits while counting */
.tile__kicker {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a9bde4;
}
.tile__logo { width: 18px; height: 18px; }
.tile__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad); color: #fff; box-shadow: 0 0 14px -2px rgba(46, 233, 255, 0.7);
}
.tile__icon svg { width: 15px; height: 15px; }
.tile__big {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95;
  font-size: clamp(3.4rem, 7.4vw, 6.6rem); white-space: nowrap; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffffff 15%, #8fefff 55%, #c8a8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(46, 233, 255, 0.45)) drop-shadow(0 0 40px rgba(79, 134, 255, 0.35));
}
.tile__big--sm { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.tile__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.tile__title { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.tile__title--lg {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem); letter-spacing: -0.035em;
  background: linear-gradient(100deg, #ffffff 30%, #9fefff 75%, #d2b6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(46, 233, 255, 0.4));
}
.tile__text { font-size: 0.98rem; line-height: 1.6; color: #d6def2; max-width: 56ch; }
.tile__text strong { color: #fff; font-weight: 700; }
.tile--hero .tile__text { font-size: 1.05rem; max-width: 44ch; }

/* Zoom canvas behind the big tile (fades out behind the text) */
.zoomfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 82%); }

/* Inline links on "Patch" and "OpenAI" */
.xlink {
  position: relative; color: inherit; font-weight: inherit;
  background: linear-gradient(90deg, #2ee9ff, #b06cff) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px; transition: color 0.3s ease, background-size 0.3s ease, text-shadow 0.3s ease;
}
.xlink:hover { color: #9fefff; background-size: 100% 2px; text-shadow: 0 0 12px rgba(46, 233, 255, 0.8); }
.xlink::after {
  content: "↗"; display: inline-block; margin-left: 2px; font-size: 0.75em; opacity: 0; transform: translate(-3px, 2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.xlink:hover::after { opacity: 1; transform: none; }
/* Bold glowing brand/name links: "Gavin", "PatchxOpenAI" */
.pop {
  position: relative; display: inline-block; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffffff 0%, #8fefff 35%, #9db6ff 65%, #d3a8ff 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(46, 233, 255, 0.45));
  transition: background-position 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.35s ease, transform 0.35s ease;
}
.pop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2ee9ff, #b06cff); transform: scaleX(0.25); transform-origin: left; opacity: 0.6;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease;
}
.pop:hover, .pop:focus-visible { background-position: 100% 0; transform: translateY(-1px); filter: drop-shadow(0 0 12px rgba(46, 233, 255, 0.9)) drop-shadow(0 0 26px rgba(176, 108, 255, 0.6)); }
.pop:hover::after, .pop:focus-visible::after { transform: scaleX(1); opacity: 1; }
.pop--name { filter: drop-shadow(0 0 14px rgba(46, 233, 255, 0.6)); }
.duo { white-space: nowrap; }
.duo__x {
  display: inline-block; margin: 0 0.08em; font-weight: 400; font-size: 0.82em; color: #8fefff;
  text-shadow: 0 0 10px rgba(46, 233, 255, 0.9); transform: translateY(-0.04em);
}
.tile__kicker--links { font-size: 0.85rem; color: #dbe6ff; }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--hero { grid-column: span 2; grid-row: auto; min-height: 480px; }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--hero, .tile--wide { grid-column: auto; }
  .tile--hero { min-height: 520px; }
}

/* 11. Press --------------------------------------------------------------- */
.sorter { display: inline-flex; align-items: center; gap: 12px; }
.sorter__label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.sorter__wrap { position: relative; display: inline-flex; }
.sorter__wrap::after { /* chevron */
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid #9fefff; border-bottom: 2px solid #9fefff; transform: rotate(45deg);
}
.sorter__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  min-width: 230px; padding: 11px 44px 11px 18px; border-radius: 999px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 48, 0.88), rgba(12, 20, 48, 0.88)) padding-box,
    linear-gradient(100deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 0 22px -8px rgba(46, 233, 255, 0.6);
  transition: box-shadow 0.3s ease;
}
.sorter__select:hover, .sorter__select:focus-visible { box-shadow: 0 0 28px -4px rgba(46, 233, 255, 0.85); outline: none; }
.sorter__select option, .sorter__select optgroup { background: #0e1630; color: #fff; }
@media (max-width: 640px) { .sorter__select { min-width: 0; } }

.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.press-grid > li { display: flex; }
.press-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: var(--r-md); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.press-card:hover { transform: translateY(-5px); }
.press-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raise); }
.press-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.press-card:hover .press-card__thumb img { transform: scale(1.06); }
.press-card__thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 11, 28, 0.55)); }
/* Cards without a photo: logo on a colour tile */
.press-card__thumb--tile {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(176, 108, 255, 0.55), transparent 60%),
    radial-gradient(100% 100% at 0% 100%, rgba(46, 233, 255, 0.4), transparent 60%),
    linear-gradient(135deg, #12204a, #0c1330);
}
.press-card__thumb--tile::after { display: none; }
.press-card__tile-logo {
  display: flex; align-items: center; justify-content: center;
  min-width: 96px; max-width: 78%; height: 96px; padding: 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 0 40px -6px rgba(46, 233, 255, 0.7), 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.press-card:hover .press-card__tile-logo { transform: scale(1.08) rotate(-3deg); }
.press-card__tile-logo img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.press-card__tile-name {
  padding: 0 20px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; color: #fff;
  text-shadow: 0 0 24px rgba(46, 233, 255, 0.55);
}
/* Show all / fewer */
.press-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.press-more {
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 48, 0.85), rgba(12, 20, 48, 0.85)) padding-box,
    linear-gradient(100deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 0 22px -6px rgba(46, 233, 255, 0.55);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.press-more:hover { transform: translateY(-2px); box-shadow: 0 0 30px -4px rgba(46, 233, 255, 0.85); }
.press-more[hidden] { display: none; }
.press-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
/* Outlet logo: a white tile overlapping the photo's bottom edge */
.press-card__logo {
  position: relative; z-index: 1; align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  min-width: 52px; max-width: 170px; height: 52px; margin: -42px 0 2px; padding: 7px; border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(79, 134, 255, 0.55), 0 10px 26px -8px rgba(0, 0, 0, 0.8);
}
.press-card__logo img { width: auto; height: 100%; max-width: 156px; object-fit: contain; }
.press-grid > li:first-child .press-card__logo { margin-top: 0; min-width: 60px; height: 60px; }
@media (max-width: 640px) { .press-grid > li:first-child .press-card__logo { margin-top: -42px; min-width: 52px; height: 52px; } }
.press-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8rem; }
.press-card__outlet { font-weight: 700; letter-spacing: 0.02em; background: linear-gradient(90deg, #7ff0ff, #c8a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.press-card__date { color: var(--faint); font-variant-numeric: tabular-nums; }
.press-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.015em; }
.press-card__read { margin-top: auto; padding-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--cyan); }
/* First card is featured: wider, photo beside the text */
.press-grid > li:first-child { grid-column: span 2; }
.press-grid > li:first-child .press-card { flex-direction: row; }
.press-grid > li:first-child .press-card__thumb { flex: 0 0 56%; aspect-ratio: auto; min-height: 260px; }
.press-grid > li:first-child .press-card__body { padding: 22px 24px; justify-content: center; }
.press-grid > li:first-child .press-card__title { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }

@media (max-width: 960px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .press-grid { grid-template-columns: 1fr; }
  .press-grid > li:first-child { grid-column: auto; }
  .press-grid > li:first-child .press-card { flex-direction: column; }
  .press-grid > li:first-child .press-card__thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

/* 12. Writing ------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { display: block; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-md); transition: transform 0.4s ease, border-color 0.4s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-card__meta { font-size: 0.85rem; color: var(--muted); }
.post-card__title { margin-top: 14px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; }
.post-card__excerpt { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }
.posts__all { margin-top: 28px; }
@media (max-width: 720px) { .posts { grid-template-columns: 1fr; } }

/* Writing feed ---------------------------------------------------------------- */
.feed-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg__btn { padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: #cfd9f2; transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.seg__btn:hover { background: rgba(255, 255, 255, 0.08); }
.seg__btn.is-active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(79, 134, 255, 0.95); }
.follow-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; color: #fff; background: #0a66c2;
  box-shadow: 0 8px 24px -10px rgba(10, 102, 194, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.follow-btn svg { width: 16px; height: 16px; }
.follow-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(10, 102, 194, 1), 0 0 24px -6px rgba(46, 233, 255, 0.6); }

.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feed__item { display: flex; min-width: 0; }

/* LinkedIn post card: laid out like the real post */
.lpost {
  width: 100%; display: flex; flex-direction: column; padding: 16px 18px 0; border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
}
.lpost:hover { transform: translateY(-5px); box-shadow: 0 24px 54px -26px rgba(79, 134, 255, 0.95), 0 0 34px -14px rgba(46, 233, 255, 0.6); }
.lpost__rp {
  display: flex; align-items: center; gap: 7px; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; color: #9fb0d3;
}
.lpost__rp svg { width: 13px; height: 13px; color: #8fefff; }
.lpost__head { display: flex; align-items: flex-start; gap: 10px; }
.lpost__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: #dfe8ff;
  background: linear-gradient(145deg, #23315e, #141d3d); border: 1px solid rgba(255, 255, 255, 0.14);
}
.lpost__avatar { position: relative; overflow: hidden; }
.lpost__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.lpost__avatar--me { padding: 2px; }
.lpost__avatar--me img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.lpost__avatar--me { color: #fff; background: var(--grad); border: 0; box-shadow: 0 0 18px -4px rgba(46, 233, 255, 0.85); }
.lpost__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.32; }
.lpost__who b { font-size: 0.95rem; color: #fff; }
.lpost__who small { font-size: 0.76rem; color: #9fb0d3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpost__in { flex: none; width: 22px; height: 22px; }
.lpost__text {
  margin-top: 12px; white-space: pre-line; font-size: 0.93rem; line-height: 1.55; color: #e3e9f8;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.lpost--text .lpost__text { -webkit-line-clamp: 11; }
.lpost__see { align-self: flex-end; margin-top: 2px; font-size: 0.84rem; font-weight: 600; color: #9fb0d3; transition: color 0.3s ease; }
.lpost:hover .lpost__see { color: #fff; }
.lpost__media { position: relative; display: block; margin: 12px -18px 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raise); }
.lpost__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.lpost:hover .lpost__media img { transform: scale(1.04); }
.lpost__count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(6, 11, 28, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lpost__foot {
  margin-top: auto; padding: 12px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.82rem; color: #b8c4e0;
}
.lpost__see + .lpost__foot { border-top: 1px solid var(--line); }
.lpost__stats { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lpost__reacts { display: inline-flex; }
.lpost__reacts i { width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #101936; margin-right: -5px; }
.lpost__reacts i:last-child { margin-right: 2px; }
.lpost__reacts svg { width: 11px; height: 11px; }
.r-like { background: #378fe9; }
.r-clap { background: #44a24d; }
.r-love { background: #df704d; }
.lpost__dot { opacity: 0.6; }
.lpost__go { font-weight: 700; color: #8fefff; white-space: nowrap; }
.lpost__go::after { content: " ↗"; display: inline-block; transition: transform 0.3s ease; }
.lpost:hover .lpost__go::after { transform: translate(2px, -2px); }
.fcard {
  width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
}
.fcard:hover { transform: translateY(-5px); box-shadow: 0 24px 54px -26px rgba(79, 134, 255, 0.95), 0 0 34px -14px rgba(46, 233, 255, 0.6); }
.fcard__head { display: flex; align-items: center; gap: 11px; }
.fcard__text {
  font-size: 0.95rem; line-height: 1.6; color: #dbe3f6;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.fcard__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcard__go { font-size: 0.85rem; font-weight: 700; color: #8fefff; white-space: nowrap; }
.fcard__go::after { content: " ↗"; display: inline-block; transition: transform 0.3s ease; }
.fcard:hover .fcard__go::after { transform: translate(2px, -2px); }
.fcard--blog .fcard__go::after { content: " →"; }
.fcard__tag { padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--grad); }
.fcard__date { margin-left: auto; font-size: 0.8rem; color: #9fb0d3; }
.fcard__title { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.025em; color: #fff; }

@media (max-width: 1023px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feed { grid-template-columns: minmax(0, 1fr); } }

/* 13. Contact ------------------------------------------------------------- */
.contact {
  padding: clamp(28px, 6vw, 80px); overflow: hidden;
  background:
    radial-gradient(60% 90% at 95% 110%, rgba(79, 134, 255, 0.42), rgba(176, 108, 255, 0.16) 45%, transparent 70%),
    var(--glass);
}
.contact__title { filter: drop-shadow(0 0 22px rgba(79, 134, 255, 0.4)); }
.contact__head { max-width: 760px; }
.contact__title { font-size: clamp(2.8rem, 7.5vw, 5.8rem); letter-spacing: -0.045em; }
.contact__lead { margin-top: 18px; max-width: 62ch; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; color: #c9d3ea; }
.contact__lead strong { color: #fff; font-weight: 600; }
/* "Happy to help with" rotator */
.helpwith { margin-top: 22px; max-width: 760px; container-type: inline-size; }
.helpwith__intro { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9fb4dc; }
.helpwith__fallback { margin-top: 10px; font-size: 1.08rem; line-height: 1.6; color: #dfe7fb; }
.helpwith.is-live .helpwith__fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.helpwith__row { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); margin-top: 10px; }
.helpwith__stage {
  position: relative; flex: none; max-width: 100%; height: 1.25em; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2;
  font-size: min(clamp(1.9rem, 4.2vw, 3.3rem), 6.4cqi);
}
/* Arrow buttons either side of the phrase */
.helpwith__arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(34px, 3.4vw, 44px); height: clamp(34px, 3.4vw, 44px); border-radius: 50%; color: #fff; cursor: pointer;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(12, 20, 48, 0.85), rgba(12, 20, 48, 0.85)) padding-box,
    linear-gradient(135deg, #2ee9ff, #4f86ff 50%, #b06cff) border-box;
  box-shadow: 0 0 18px -6px rgba(46, 233, 255, 0.7);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.helpwith__arrow svg { width: 45%; height: 45%; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.helpwith__arrow--prev svg { transform: scaleX(-1); }
.helpwith__arrow:hover {
  background: linear-gradient(135deg, #1fb8ff, #4f86ff 50%, #9a5cff) padding-box, linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.4)) border-box;
  box-shadow: 0 0 26px -2px rgba(46, 233, 255, 0.9); transform: scale(1.08);
}
.helpwith__arrow--next:hover svg { transform: translateX(2px); }
.helpwith__arrow--prev:hover svg { transform: scaleX(-1) translateX(2px); }
.helpwith__arrow:active { transform: scale(0.94); }
@media (max-width: 560px) {
  .helpwith__row { flex-wrap: wrap; row-gap: 14px; }
  .helpwith__stage { order: -1; font-size: 1.9rem; }
  .helpwith__arrow { width: 38px; height: 38px; }
}
.helpwith__phrase { position: absolute; left: 0; top: 0; white-space: nowrap; }
.helpwith__ch {
  display: inline-block; white-space: pre; color: var(--c, #fff);
  opacity: 0; transform: translateY(70%);
  filter: blur(8px) drop-shadow(0 0 16px rgba(46, 233, 255, 0));
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.6s ease;
  transition-delay: calc(var(--i) * 28ms);
}
.helpwith__phrase.is-in .helpwith__ch { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 16px rgba(46, 233, 255, 0.45)); }
.helpwith__phrase.is-out .helpwith__ch {
  opacity: 0; transform: translateY(-60%); filter: blur(8px) drop-shadow(0 0 16px rgba(46, 233, 255, 0));
  transition-duration: 0.45s; transition-delay: calc(var(--i) * 12ms);
}
.helpwith__bars { display: flex; gap: 6px; margin-top: 16px; max-width: 460px; }
.helpwith__bar {
  position: relative; flex: 1; height: 4px; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); padding: 0; border: 0;
}
.helpwith__bar::before { content: ""; position: absolute; inset: -8px 0; } /* bigger click target */
.helpwith__bar span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #2ee9ff, #b06cff); box-shadow: 0 0 10px rgba(46, 233, 255, 0.8);
}
.helpwith__bar.is-done span { transform: scaleX(1); }
.helpwith__bar.is-active span { animation: hw-fill var(--dur, 2.8s) linear forwards; }
@keyframes hw-fill { to { transform: scaleX(1); } }

/* Contact tiles: email is the big gradient one, the rest are glass */
.ctiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.ctiles__email { grid-column: span 2; }
.ctiles > li { display: flex; }
.ctile {
  position: relative; width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 52px 18px 18px; border-radius: var(--r-md); text-align: left;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(14, 22, 52, 0.78), rgba(14, 22, 52, 0.78)) padding-box,
    linear-gradient(135deg, rgba(46, 233, 255, 0.6), rgba(79, 134, 255, 0.2) 45%, rgba(176, 108, 255, 0.55)) border-box;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
}
.ctile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(79, 134, 255, 0.9), 0 0 30px -10px rgba(46, 233, 255, 0.7); }
.ctile__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgba(79, 134, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.ctile:hover .ctile__icon { transform: scale(1.08) rotate(-6deg); }
.ctile__icon .icon { width: 20px; height: 20px; }
.ctile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctile__hint { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb4dc; }
.ctile__value { font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.16rem); font-weight: 600; letter-spacing: -0.01em; color: #fff; overflow-wrap: anywhere; }
.ctile__arrow {
  position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; color: #9fb4dc;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), color 0.3s ease;
}
.ctile:hover .ctile__arrow { transform: translate(3px, -3px); color: #fff; }
/* Email tile */
.ctile--primary {
  padding-block: 24px;
  background:
    linear-gradient(100deg, #1fb8ff, #4f86ff 50%, #9a5cff) padding-box,
    linear-gradient(100deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2)) border-box;
  box-shadow: 0 16px 40px -18px rgba(40, 90, 255, 1);
  animation: pulse-primary 3.2s ease-in-out infinite;
}
.ctile--primary:hover { animation: none; box-shadow: 0 20px 50px -16px rgba(40, 90, 255, 1), 0 0 36px -8px rgba(46, 233, 255, 0.9); }
.ctile--primary .ctile__icon { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.ctile--primary .ctile__hint { color: rgba(255, 255, 255, 0.8); }
.ctile--primary .ctile__value { font-size: clamp(1.15rem, 2vw, 1.55rem); text-shadow: 0 1px 2px rgba(0, 20, 80, 0.3); }
.ctile--primary .ctile__arrow { color: #fff; }

@media (max-width: 860px) {
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ctiles { grid-template-columns: 1fr; }
  .ctiles__email { grid-column: auto; }
}

/* 14. Footer -------------------------------------------------------------- */
.footer { padding-block: 36px 44px; color: var(--muted); font-size: 0.9rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer a:hover { color: var(--ink); }

/* 15. Blog pages ---------------------------------------------------------- */
.page-top { padding-top: calc(var(--nav-h) + clamp(70px, 12vw, 130px)); }
.article { max-width: 720px; }
.article__back { color: var(--muted); font-size: 0.92rem; }
.article__back:hover { color: var(--ink); }
.article__title { margin-top: 22px; font-size: clamp(2.3rem, 6vw, 4rem); }
.article__meta { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.article__body { margin-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(60px, 10vw, 120px); }
.article__body p, .article__body ul, .article__body ol, .article__body blockquote { margin: 0 0 1.35em; font-size: 1.12rem; line-height: 1.75; color: #cdd6ea; }
.article__body h2 { font-size: 1.7rem; margin: 2em 0 0.6em; line-height: 1.15; }
.article__body ul { list-style: disc; padding-left: 1.3em; }
.article__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote { padding-left: 20px; border-left: 2px solid var(--violet); color: var(--ink); }
.placeholder-note {
  padding: 14px 18px; border-radius: var(--r-sm); border: 1px dashed rgba(63, 224, 255, 0.5);
  color: var(--cyan); font-size: 0.92rem; margin-bottom: 28px;
}
.blog-list { display: grid; gap: 16px; max-width: 820px; padding-bottom: clamp(60px, 10vw, 120px); }

/* 16. Motion helpers (used by main.js) ------------------------------------ */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.06em 0.14em; margin: -0.1em -0.06em -0.14em; }
.swi { display: inline-block; will-change: transform; }
.sc { display: inline-block; }
[data-magnetic] { will-change: transform; }

/* Lenis smooth scroll (recommended base styles) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* 17. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none; }
  .venture__media img { transform: none; }
}
.tile__kicker--links .duo { font-size: 1.25rem; text-transform: none; letter-spacing: -0.01em; }
.interest__project { font-style: normal; font-weight: 600; color: #fff; }

/* PatchxOpenAI: extra pop — brighter gradient, living shimmer, stronger glow, soft halo */
.duo { position: relative; display: inline-block; isolation: isolate; }
.duo::before {
  content: ""; position: absolute; inset: -0.25em -0.45em; z-index: -1; border-radius: 0.6em; pointer-events: none;
  background: radial-gradient(60% 95% at 50% 50%, rgba(46, 233, 255, 0.34), rgba(176, 108, 255, 0.2) 55%, transparent 82%);
  filter: blur(6px); animation: duo-halo 3.6s ease-in-out infinite alternate;
}
.duo .pop {
  font-weight: 900; font-size: 1.06em;
  background-image: linear-gradient(100deg, #ffffff 0%, #7ff0ff 22%, #ffffff 40%, #a9bcff 60%, #e2b3ff 80%, #ffffff 100%);
  background-size: 250% 100%;
  filter: drop-shadow(0 0 8px rgba(46, 233, 255, 0.75)) drop-shadow(0 0 22px rgba(124, 140, 255, 0.45));
  animation: duo-shine 5s linear infinite;
}
.duo .pop + .duo__x + .sr-only + .pop { animation-delay: -2.5s; }
.duo .pop:hover, .duo .pop:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 0 12px rgba(46, 233, 255, 1)) drop-shadow(0 0 30px rgba(176, 108, 255, 0.8));
}
.duo__x { font-weight: 600; font-size: 0.9em; color: #bff8ff; margin: 0 0.1em; animation: duo-x 2.4s ease-in-out infinite; }
@keyframes duo-shine { from { background-position: 0% 0; } to { background-position: -250% 0; } }
@keyframes duo-halo { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes duo-x { 0%, 100% { text-shadow: 0 0 8px rgba(46, 233, 255, 0.8); } 50% { text-shadow: 0 0 16px rgba(46, 233, 255, 1), 0 0 30px rgba(176, 108, 255, 0.9); } }
@media (prefers-reduced-motion: reduce) { .duo::before, .duo .pop, .duo__x { animation: none; } }
/* Photo stretches to fill any spare height so footers line up with no gap */
.lpost__media { flex: 1 0 auto; }

/* PatchxOpenAI: crisper, brighter letters; glow pulled back so it doesn't swamp the text */
.duo::before { background: radial-gradient(60% 95% at 50% 50%, rgba(46, 233, 255, 0.14), rgba(176, 108, 255, 0.08) 55%, transparent 82%); }
.duo .pop {
  background-image: linear-gradient(100deg, #ffffff 0%, #c9fbff 25%, #ffffff 45%, #dfe6ff 65%, #f1dcff 85%, #ffffff 100%);
  filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 5px rgba(46, 233, 255, 0.45));
}
.duo .pop:hover, .duo .pop:focus-visible {
  filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 8px rgba(46, 233, 255, 0.7)) drop-shadow(0 0 18px rgba(176, 108, 255, 0.45));
}
.duo__x { color: #8fefff; }
@keyframes duo-x { 0%, 100% { text-shadow: 0 0 4px rgba(46, 233, 255, 0.6); } 50% { text-shadow: 0 0 9px rgba(46, 233, 255, 0.9); } }

/* Phones and tablets: the whole landing, photo included, fits on the first
   screen. The photo takes whatever height is left (never under 200px). */
@media (max-width: 900px) {
  .hero { align-items: stretch; padding-top: calc(var(--nav-h) + 30px); padding-bottom: max(20px, 3svh); }
  .hero__content { grid-template-columns: 1fr; grid-template-rows: auto minmax(180px, 1fr); gap: clamp(20px, 3svh, 32px); }
  .hero__frame { min-height: 0; }
  .hero__photo { aspect-ratio: auto; min-height: 0; height: 100%; }
  .hero__tagline { margin-top: clamp(18px, 3svh, 36px); }
  .hero__actions { margin-top: clamp(22px, 3.6svh, 40px); }
}
/* iPad portrait: bigger name, a wide photo at its natural shape underneath,
   and the whole group centred on the first screen */
@media (min-width: 640px) and (max-width: 900px) and (orientation: portrait) {
  .hero { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 34px; }
  .hero__content { grid-template-rows: auto minmax(180px, min(54vw, 100svh - 715px)); align-content: center; gap: clamp(26px, 3.4svh, 40px); }
  .hero__name { font-size: min(15.5vw, 11svh, 25cqi); }
  .hero__tagline { max-width: 34ch; font-size: 1.6rem; }
}
/* iPads wide enough for the side-by-side landing (photo on the right):
   everything a touch bigger */
@media (min-width: 901px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .hero__name { font-size: min(11.2vw, 10.9rem, 25cqi); }
  .hero__tagline { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
  .hero__where { font-size: 1.08rem; }
  .hero__place .hero__map { width: 50px; }
  .hero__actions .btn { min-height: 60px; padding: 0 34px; font-size: 1.1rem; }
  .hero__content .hero__frame { width: clamp(430px, 43.5vw, 660px); }
}

/* PatchxOpenAI: pure white, heavier letters; colour lives only in the glow */
.duo .pop {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none;
  color: #fff; font-weight: 900; -webkit-text-stroke: 0.35px #fff;
  filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 7px rgba(46, 233, 255, 0.7)) drop-shadow(0 0 18px rgba(124, 140, 255, 0.45));
}
.duo .pop:hover, .duo .pop:focus-visible {
  filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 10px rgba(46, 233, 255, 0.95)) drop-shadow(0 0 24px rgba(176, 108, 255, 0.6));
}
.duo__x { color: #fff; font-weight: 700; }

/* Venture cards: key points and logos stand out more */
.venture__facts { gap: 8px; }
.venture__facts li { padding-left: 22px; font-size: 0.94rem; font-weight: 500; color: #f1f5ff; }
/* Small glowing diamond marker */
.venture__facts li::before {
  left: 2px; top: 0.56em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, #9ff6ff, #4f86ff 55%, #b06cff);
  box-shadow: 0 0 8px rgba(46, 233, 255, 0.75);
}
.venture__logo {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 4px rgba(46, 233, 255, 0.14), 0 0 22px -2px rgba(46, 233, 255, 0.7);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.venture:hover .venture__logo { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 4px rgba(46, 233, 255, 0.22), 0 0 30px 0 rgba(46, 233, 255, 0.85); }
.venture__badge img { box-shadow: 0 0 0 3px rgba(46, 233, 255, 0.18), 0 0 16px rgba(46, 233, 255, 0.75); }

/* Tagline second line: own line, bright white with a soft glow */
.hero__tagline .hero__tagline-pop {
  display: block; margin-top: 4px; font-weight: 700; color: #fff; letter-spacing: -0.015em;
  text-shadow: 0 0 18px rgba(140, 220, 255, 0.55), 0 0 36px rgba(79, 134, 255, 0.35), 0 1px 2px rgba(6, 11, 28, 0.9);
}

/* PatchxOpenAI: glow dimmed a touch */
.duo::before { opacity: 0.55; animation: none; }
.duo .pop { filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 5px rgba(46, 233, 255, 0.45)) drop-shadow(0 0 13px rgba(124, 140, 255, 0.28)); }
.duo .pop:hover, .duo .pop:focus-visible { filter: drop-shadow(0 1px 0 rgba(4, 8, 24, 0.9)) drop-shadow(0 0 8px rgba(46, 233, 255, 0.7)) drop-shadow(0 0 18px rgba(176, 108, 255, 0.4)); }
@keyframes duo-x { 0%, 100% { text-shadow: 0 0 3px rgba(46, 233, 255, 0.4); } 50% { text-shadow: 0 0 6px rgba(46, 233, 255, 0.65); } }

/* Venture key points: clean list, each with a small glass check badge */
.venture__facts { gap: 10px; }
.venture__facts li {
  padding: 0 0 0 30px; border-radius: 0; background: none; box-shadow: none;
  font-size: 0.94rem; font-weight: 500; line-height: 1.5; color: #fff;
}
.venture__facts li::before {
  left: 0; top: 0.12em; width: 20px; height: 20px; border-radius: 7px; transform: none;
  background:
    linear-gradient(rgba(14, 22, 52, 0.9), rgba(14, 22, 52, 0.9)) padding-box,
    linear-gradient(135deg, #2ee9ff, #4f86ff 55%, #b06cff) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 12px -3px rgba(46, 233, 255, 0.7);
}
.venture__facts li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.12em + 5px); width: 10px; height: 10px;
  background: linear-gradient(135deg, #9ff6ff, #c9b0ff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.6 8.6 2.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.6 8.6 2.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* PatchxOpenAI: simple and clean. Bold white, a faint glow, no extras */
.duo::before { display: none; }
.duo .pop { font-size: 1em; filter: drop-shadow(0 0 6px rgba(46, 233, 255, 0.35)); transform: none; }
.duo .pop::after { display: none; }
.duo .pop:hover, .duo .pop:focus-visible { transform: none; filter: drop-shadow(0 0 8px rgba(46, 233, 255, 0.6)); }
.duo__x { animation: none; text-shadow: none; color: rgba(255, 255, 255, 0.7); font-weight: 500; margin: 0 0.06em; transform: none; }
/* Longer tile titles: a step smaller so they sit on 2–3 lines */
.tile__title--lg.tile__title--long { font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1.08; }

/* Patch × OpenAI tile: the two real logos side by side */
.tile__logos { display: flex; align-items: center; gap: 14px; }
.tile__logos a { display: inline-flex; opacity: 0.95; transition: opacity 0.3s ease, filter 0.3s ease; filter: drop-shadow(0 0 6px rgba(46, 233, 255, 0.3)); }
.tile__logos a:hover { opacity: 1; filter: drop-shadow(0 0 9px rgba(46, 233, 255, 0.6)); }
.tile__logos img { height: 28px; width: auto; }
.tile__logos-x { font-size: 1.1rem; font-weight: 400; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 640px) { .tile__logos img { height: 24px; } .tile__logos { gap: 11px; } }
.tile__logos img[alt="OpenAI"] { height: 33px; }
@media (max-width: 640px) { .tile__logos img[alt="OpenAI"] { height: 28px; } }
/* Key words and figures in achievement descriptions */
.tile__text strong { color: #fff; font-weight: 700; text-shadow: 0 0 12px rgba(120, 210, 255, 0.35); }

/* LinkedIn card v2: whole card opens the post; "see more" expands in place;
   multi-photo posts get arrows, dots and swipe */
.lpost { position: relative; }
.lpost__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; touch-action: pan-y; }
.lpost__link:focus-visible { outline: 2px solid #7ff0ff; outline-offset: 3px; }
.feed__item.is-relaxed { align-self: start; }
.feed__item.is-relaxed .lpost__media { flex: none; }
.lpost__text { overflow: hidden; }
.lpost.is-open .lpost__text { -webkit-line-clamp: unset; display: block; }
.lpost__see {
  position: relative; z-index: 2; align-self: flex-end; margin-top: 2px; padding: 2px 0;
  font: inherit; font-size: 0.84rem; font-weight: 600; color: #9fb0d3; background: none; border: 0; cursor: pointer;
  transition: color 0.3s ease;
}
.lpost__see:hover, .lpost__see:focus-visible { color: #fff; }
.lpost__see[hidden] { display: none; }
.lpost__media { position: relative; }
.lpost__track { position: absolute; inset: 0; display: flex; transition: transform 0.55s cubic-bezier(.2, .8, .2, 1); }
.lpost__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.lpost:hover .lpost__media img { transform: none; }
.lpost__nav {
  position: absolute; z-index: 2; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
  background: rgba(8, 14, 36, 0.55); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6), 0 0 14px -4px rgba(46, 233, 255, 0.5);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.lpost__nav svg { width: 16px; height: 16px; }
.lpost__nav--prev { left: 10px; } .lpost__nav--prev svg { transform: rotate(180deg); }
.lpost__nav--next { right: 10px; }
.lpost:hover .lpost__nav, .lpost__nav:focus-visible { opacity: 1; }
.lpost__nav:hover { background: rgba(46, 233, 255, 0.28); transform: scale(1.06); }
.lpost__nav:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .lpost__nav { opacity: 1; } }
.lpost__count { top: 10px; bottom: auto; right: 10px; z-index: 2; font-variant-numeric: tabular-nums; }
.lpost__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.lpost__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); transition: width 0.35s ease, background 0.35s ease; }
.lpost__dots i.is-on { width: 18px; background: #fff; box-shadow: 0 0 8px rgba(46, 233, 255, 0.8); }
/* Photo arrows on LinkedIn cards: always visible */
.lpost__nav { opacity: 0.9; }
.lpost__nav:hover, .lpost__nav:focus-visible { opacity: 1; }
