/* ==========================================================================
   Chicken Wing Pictures — redesign design system
   Palette + typefaces carried over from the live Squarespace 7.1 site,
   with one new accent added for calls to action.
   ========================================================================== */

:root {
  /* --- Colour ------------------------------------------------------------
     cream / ink / slate are lifted straight from the current site's theme
     variables. hot is new: the site had no colour that could carry a button. */
  --cream:      #FFF5D9;
  --cream-deep: #F6E7BF;
  --ink:        #182241;
  --ink-soft:   #2B3557;
  --slate:      #536C7C;
  --slate-lt:   #7B949C;
  --slate-dk:   #213C4E;
  --hot:        #E2542F;
  --hot-dk:     #C4401D;

  --paper: var(--cream);
  --text:  var(--ink);

  /* --- Type -------------------------------------------------------------- */
  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* --- Layout ------------------------------------------------------------ */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --measure: 60ch;

  --rule: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

/* ==========================================================================
   Reset-ish
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--hot); color: var(--cream); }

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 1080px; }

section { padding-block: clamp(4rem, 9vw, 8.5rem); }

/* Dark-on-cream inversion, used to break the page into acts. */
.band--ink   { background: var(--ink);   color: var(--cream); --rule: 1px solid rgba(255,245,217,.22); }
.band--slate { background: var(--slate-dk); color: var(--cream); --rule: 1px solid rgba(255,245,217,.22); }
.band--deep  { background: var(--cream-deep); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.5rem;
}
.band--ink .eyebrow, .band--slate .eyebrow { color: var(--slate-lt); }

.lede {
  font-size: clamp(1.15rem, 1rem + 0.65vw, 1.5rem);
  line-height: 1.45;
  max-width: var(--measure);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* One line, no dot. The name is the mark. */
.wordmark span { display: block; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--hot); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav__cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: 0 !important;
  transition: background .18s;
}
.nav__cta:hover { background: var(--hot); }

@media (max-width: 780px) {
  .nav { gap: 1rem; font-size: 0.875rem; }
  .nav a { font-size: 0.8125rem; }
  .site-header__inner { flex-wrap: wrap; min-height: 0; padding-block: 0.9rem; gap: 0.75rem 1rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn::after { content: "→"; transition: transform .18s; }
.btn:hover::after { transform: translateX(3px); }

.btn--hot   { background: var(--hot); color: var(--cream); }
.btn--hot:hover { background: var(--hot-dk); }
.btn--ink   { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-soft); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.band--ink .btn--ghost:hover, .band--slate .btn--ghost:hover {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--hot);
}

.hero__sub {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) { .hero__sub { grid-template-columns: 1fr; } }

.hero__meta {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate-dk);
}
.hero__meta strong { color: var(--ink); font-weight: 700; }

/* --- Credibility strip --------------------------------------------------- */

.creds {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1.25rem, 3vw, 2.75rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 1rem);
  letter-spacing: -0.01em;
  color: var(--slate-dk);
}
.creds span { white-space: nowrap; }
.creds .dot { color: var(--hot); }

/* ==========================================================================
   Work grid  (the SmartyPants move: metadata + award live on the tile)
   ========================================================================== */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); }
.section-head a {
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--hot); padding-bottom: 2px; white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.75rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

.work-grid > .tile--wide { grid-column: span 2; }
@media (max-width: 860px) { .work-grid > .tile--wide { grid-column: auto; } }

.tile { text-decoration: none; display: block; group: tile; }

.tile__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--slate-dk);
}
.tile--wide .tile__frame { aspect-ratio: 16 / 8.2; }

.tile__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), filter .35s;
}
.tile:hover .tile__frame img { transform: scale(1.035); }

/* Award flag sits on the still, the way SmartyPants puts
   "Netflix – Academy Award® Winner" right on the tile. */
.tile__flag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--hot);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
}

.tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 1.15rem 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.tile__meta .sep { opacity: .5; }

.tile__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.tile:hover .tile__title { color: var(--hot); }

.tile__blurb {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate-dk);
  max-width: 46ch;
  margin: 0;
}

/* ==========================================================================
   Two doors  (the structural fix: two audiences, two paths)
   ========================================================================== */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.door {
  background: color-mix(in srgb, var(--cream) 8%, transparent);
  border: 1px solid rgba(255,245,217,.28);
  border-radius: 6px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  transition: background .2s, border-color .2s;
}
.door:hover { background: color-mix(in srgb, var(--cream) 13%, transparent); border-color: rgba(255,245,217,.5); }

.door h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  margin-bottom: 0.9rem;
}
.door p { color: color-mix(in srgb, var(--cream) 80%, var(--slate-lt)); font-size: 1rem; }
.door ul {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--cream) 78%, var(--slate-lt));
}
.door li { padding-left: 1.35rem; position: relative; }
.door li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hot);
}
.door .btn-row { margin-top: auto; padding-top: 2rem; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.stat { border-top: 3px solid var(--hot); padding-top: 1rem; }
.stat dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.stat dd {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--slate);
}
.band--ink .stat dd, .band--slate .stat dd { color: var(--slate-lt); }

/* ==========================================================================
   About / duo
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split__media img { border-radius: 5px; width: 100%; }

.split h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); margin-bottom: 1.5rem; }

/* ==========================================================================
   Press quotes
   ========================================================================== */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.quote { border-left: 3px solid var(--hot); padding-left: 1.35rem; }
.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.quote cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem; }

.footer-cta { max-width: 24ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); letter-spacing: -0.04em; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,245,217,.22);
}

.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-lt);
  margin-bottom: 0.85rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; line-height: 2; }
.footer-grid a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer-grid a:hover { border-bottom-color: var(--hot); }

.colophon {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,245,217,.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.8125rem;
  color: var(--slate-lt);
}

/* ==========================================================================
   Consulting page extras
   ========================================================================== */

.stuck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stuck__card {
  border-top: 3px solid var(--ink);
  padding-top: 1.5rem;
}
.stuck__card h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
  margin-bottom: 0.4rem;
}
.stuck__quote {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--hot);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
.stuck__card ul {
  list-style: none; margin: 0; padding: 0;
  font-size: 0.9375rem; line-height: 1.7;
}
.stuck__card li { padding-left: 1.25rem; position: relative; margin-bottom: 0.45rem; }
.stuck__card li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--slate-lt);
}

.steps { counter-reset: step; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step { position: relative; padding-top: 3.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: -0.05em;
  color: var(--hot);
  line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.9375rem; color: var(--slate-dk); }
.band--ink .step p, .band--slate .step p { color: color-mix(in srgb, var(--cream) 78%, var(--slate-lt)); }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.results h3 {
  font-size: 1.1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--hot);
}
.results ul { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; line-height: 1.6; }
.results li { margin-bottom: 0.9rem; padding-left: 1.25rem; position: relative; }
.results li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45;
}
.results strong { font-weight: 700; }

/* ==========================================================================
   Motion / reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .tile:hover .tile__frame img { transform: none; }
}

/* Skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 4px 0; z-index: 100;
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
}
.skip:focus { left: 0; top: 0; }
