/* =========================================================
   Nathan Lao Studio — shared styles
   Colours: change them here and every page updates.
   ========================================================= */
:root {
  --ink: #101820;        /* darkest background */
  --maroon: #354B60;
  --orange: #7394AC;
  --peach: #B8D0DE;
  --cream: #F0F5F7;      /* main text */
  --teal: #2F6F6A;
  --teal-light: #8DAEC4; /* small labels */
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  color: var(--cream);
  font-family: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cream); }
/* No solid blue flash when tapping links/buttons on phones (the glass animations give feedback instead) */
a, button, [role="tab"] { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

/* ---------- Page backgrounds (stay put while you scroll) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Slate blue & silver — each page lights the room from a different side */
.bg-home {        /* soft light pouring in from the lower left, like the reference */
  background:
    radial-gradient(32% 38% at 0% 92%, rgba(240,245,247,0.30) 0%, rgba(240,245,247,0) 100%),
    radial-gradient(45% 55% at 8% 60%, rgba(184,208,222,0.32) 0%, rgba(184,208,222,0) 100%),
    linear-gradient(115deg, #6d8ea6 0%, #354B60 28%, #1c2a37 52%, #121c25 74%, #101820 100%);
}
.bg-about {       /* light from the upper right corner */
  background:
    radial-gradient(38% 42% at 100% 0%, rgba(184,208,222,0.30) 0%, rgba(184,208,222,0) 100%),
    radial-gradient(60% 65% at 96% 8%, rgba(115,148,172,0.45) 0%, rgba(115,148,172,0) 100%),
    linear-gradient(205deg, #2b3e51 0%, #1a2632 35%, #121b24 65%, #101820 100%);
}
.bg-portfolio {   /* calm dusk: a silver horizon glowing along the bottom */
  background:
    radial-gradient(50% 30% at 22% 100%, rgba(184,208,222,0.30) 0%, rgba(184,208,222,0) 100%),
    radial-gradient(55% 32% at 82% 100%, rgba(115,148,172,0.35) 0%, rgba(115,148,172,0) 100%),
    linear-gradient(180deg, #0d141b 0%, #101820 38%, #1a2734 66%, #2c3f52 88%, #3a5268 100%);
}
.bg-brands {      /* one soft beam of light crossing diagonally */
  background:
    radial-gradient(70% 40% at 70% 70%, rgba(115,148,172,0.22) 0%, rgba(115,148,172,0) 100%),
    linear-gradient(62deg, #101820 0%, #15202b 28%, #2d4154 48%, #3d566d 54%, #22323f 66%, #121b24 84%, #101820 100%);
}
.bg-contact {     /* glow from the right, cool shadow pooling bottom left */
  background:
    radial-gradient(45% 55% at 100% 45%, rgba(184,208,222,0.22) 0%, rgba(184,208,222,0) 100%),
    radial-gradient(65% 75% at 100% 50%, rgba(115,148,172,0.38) 0%, rgba(115,148,172,0) 100%),
    radial-gradient(60% 45% at 0% 100%, rgba(53,75,96,0.55) 0%, rgba(53,75,96,0) 100%),
    linear-gradient(180deg, #101820 0%, #141e28 55%, #111a22 100%);
}

/* ---------- Morphing glow shapes (they flow into a new arrangement on every page) ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; left: 0; top: 0; width: 50vmax; height: 40vmax; border-radius: 50%;
  opacity: .55; transform-origin: 0 0; will-change: transform, opacity;
}
.blobs.moving .blob {
  transition: transform 2.2s cubic-bezier(.45, 0, .2, 1), opacity 2.2s ease;
}
/* the inner layer slowly "breathes" and changes shape while you're on a page */
.blob i { position: absolute; inset: 0; border-radius: 50%; will-change: transform; animation: blobBreathe 18s ease-in-out infinite alternate; }
.blob.b2 i { animation-duration: 22s; animation-delay: -6s; }
.blob.b3 i { animation-duration: 26s; animation-delay: -12s; }
.blob.b1 i { background: radial-gradient(closest-side, rgba(255,170,115,0.80) 0%, rgba(241,105,65,0.55) 35%, rgba(241,105,65,0.18) 70%, rgba(241,105,65,0) 100%); }
.blob.b2 i { background: radial-gradient(closest-side, rgba(184,208,222,0.70) 0%, rgba(115,148,172,0.48) 38%, rgba(115,148,172,0.15) 72%, rgba(115,148,172,0) 100%); }
.blob.b3 i { background: radial-gradient(closest-side, rgba(115,148,172,0.55) 0%, rgba(53,75,96,0.55) 40%, rgba(53,75,96,0.18) 74%, rgba(53,75,96,0) 100%); }
@keyframes blobBreathe {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(10deg) scale(1.06); }
  100% { transform: rotate(-8deg) scale(.97); }
}
@keyframes blobDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(5vw, -4vh) rotate(12deg) scale(1.05); }
  100% { transform: translate(-4vw, 5vh) rotate(-6deg) scale(.96); }
}
@keyframes blobSwirl {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(28deg) scale(1.08); }
  100% { transform: rotate(52deg) scale(.98); }
}
@keyframes blobPulse {
  0%   { transform: scale(.9); opacity: .75; }
  100% { transform: scale(1.14); opacity: 1; }
}
/* a different mix of movement on every page */
.p-home .b1 i      { animation: blobDrift 20s ease-in-out infinite alternate; }
.p-home .b2 i      { animation: blobBreathe 24s ease-in-out infinite alternate; }
.p-home .b3 i      { animation: blobSwirl 30s ease-in-out infinite alternate; }
.p-about .b1 i     { animation: blobSwirl 26s ease-in-out infinite alternate; }
.p-about .b2 i     { animation: blobDrift 18s ease-in-out infinite alternate; }
.p-about .b3 i     { animation: blobPulse 12s ease-in-out infinite alternate; }
.p-portfolio .b1 i { animation: blobPulse 14s ease-in-out infinite alternate; }
.p-portfolio .b2 i { animation: blobSwirl 28s ease-in-out infinite alternate; }
.p-portfolio .b3 i { animation: blobDrift 22s ease-in-out infinite alternate; }
.p-contact .b1 i   { animation: blobBreathe 18s ease-in-out infinite alternate; }
.p-contact .b2 i   { animation: blobPulse 13s ease-in-out infinite alternate; }
.p-contact .b3 i   { animation: blobDrift 26s ease-in-out infinite alternate; }
.p-brands .b1 i    { animation: blobDrift 21s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .blobs.moving .blob { transition: none; }
  .blob i, [class*="p-"] .blob i { animation: none !important; }
  .blob i { animation: none; }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 64px 64px 96px;
  display: flex; flex-direction: column; gap: 28px;
}
.brand { align-self: flex-start; font-size: 16px; font-weight: 600; text-decoration: none; }
.brand span { font-weight: 400; color: var(--peach); }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); }
.title { margin: 12px 0 0; font-size: clamp(44px, 7vw, 104px); line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; }
.heading-block { margin-top: 32px; }
.lead { margin: 8px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: #D5E2EA; }

.navrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Liquid page buttons ----------
   The buttons' glass is drawn by one shared layer with a "goo" filter, so shapes melt together
   where they meet. The buttons on top just hold the text. */
.nav { position: relative; isolation: isolate; }
.nav-goo { position: absolute; inset: -24px; z-index: 0; pointer-events: none;
  filter: url(#nav-goo) drop-shadow(0 10px 14px rgba(0,0,0,0.35)); }
.g-shape { position: absolute; border-radius: 999px; background: linear-gradient(180deg, #ffffff 0%, #e4ebef 100%); }
.nav-glow { position: absolute; z-index: 1; pointer-events: none; border-radius: 999px;
  /* feathered: bright in the middle, fading softly to nothing at the edges */
  background: radial-gradient(closest-side, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.06) 80%, rgba(255,255,255,0) 100%); }
.nav.has-goo .pill { position: relative; z-index: 2; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.nav.has-goo .pill:hover { transform: none; filter: brightness(1.2); }

/* ---------- Glass pills (teal) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  text-decoration: none; font: inherit; font-size: 15px; font-weight: 500; color: #F5F9FB;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.09) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(255,255,255,0.18), inset 0 10px 18px -12px rgba(255,255,255,0.32), 0 10px 24px -14px rgba(0,0,0,0.6);
  cursor: pointer; transition: filter .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { filter: brightness(1.15); transform: translateY(-1px); }
/* iPhone-style press: squish while held, then pop back */
.pill:active { transform: scale(.93); transition-duration: .08s; }
.pill.pop { animation: pillPop .34s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pillPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(.9); }
  65%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pill.pop { animation: none; }
  .pill:active { transform: none; }
}
.pill.active {
  font-weight: 600; color: #fff;
  border-color: rgba(255,255,255,0.50);
  background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.14) 55%, rgba(255,255,255,0.22) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 -3px 8px -3px rgba(0,0,0,0.25), inset 0 12px 20px -12px rgba(255,255,255,0.5), 0 12px 28px -12px rgba(0,0,0,0.55);
}
.pill.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.pill .num {
  font-size: 12px; color: rgba(245,249,251,0.65);
}
.pill.active .num { color: inherit; }
.pill.small { min-height: 44px; padding: 0 18px; }
.pill svg { flex: none; }

/* Orange glass pills (Contact cards only) */
.pill.orange {
  /* same clear glass as the other pills */
}
.pill.orange.active {
  color: #fff;
  border-color: rgba(255,255,255,0.50);
  background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.14) 55%, rgba(255,255,255,0.22) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 -3px 8px -3px rgba(0,0,0,0.25), inset 0 12px 20px -12px rgba(255,255,255,0.5), 0 12px 28px -12px rgba(0,0,0,0.55);
}

/* Portfolio category tabs */
.tabs {
  position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.07) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.40), inset 0 -1px 0 rgba(255,255,255,0.12), 0 10px 24px -14px rgba(0,0,0,0.6);
}
.tabs { position: relative; max-width: 100%; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; flex: none; }
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--cream);
  cursor: pointer; transition: color .3s ease;
}
.tab:hover { color: #fff; }
.tab.active {
  color: #fff;
}

/* The glass highlight that slides between tabs (like an iPhone switch) */
.tab-indicator {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  border-radius: 999px; pointer-events: none; z-index: 0; border: 1px solid rgba(255,255,255,0.50);
  background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.14) 55%, rgba(255,255,255,0.22) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 -3px 8px -3px rgba(0,0,0,0.25), inset 0 12px 20px -12px rgba(255,255,255,0.5), 0 8px 18px -10px rgba(0,0,0,0.5);
  transition: transform .5s cubic-bezier(.34, 1.36, .64, 1), width .5s cubic-bezier(.34, 1.36, .64, 1);
}
.tab-indicator.no-anim { transition: none; }

