/* ==============================================================================
   Jethro Watson — Fast, High-Performance, Mobile-First Stylesheet
   Zero external dependencies.
   ============================================================================== */

/* Native Cross-Document View Transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  --paper: #f2f0e9;
  --ink: #20211f;
  --blue: #5534ff;
  --blue-hover: #3820be;
  --muted: #666860;
  --line: #d3d2c9;
  --white: #ffffff;
  --lime: #d9ff43;
  --navy: #162a4c;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  z-index: 999;
  border: 1px solid var(--ink);
}

.skip:focus {
  top: 16px;
}

/* Container Wrapper */
.wrap {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

/* ==============================================================================
   Header & Navigation
   ============================================================================== */
header {
  border-bottom: 1px solid transparent;
  width: 100%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  gap: 24px;
}

.wordmark {
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links .contact {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--white);
  transition: border-color .2s, color .2s;
}

.nav-links .contact:hover {
  border-color: var(--blue);
}

.menu-trigger {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 4px;
  min-height: 40px;
}

/* ==============================================================================
   Typography & Common Elements
   ============================================================================== */
h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -3.5px;
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 800;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 800;
}

p {
  font-size: 18px;
}

p + p {
  margin-top: 18px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 20px;
}

.eyebrow.muted {
  color: var(--muted);
}

