/* BouncingFish 2026: playful neo-brutalist theme with curves.
   Tokens follow the Showrunner site (paper, ink, hard offset shadows,
   asymmetric radii); the accent is the blue sampled from the logo. */

:root {
  --ink: #19151f;
  --paper: #f5f1e4;
  --card: #fffdf5;
  --muted: #514a58;
  --fish: #50a5ca;        /* logo blue, fills only (ink text on it is 6.5:1) */
  --fish-ink: #1d6385;    /* logo blue darkened for text on paper (5.9:1) */
  --fish-soft: #d4ebf5;
  --sun: #ffd84d;
  --radius: 20px;
  --shadow: 6px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  background-image: radial-gradient(#20142b14 .8px, transparent .8px);
  background-size: 22px 22px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--fish-ink);
  outline-offset: 4px;
  border-radius: 6px;
}
svg.i {
  width: 30px; height: 30px;
  stroke: currentColor; fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }

.skip {
  position: absolute; top: -80px; left: 20px; z-index: 5;
  padding: 10px 15px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip:focus { top: 10px; }

/* Header */
.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 28px;
}
.brand img { width: 240px; height: auto; }
.nav ul {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: var(--fish-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 56px; align-items: center;
  padding-block: 24px 29px;
}
.eyebrow {
  display: inline-block; margin: 0 0 20px;
  padding: 6px 14px; font-size: 14px; font-weight: 650;
  background: var(--sun); border: 2px solid var(--ink);
  border-radius: 999px; transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}
h1, h2, h3 { font-family: var(--display); margin: 0; }
.hero h1 {
  font-size: clamp(52px, 7.4vw, 100px);
  font-weight: 780; line-height: .98; letter-spacing: -.035em;
  margin-bottom: 26px;
}
.hero h1 .fish { color: var(--fish-ink); }
.intro { font-size: 21px; line-height: 1.55; color: var(--muted); margin: 0 0 30px; max-width: 36em; }
.intro b { color: var(--ink); font-weight: 650; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-weight: 650; font-size: 16px; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--fish); }
.btn.ghost { background: var(--card); }

.portrait { position: relative; justify-self: center; width: min(360px, 100%); margin: 0; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  box-shadow: 10px 10px 0 var(--fish);
  background: var(--fish-soft);
}
.note {
  position: absolute; left: -34px; bottom: -18px; width: 200px;
  padding: 18px 20px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px 22px 8px 20px;
  box-shadow: var(--shadow-sm); transform: rotate(-5deg);
  font-family: var(--display); font-weight: 680; font-size: 19px; line-height: 1.2;
}
.note a { color: var(--fish-ink); }

/* Sections */
.section { padding-block: 72px; }
.hero + .section { padding-top: 29px; }
.section + .section { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 40px;
}
h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 740; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.section-head p b { color: var(--ink); font-weight: 650; }