/* Project grids fade up when you switch tabs */
.grid[hidden] { display: none; }
.grid.enter > .card { animation: cardIn .5s cubic-bezier(.2, .7, .2, 1) both; }
.grid.enter > .card:nth-child(2) { animation-delay: .04s; }
.grid.enter > .card:nth-child(3) { animation-delay: .08s; }
.grid.enter > .card:nth-child(4) { animation-delay: .12s; }
.grid.enter > .card:nth-child(5) { animation-delay: .16s; }
.grid.enter > .card:nth-child(n+6) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tab-indicator { transition: none; }
  .grid.enter > .card { animation: none; }
}

/* ---------- Solid panels (About, Contact, Brands) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.panel { border-radius: 24px; background: var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.panel h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--teal-light); }
.panel .big { margin: 0; font-size: 22px; line-height: 1.5; }
.panel .muted { margin: 0; font-size: 17px; line-height: 1.6; color: #B8C9D4; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips .pill { min-height: 40px; padding: 0 18px; cursor: default; }
.chips .pill:hover { transform: none; filter: none; }

.photo {
  flex: 1 1 320px; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: var(--maroon); display: flex; align-items: center; justify-content: center;
  font-size: 15px; letter-spacing: 0.08em;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Glass project cards ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.card {
  flex: 1 1 340px; min-width: 0; padding: 10px; border-radius: 26px;
  display: block; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,0.20);
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.06) 42%, rgba(255,255,255,0) 54%),
              linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.03) 24%, rgba(16,24,32,0.34) 62%, rgba(16,24,32,0.48) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.12), inset 0 14px 24px -18px rgba(255,255,255,0.25), 0 28px 50px -28px rgba(0,0,0,0.75);
  transition: transform .25s ease;
}
a.card:hover { transform: translateY(-3px); }
.thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 17px; overflow: hidden;
  background: rgba(16,24,32,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em;
}
.thumb.wide, .thumb.h { aspect-ratio: 16 / 9; }
.thumb.v { aspect-ratio: 9 / 16; }

/* Video rows: tall reels and wide videos share a row at the same height,
   each keeping its own shape (nothing gets squished or cropped) */