.lead {
  font-size: 22px;
  line-height: 1.45;
  max-width: 860px;
  margin-top: 24px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

/* ==============================================================================
   Sections & Layout Grids
   ============================================================================== */
.section {
  padding: 80px 0;
}

.section.compact {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 40px;
  max-width: 960px;
}

.section-head p:not(.eyebrow) {
  margin-top: 20px;
}

.intro {
  padding: 64px 0 54px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.intro .lead {
  color: var(--muted);
}

/* Hero Section */
.hero {
  padding: 48px 0 60px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero:before, .intro:before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff73ba50, transparent 68%);
  animation: colour-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero:after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  left: -150px;
  bottom: -160px;
  background: radial-gradient(circle, #a3ff6050, transparent 70%);
  animation: colour-drift 12s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(52px, 5.8vw, 82px);
  letter-spacing: -3.5px;
  line-height: 1.05;
}

.hero-tagline {
  display: block;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--muted);
  line-height: 1.15;
  margin-top: 10px;
}

.portrait {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: 52% center;
  background: var(--navy);
  border-radius: 2px;
}

.portrait-caption {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 600;
}

.hero-strip {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Actions & Buttons */
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 26px;
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  font-size: 14px;
  font-weight: 700;
  min-height: 52px;
  border-radius: 2px;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
  background: var(--blue-hover);
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #ff6fb2;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button span, .text-link span, .project h3 span {
  display: inline-block;
  transition: transform .25s;
}

.button:hover span, .text-link:hover span, .project:hover h3 span {
  transform: translateX(5px);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==============================================================================
   Entity Profile Snapshot Card
   ============================================================================== */
.entity-snapshot {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 42px;
  border-radius: 4px;
}

.entity-head {
  margin-bottom: 28px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 36px;
}

.entity-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.entity-item span {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.entity-item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.entity-item strong a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entity-item strong a:hover {
  color: var(--blue-hover);
}

/* ==============================================================================
   Capabilities & Projects Grids
   ============================================================================== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
}

.capability:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 var(--lime);
}

.capability .number {
  font-size: 12px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1.6px;
}

.capability p {
  font-size: 16px;
  color: var(--muted);
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
}

.project {
  display: block;
}

.project:hover h3 {
  color: var(--blue);
}

.project:hover .project-image img {
  transform: scale(1.035);
}

.project-image {
  height: 320px;
  overflow: hidden;
  background: var(--blue);
  position: relative;
  margin-bottom: 20px;
  border-radius: 4px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-image .artword {
  padding: 36px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: white;
  position: relative;
  z-index: 1;
}

.project-image.navy { background: var(--navy); }
.project-image.ink { background: var(--ink); }
.project-image.lime { background: var(--lime); }
.project-image.lime .artword { color: var(--ink); }
.project-image.navy .artword { font-family: 'Bodoni Moda', Georgia, serif; font-style: italic; font-weight: 400; }

.project-image.isuzu { background: #d7202d; color: white; }
.project-image.isuzu:after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border: 50px solid #ff809550;
  border-radius: 50%;
  right: -130px;
  bottom: -110px;
  animation: colour-drift 8s ease-in-out infinite alternate;
}
.project-image .artword small {
  display: block;
  margin-top: 24px;
  font: 700 11px var(--font);
  letter-spacing: 1.5px;
}

.project-image.blue {
  background: linear-gradient(120deg, #5534ff, #ff55a6, #5534ff);
  background-size: 240% 240%;
  animation: gradient-flow 12s ease infinite;
}

.project-image.ink:after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #858780;
  border-radius: 50%;
  right: -40px;
  bottom: -90px;
  box-shadow: 0 0 0 22px #20211f, 0 0 0 23px #55564e, 0 0 0 55px #20211f, 0 0 0 56px #55564e;
}

.project h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 26px;
  line-height: 1.25;
}

.project .meta {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 10px 0;
}

.project p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}

/* ==============================================================================
   Dark Sections & Principles
   ============================================================================== */
.dark {
  background: var(--ink);
  color: var(--paper);
}

.dark .eyebrow { color: var(--lime); }
.dark .lead { color: var(--paper); }
.dark p { color: var(--paper); }
.dark .muted { color: #c9cbc1; }
.dark .text-link { color: var(--lime); }
.dark h1, .dark h2 { max-width: 1040px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
}

.split.equal {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.split p {
  max-width: 760px;
}

.dark .grid3 {
  margin-top: 36px;
}

.principle {
  border-top: 1px solid #61625b;
  padding-top: 24px;
}

.principle p {
  font-size: 16px;
  margin-top: 14px;
  color: #d0d2c7;
}

/* ==============================================================================
   Now Grid & Light Sections
   ============================================================================== */
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 54px;
  margin-top: 36px;
}

.now-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.now-item .eyebrow {
  margin: 0 0 10px;
}

.now-item p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 12px;
}

/* Call to Action */
.lime {
  background: var(--lime);
  color: var(--ink);
}

.lime .eyebrow {
  color: var(--ink);
}

.cta h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
}

.cta p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 640px;
}

.cta .button {
  margin-top: 28px;
}

/* ==============================================================================
   FAQ Component
   ============================================================================== */
.faq-section {
  margin-top: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 32px;
  border-radius: 4px;
}

.faq-item h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.faq-item p strong {
  color: var(--ink);
}

.faq-item p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==============================================================================
   Music Page Specifics
   ============================================================================== */
.music-hero {
  padding: 72px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.music-hero .wrap {
  position: relative;
}

.music-hero .eyebrow {
  color: var(--lime);
}

.music-hero h1 {
  position: relative;
  z-index: 1;
}

.music-hero .lead {
  max-width: 800px;
  color: #d0d2c7;
  position: relative;
  z-index: 1;
}

.record {
  position: absolute;
  right: -120px;
  top: 20px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid #55574d;
  opacity: .45;
  box-shadow: 0 0 0 28px #20211f, 0 0 0 29px #55574d, 0 0 0 70px #20211f, 0 0 0 71px #55574d, 0 0 0 110px #20211f, 0 0 0 111px #55574d;
  background: conic-gradient(from 20deg, transparent, #5534ff80, transparent, #fa6eaf50, transparent);
  animation: record-spin 25s linear infinite;
}

.record:before {
  content: '';
  position: absolute;
  left: 40%;
  top: 40%;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: var(--blue);
}

.album-panel {
  background: linear-gradient(120deg, #5534ff, #ee48a0, #5534ff);
  background-size: 250% 250%;
  animation: gradient-flow 12s ease infinite;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 42px;
  height: 380px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.album-panel:after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border: 2px solid #d9ff4360;
  border-radius: 50%;
  box-shadow: 0 0 0 20px #d9ff4320, 0 0 0 42px #d9ff4310;
  animation: badge-float 6s ease-in-out infinite;
  pointer-events: none;
}

.album-panel > * {
  z-index: 1;
}

.album-panel span {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.album-panel strong {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -2px;
}

.album-panel em {
  font-style: normal;
  font-size: 14px;
}

.short-notes {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}

.short-notes span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
}

/* ==============================================================================
   Contact Page Specifics
   ============================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact-details .email {
  font-size: 26px;
  letter-spacing: -0.5px;
  display: block;
  color: var(--blue);
  margin-top: 24px;
  word-break: break-word;
  font-weight: 700;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  gap: 16px;
}

.fact-row span {
  font-size: 14px;
  color: var(--muted);
}

.fact-row strong {
  font-size: 14px;
  font-weight: 700;
}

.form {
  background: white;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.form h3 {
  margin-bottom: 22px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafaf7;
  padding: 14px 15px;
  color: var(--ink);
  border-radius: 2px;
  font-size: 16px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  outline: 2px solid #5534ff30;
}

.field [aria-invalid="true"] {
  border-color: #ad3324;
}

.field-error {
  color: #ad3324;
  font-size: 12px;
  margin-top: 6px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}

.status {
  padding: 22px;
  background: var(--lime);
  margin-top: 18px;
  border-radius: 4px;
}

.status h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.status p {
  font-size: 14px;
}

/* ==============================================================================
   Project Case Study Details
   ============================================================================== */
.case-top {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.case-meta .eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
}

.case-meta p {
  font-size: 16px;
  font-weight: 600;
}

.case-hero-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.image-credit {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

.story-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.story-section p {
  font-size: 20px;
  max-width: 820px;
}

.project-surface {
  padding: 48px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scope-grid span {
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 1px;
  font-weight: 700;
}

.scope-grid h3 {
  margin: 14px 0;
  font-size: 20px;
}

.scope-grid p {
  font-size: 15px;
  color: var(--muted);
}

/* ==============================================================================
   Featured Website Lead Showcase (on /work/)
   ============================================================================== */
.featured-work {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
}

.featured-visual-stage {
  background: #18191a;
  padding: 36px 36px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.stage-desktop {
  width: 70%;
  max-width: 820px;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: #111;
}

.stage-desktop picture {
  display: block;
  width: 100%;
}

.stage-desktop img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.stage-mobile {
  width: 25%;
  max-width: 240px;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  background: #111;
}

.stage-mobile picture {
  display: block;
  width: 100%;
}

.stage-mobile img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
}

.featured-main h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.6px;
  margin: 0 0 14px;
}

.featured-lead {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 14px;
}

.featured-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.featured-side .eyebrow {
  margin: 0;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tags .skill {
  background: #fafaf7;
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 2px;
  color: var(--ink);
  font-weight: 600;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ==============================================================================
   Case Study Screenshot Gallery & Mockup Framing
   ============================================================================== */
.case-gallery {
  margin: 44px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1040px;
}

.case-showcase {
  max-width: 1040px;
  margin: 36px auto 0;
}

.case-figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Browser Mockup Window */
.browser-frame {
  display: flex;
  flex-direction: column;
}

.browser-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #ebe8e1;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  user-select: none;
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 3px 14px;
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  width: 100%;
  height: 480px;
  max-height: min(56vh, 480px);
  overflow: hidden;
  background: #111213;
  position: relative;
}

.browser-screen picture,
.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Duo Grid */
.case-grid-duo {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.case-grid-duo .duo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-grid-duo .duo-screen {
  flex: 1;
  height: 400px;
  max-height: min(50vh, 420px);
}

.case-grid-duo .duo-screen img {
  object-position: top left;
}

/* Phone Mockup Card */
.phone-card {
  display: flex;
  flex-direction: column;
}

.phone-stage {
  flex: 1;
  background: #ece8df;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  height: 400px;
  max-height: min(50vh, 420px);
  overflow: hidden;
}

.phone-device {
  width: 185px;
  height: 345px;
  background: #18191b;
  border: 5px solid #232427;
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
}

.phone-island {
  width: 52px;
  height: 11px;
  background: #232427;
  border-radius: 0 0 7px 7px;
  margin: 0 auto;
  z-index: 2;
  flex-shrink: 0;
}

.phone-display {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 21px 21px;
  background: #0f1011;
}

.phone-display picture,
.phone-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Photo Figure (Rally car action photo) */
.photo-frame {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.photo-screen {
  width: 100%;
  height: 440px;
  max-height: min(54vh, 460px);
  overflow: hidden;
  background: #111;
}

.photo-screen picture,
.photo-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}

.case-figure figcaption {
  padding: 14px 20px;
  background: #faf9f5;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}

.case-figure figcaption strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* ==============================================================================
   Experience & Timeline
   ============================================================================== */
.timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.timeline h3 {
  font-size: 30px;
}

.timeline .org {
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0;
}

.timeline p {
  color: var(--muted);
}

ul {
  padding-left: 20px;
  margin: 18px 0 0;
}

li {
  padding: 3px 0;
  font-size: 16px;
  color: var(--muted);
}

.skills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.skill {
  border: 1px solid #64665d;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 2px;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--lime);
  padding: 16px 0;
  border-block: 1px solid var(--ink);
  width: 100%;
  max-width: 100vw;
}

.ticker > div {
  white-space: nowrap;
  width: max-content;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
  word-spacing: 14px;
  animation: ticker-slide 50s linear infinite;
}

.ticker:hover > div {
  animation-play-state: paused;
}

/* Footer */
.footer {
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 28px;
}

.footer .wordmark {
  font-size: 26px;
}

.footer p {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  font-weight: 600;
}

.elsewhere {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--blue);
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
}

.copyright {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}

/* Mobile Modal Navigation */
.modal-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-close {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.menu-items a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.menu-items a[aria-current="page"] {
  color: var(--blue);
}

.menu-foot {
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.content-column {
  max-width: 900px;
}

/* ==============================================================================
   Keyframe Animations
   ============================================================================== */
@keyframes ticker-slide {
  to { transform: translateX(-50%); }
}

@keyframes record-spin {
  to { transform: rotate(360deg); }
}

@keyframes badge-float {
  50% { translate: 0 -8px; rotate: -3deg; }
}

@keyframes colour-drift {
  to { transform: translate(-60px, 50px) scale(1.15); }
}

@keyframes gradient-flow {
  50% { background-position: 100% 50%; }
}

/* Desktop Scroll Reveal (NEVER hides on mobile) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ==============================================================================
   Tablet Breakpoint (max-width: 1024px)
   ============================================================================== */
@media (max-width: 1024px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .nav-links {
    gap: 18px;
    font-size: 12px;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 64px;
    letter-spacing: -2.8px;
  }

  .hero-tagline {
    font-size: 42px;
  }

  .portrait {
    height: 480px;
  }

  .grid3 {
    gap: 18px;
  }

  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    gap: 48px;
  }

  .timeline, .story-section {
    grid-template-columns: 180px 1fr;
    gap: 40px;
  }

  .project-image {
    height: 270px;
  }

  .project-image .artword {
    font-size: 42px;
  }
}

/* ==============================================================================
   Mobile Breakpoint (max-width: 768px)
   CRITICAL: Ensures clean layout, zero overflow, and readable hierarchy.
   ============================================================================== */
@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  /* Header */
  .nav {
    min-height: 68px;
  }

  .wordmark {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
  }

  /* Spacing */
  .section {
    padding: 50px 0;
  }

  .section.compact {
    padding: 36px 0;
  }

  .intro {
    padding: 40px 0 36px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  /* Typography */
  h1 {
    font-size: clamp(30px, 8vw, 42px);
    letter-spacing: -1.2px;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: normal;
  }

  h2 {
    font-size: clamp(26px, 6.5vw, 34px);
    letter-spacing: -1px;
    line-height: 1.18;
  }

  h3 {
    font-size: 21px;
    letter-spacing: -0.4px;
  }

  p {
    font-size: 16px;
    line-height: 1.55;
  }

  .lead {
    font-size: 18px;
    line-height: 1.48;
    margin-top: 16px;
  }

  /* Hero Section */
  .hero {
    padding: 28px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(38px, 9.5vw, 48px);
    letter-spacing: -1.8px;
    line-height: 1.08;
    word-break: break-word;
  }

  .hero-tagline {
    font-size: clamp(24px, 6vw, 30px);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-top: 8px;
  }

  .hero .lead {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 16px;
  }

  .hero p.muted {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 12px;
  }

  /* Actions & Buttons on Mobile */
  .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 15px;
    padding: 14px 20px;
  }

  .text-link {
    justify-content: center;
    padding: 10px 0;
    font-size: 15px;
  }

  /* Mobile Portrait */
  .portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 28%;
    border-radius: 4px;
  }

  .hero-strip {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* Entity Snapshot */
  .entity-snapshot {
    padding: 22px 18px;
    border-radius: 4px;
  }

  .entity-head {
    margin-bottom: 20px;
  }

  .entity-head h2 {
    font-size: 24px;
  }

  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
  }

  .entity-item {
    padding-top: 10px;
  }

  .entity-item span {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .entity-item strong {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Grids & Cards */
  .grid3, .project-grid, .now-grid, .split, .split.equal, .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .capability {
    padding: 24px 20px;
  }

  .project-image {
    height: 210px;
    margin-bottom: 16px;
  }

  .project-image .artword {
    font-size: clamp(28px, 8vw, 36px);
    padding: 20px;
    letter-spacing: -1px;
  }

  .project h3 {
    font-size: 22px;
  }

  .project .meta {
    font-size: 10px;
    margin: 8px 0;
  }

  .project p {
    font-size: 15px;
  }

  /* Dark Section */
  .dark {
    padding: 50px 0;
  }

  .dark h1, .dark h2 {
    font-size: clamp(32px, 8vw, 42px);
    letter-spacing: -1.2px;
  }

  .principle {
    padding-top: 18px;
  }

  .principle p {
    font-size: 15px;
    margin-top: 10px;
  }

  /* Timeline */
  .timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .timeline h3 {
    font-size: 24px;
  }

  .timeline .org {
    font-size: 15px;
    margin: 8px 0;
  }

  .timeline li {
    font-size: 15px;
  }

  /* Music Hero & Panel */
  .music-hero {
    padding: 44px 0;
  }

  .music-hero h1 {
    font-size: clamp(36px, 9vw, 46px);
    letter-spacing: -1.5px;
  }

  .record {
    right: -240px;
    top: 60px;
    width: 400px;
    height: 400px;
    opacity: 0.2;
  }

  .album-panel {
    padding: 26px;
    height: 280px;
  }

  .album-panel strong {
    font-size: 42px;
    letter-spacing: -1px;
  }

  /* Contact Page */
  .contact-details .email {
    font-size: 22px;
    margin-top: 18px;
  }

  .fact-row {
    padding: 12px 0;
  }

  .form {
    padding: 22px 18px;
  }

  .field input, .field textarea, .field select {
    padding: 12px 13px;
    font-size: 16px;
  }

  /* Case Meta & Story Section */
  .case-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .story-section p {
    font-size: 17px;
  }

  .project-surface {
    padding: 22px 16px;
  }

  .scope-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Featured Showcase & Case Gallery on Mobile */
  .featured-work {
    margin-bottom: 40px;
  }

  .featured-visual-stage {
    padding: 24px 12px 0;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .stage-desktop {
    width: 66%;
    max-width: 66%;
    min-width: 0;
    flex-shrink: 1;
  }

  .stage-mobile {
    width: 29%;
    max-width: 29%;
    min-width: 0;
    flex-shrink: 0;
  }

  .featured-body {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
  }

  .featured-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .featured-actions .button {
    width: 100%;
    justify-content: center;
  }

  .case-grid-duo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-gallery {
    gap: 36px;
    margin: 32px 0 16px;
  }

  .browser-screen {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .case-grid-duo .duo-screen {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .phone-stage {
    height: auto;
    min-height: 380px;
    max-height: none;
    padding: 28px 16px;
  }

  .phone-device {
    width: 190px;
    height: 350px;
  }

  .photo-screen {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .browser-url {
    max-width: 190px;
    font-size: 10px;
    padding: 2px 8px;
  }

  /* FAQ */
  .faq-item {
    padding: 20px 18px;
  }

  .faq-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .faq-item p {
    font-size: 15px;
    line-height: 1.55;
  }

  /* CTA */
  .cta h1 {
    font-size: clamp(38px, 9.5vw, 50px);
    letter-spacing: -1.8px;
  }

  /* Ticker */
  .ticker {
    padding: 12px 0;
  }

  .ticker > div {
    font-size: 17px;
    word-spacing: 10px;
  }

  /* Footer */
  .footer {
    padding: 38px 0 44px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
  }

  .footer .wordmark {
    font-size: 22px;
  }

  .footer-links {
    gap: 12px 20px;
    font-size: 13px;
    padding-top: 18px;
  }

  .elsewhere {
    gap: 10px 16px;
    font-size: 13px;
    margin-top: 18px;
  }
}

/* ==============================================================================
   Extra Small Devices (max-width: 380px)
   ============================================================================== */
@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .hero-tagline {
    font-size: 22px;
  }

  .entity-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   Accessibility & Reduced Motion
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker > div {
    transform: none;
  }
}