.card {
  background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { padding: 26px 24px 28px; }
.service .badge {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px;
  background: var(--fish-soft); box-shadow: 4px 4px 0 var(--ink);
}
.service:nth-child(2) .badge { background: var(--sun); border-radius: 50%; }
.service:nth-child(3) .badge { background: #f6d2c3; border-radius: 4px 16px 16px 16px; }
.service:nth-child(4) .badge { background: #e5dbff; border-radius: 16px; }
.service h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Work */
.featured {
  display: grid; grid-template-columns: 1fr 1.4fr; overflow: hidden;
  margin-bottom: 32px; background: var(--fish-soft);
}
.featured img { width: 100%; height: 100%; object-fit: cover; border-right: 2px solid var(--ink); min-height: 260px; }
.featured .body { padding: 34px 34px 36px; }
.featured h3 { font-size: 32px; letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 14px; }
.featured p { margin: 0; color: #2f3a42; }

.tag {
  display: inline-block; padding: 3px 11px; font-size: 13px; font-weight: 650;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .15s ease; }
.work:nth-child(3n+1) { border-radius: 26px 10px 26px 10px; }
.work:nth-child(3n+2) { border-radius: 10px 26px 10px 26px; }
.work:hover { transform: translateY(-4px) rotate(-.4deg); }
.work img {
  width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover;
  border-bottom: 2px solid var(--ink); background: #e9e4d3;
}
.work .body { position: relative; padding: 12px 14px 14px; }
.work .tag { position: absolute; bottom: calc(100% + 12px); left: 12px; }
.work h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.work p {
  margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.work b, .featured b { color: var(--ink); font-weight: 650; }

/* Clients */
.clients {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.clients li {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 16px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.clients li:nth-child(odd) { border-radius: 18px 6px 18px 6px; }
.clients img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .15s, opacity .15s; }
.clients img[src*="/images/ai/"] { opacity: .6; }
.clients .client-name { margin-top: 8px; font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.clients li:hover img { filter: none; opacity: 1; }

/* CTA + footer */
.cta {
  position: relative; padding: 48px; background: var(--ink); color: var(--paper);
  border-radius: 28px 28px 28px 8px; box-shadow: 10px 10px 0 var(--fish);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d9d3c4; margin: 16px 0 0; }
.cta .btn { box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.cta .btn.primary { color: var(--ink); }
.cta .btn.ghost { background: transparent; color: var(--paper); }
.cta .btn-row { justify-content: flex-end; }

.footer {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px;
  padding-block: 72px 44px; font-size: 15px;
}
.footer h3 { font-size: 18px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { font-weight: 600; text-decoration-color: var(--fish); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer a:hover { color: var(--fish-ink); }
.footer small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Inner pages */
.page-hero { padding-block: 48px 24px; }
.page-hero h1 {
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 780; line-height: 1; letter-spacing: -.035em;
  margin-bottom: 22px; max-width: 12em;
}
.page-hero .intro { max-width: 44em; }
.page-hero .intro a { color: var(--fish-ink); }
.page-hero.split {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.signoff { margin: -14px 0 0; font-family: var(--display); font-weight: 680; font-size: 20px; }
.signoff a { color: var(--fish-ink); }
.signoff::before { content: "\2014\00a0"; }

.checklist {
  list-style: none; margin: 0; padding: 26px 28px;
  display: grid; gap: 14px; background: var(--fish-soft);
  border-radius: 8px 28px 8px 28px; transform: rotate(1deg);
}
.checklist li { position: relative; padding-left: 38px; line-height: 1.4; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319151f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.story { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; padding-top: 32px; }
.profile { position: sticky; top: 24px; overflow: hidden; border-radius: 26px 10px 26px 10px; }
.profile > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.profile .body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.profile h2 { font-size: 26px; letter-spacing: -.02em; }
.profile .cert { width: 64px; height: auto; }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(32px, 3.6vw, 44px); margin: 0 0 18px; }
.prose p + h2 { margin-top: 48px; }
.prose p { margin: 0 0 18px; color: var(--muted); }
.prose b { color: var(--ink); font-weight: 650; }
.prose a { color: var(--fish-ink); }
.framed {
  width: 100%; height: auto; margin-top: 32px;
  border: 2px solid var(--ink); border-radius: 10px 26px 10px 26px; box-shadow: var(--shadow);
}

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.quote { margin: 0; padding: 30px 30px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote:nth-child(2) { border-radius: 10px 26px 10px 26px; background: var(--fish-soft); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.quote figcaption { font-weight: 650; color: var(--muted); }
.quote figcaption img { max-height: 72px; width: auto; }

.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.entry { padding: 24px 26px 8px; }
.entry:nth-child(4n+2), .entry:nth-child(4n+3) { border-radius: 10px 26px 10px 26px; }
.entry h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.entry p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.entry b { color: var(--ink); font-weight: 650; }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
.contact-cards .card { padding: 30px; }
.contact-cards .card:nth-child(2) { border-radius: 10px 26px 10px 26px; background: var(--fish-soft); }
.contact-cards h2 { font-size: 32px; margin-bottom: 18px; }
.contact-cards address { font-style: normal; font-size: 18px; margin-bottom: 20px; }
.contact-cards .company { font-size: 18px; font-weight: 650; margin: 0 0 20px; }
.contact-cards dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.contact-cards dt { font-weight: 650; }
.contact-cards dd { margin: 0; }
.contact-cards a { color: var(--fish-ink); font-weight: 600; overflow-wrap: anywhere; }

/* Responsive */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .page-hero.split { grid-template-columns: 1fr; gap: 36px; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .profile { position: static; max-width: 360px; }
  .entries { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header { flex-direction: column; align-items: flex-start; padding-block: 22px 8px; }
  .brand img { width: 190px; }
  .nav ul { border-radius: 18px; }
  .nav a { padding: 7px 12px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 36px 20px; }
  .intro { font-size: 18px; }
  .portrait { width: min(280px, 80%); }
  .note { left: auto; right: -20px; width: 170px; font-size: 17px; }
  .section { padding-block: 52px; }
  .hero + .section { padding-top: 20px; }
  .section + .section { padding-top: 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .services, .work-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured img { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 0; aspect-ratio: 16 / 10; }
  .featured .body { padding: 24px; }
  .clients { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cta { padding: 32px 24px; }
  .footer { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding-block: 32px 8px; }
  .checklist { transform: none; }
  .quotes, .contact-cards { grid-template-columns: 1fr; }
  .quote blockquote { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .btn, .work { transition: none; }
  .btn:hover, .work:hover { transform: none; }
}