.grid > .card.is-v { flex: 9 1 166px; }      /* 9:16 + the card's 22px frame */
.grid > .card.is-h { flex: 28.44 1 477px; }  /* 16:9 + the card's 22px frame */

/* ---------- Videos that play inside their card ---------- */
.thumb.player { cursor: pointer; }
.thumb video, .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.ph-label { position: relative; z-index: 1; margin-top: 96px; }

/* Clear-glass play button */
.glass-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0 0 0 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.38);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.12) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.65), inset 0 -10px 18px -10px rgba(255,255,255,0.22),
              inset 0 0 0 1px rgba(255,255,255,0.06), 0 12px 30px -10px rgba(0,0,0,0.55);
  -webkit-backdrop-filter: saturate(1.5) brightness(1.12); backdrop-filter: saturate(1.5) brightness(1.12);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.glass-play svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.glass-play:hover { transform: scale(1.07); }
.glass-play:active { transform: scale(.88); transition-duration: .08s; }
.glass-play:disabled { cursor: default; opacity: .7; }
.glass-play:disabled:hover, .glass-play:disabled:active { transform: none; }

/* Press → squish → swell like a bubble → dissolve as the video starts */
.glass-play.launch { animation: glassLaunch .45s cubic-bezier(.3, .7, .3, 1) forwards; pointer-events: none; }
@keyframes glassLaunch {
  0%   { transform: scale(1);    opacity: 1; }
  25%  { transform: scale(.86);  opacity: 1; }
  60%  { transform: scale(1.35); opacity: .7; }
  100% { transform: scale(1.75); opacity: 0; }
}
/* Pausing brings it back with a little pop */
.glass-play.back { animation: glassBack .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes glassBack {
  0%   { transform: scale(.5);  opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
.thumb.is-playing .glass-play:not(.launch) { opacity: 0; pointer-events: none; }

/* Thin progress line along the bottom while playing */
.progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.18); overflow: hidden; z-index: 2; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--teal-light); transform-origin: left; transform: scaleX(0); }
.thumb.is-playing .progress, .thumb.player:hover .progress { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .glass-play.launch { animation: none; opacity: 0; }
  .glass-play.back { animation: none; }
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: relative; z-index: 1; }
.card-body { padding: 16px 12px 10px; }
.card-body h3 { margin: 0; font-size: 20px; font-weight: 600; }
.card-body p { margin: 6px 0 0; font-size: 14px; color: #C5D5DF; }

/* ---------- Brands ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.logo {
  flex: 1 1 260px; min-height: 140px; border-radius: 20px; padding: 24px;
  background: var(--ink); border: 1px solid var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; letter-spacing: 0.08em; color: #B8C9D4; text-decoration: none;
}
.logo img { max-height: 64px; width: auto; object-fit: contain; }
.logo.cta { background: var(--orange); border: none; flex-direction: column; gap: 6px; text-align: center; letter-spacing: 0; }
.logo.cta strong { font-size: 17px; color: var(--ink); }
.logo.cta span { font-size: 15px; color: var(--ink); text-decoration: underline; }

/* Big "Let's work together" on the Brands page */
.big-cta-wrap { display: flex; justify-content: center; align-items: center; min-height: 46vh; padding: 24px 0 40px; text-align: center; }
.big-cta {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(56px, 10vw, 150px); line-height: 1; letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 50% 100%; padding-bottom: 8px;
  transition: background-size .5s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.big-cta:hover { background-size: 100% 2px; }

/* ---------- Contact ---------- */
.contact-card h2 { color: var(--peach); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #B8C9D4; }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--cream);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--maroon); background: #16212b;
}
.form input { min-height: 50px; padding: 0 16px; }
.form textarea { resize: vertical; min-height: 150px; }
.form input::placeholder, .form textarea::placeholder { color: #7F95A5; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--peach); outline-offset: 1px; }
.form .pill { align-self: flex-start; min-height: 52px; padding: 0 22px 0 26px; font-size: 16px; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; color: var(--peach); }

/* ---------- Home ---------- */
.home { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.home .wrap { width: 100%; align-items: center; text-align: center; padding: 96px 32px; }
.home .hello { font-size: 16px; }
.home h1 { margin: 0; font-size: clamp(60px, 11vw, 168px); line-height: 0.92; font-weight: 600; letter-spacing: -0.045em; }
.home .role { margin: 14px 0 0; font-size: clamp(28px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; color: var(--peach); }
.home .intro { margin: 0; max-width: 580px; font-size: 20px; line-height: 1.55; color: #D5E2EA; }
.home .nav { justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .wrap { padding: 40px 20px 64px; gap: 22px; }
  .heading-block { margin-top: 16px; }
  .panel { padding: 28px 22px; }
  .pill { min-height: 44px; padding: 0 16px; }
  .home .wrap { padding: 64px 20px; }
  .home .intro { font-size: 18px; }
  .grid { gap: 14px; }
  /* Portfolio tabs: keep all three on one line so the highlight can slide */
  .navrow > .tabs { width: 100%; flex-wrap: nowrap; }
  .tab { flex: none; padding: 0 14px; font-size: 14px; }
  .grid > .card.is-v { flex: 0 1 calc(50% - 7px); }   /* reels: half width, two side by side */
  .grid > .card.is-h { flex: 1 1 100%; }              /* wide videos full width */
}

/* ---------- Page-to-page fade ---------- */
/* Modern browsers: the old page fades into the new one (backgrounds blend too) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .5s ease both; mix-blend-mode: plus-lighter; }
::view-transition-new(root) { animation: vtIn .5s ease both; mix-blend-mode: plus-lighter; }
::view-transition-image-pair(root) { isolation: isolate; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; } }

/* Other browsers: the page content fades in on arrival and out on leaving */
.no-vt main { animation: pageIn .45s ease both; }
.no-vt.leaving main { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .no-vt main { animation: none; }
}

/* ---------- Typography: Satoshi headlines · Manrope text · Instrument Serif italic accents ---------- */
body, .pill, .tab, .form input, .form textarea { font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif; }
.title, .home h1, .card-body h3, .brand { font-family: 'Satoshi', 'Manrope', 'Helvetica Neue', Arial, sans-serif; }
.title, .home h1 { font-weight: 700; letter-spacing: -0.035em; }
.card-body h3 { font-weight: 700; letter-spacing: -0.01em; }
.pill, .tab { font-weight: 600; }
.serif, .home .role {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.005em;
}
.title .serif { font-size: 1.06em; line-height: 0.9; }
.home .role { font-size: clamp(34px, 4.8vw, 66px); margin-top: 6px; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; }
