/* Sixty Two Creative: built from Figma frame "Sixty Two Creative" (1440 wide).
   Layout: full-bleed colour bands, 1312px content column, 64px side gutter on desktop. */
:root {
  --bone: #FEFFF0;
  --ink: #202020;
  --green: #294338;
  --blue: #B8D3F4;
  --muted: #647166;
  --slot: #E8EADA;
  --line: rgba(41, 67, 56, 0.2);
  --line-ink: rgba(32, 32, 32, 0.2);
  --line-bone: rgba(254, 255, 240, 0.3);

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.45vw, 64px);
  --section-y: clamp(64px, 7.2vw, 104px);
  --max: 1440px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); }
.stack-56 { display: flex; flex-direction: column; gap: clamp(36px, 3.9vw, 56px); }
.stack-48 { display: flex; flex-direction: column; gap: clamp(32px, 3.3vw, 48px); }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 100px; }
.skip:focus { left: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
}
.eyebrow.on-dark { color: var(--blue); }
.eyebrow.ink { color: var(--ink); }

[class^="h-"], .hero-title {
  font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance;
}
.hero-title { font-size: clamp(56px, 7.23vw, 104px); }
.h-76 { font-size: clamp(48px, 5.28vw, 76px); }
.h-64 { font-size: clamp(42px, 4.45vw, 64px); }
.h-62 { font-size: clamp(40px, 4.3vw, 62px); }
.h-60 { font-size: clamp(38px, 4.17vw, 60px); }
.h-58 { font-size: clamp(38px, 4.03vw, 58px); }
.h-48 { font-size: clamp(32px, 3.33vw, 48px); }
.h-40 { font-size: clamp(30px, 2.78vw, 40px); }
.h-32 { font-size: clamp(26px, 2.22vw, 32px); }
.h-30 { font-size: clamp(25px, 2.08vw, 30px); }
.h-28 { font-size: clamp(24px, 1.95vw, 28px); }

.lead { font-size: clamp(18px, 1.39vw, 20px); }
.body { font-size: clamp(17px, 1.25vw, 18px); }
.body.strong { font-weight: 700; }
.body-muted { font-size: clamp(17px, 1.25vw, 18px); color: var(--muted); }
.small-muted { font-size: 16px; color: var(--muted); }
.measure-630 { max-width: 630px; }
.measure-680 { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 17px 24px; border: 0; border-radius: 100px;
  font: 700 16px/1.4 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-green { background: var(--green); color: var(--bone); }
.btn-bone { background: var(--bone); color: var(--green); }
.btn-ink { background: var(--ink); color: var(--bone); }
.text-link { font-size: 16px; border-bottom: 1px solid transparent; transition: border-color .15s; }
.text-link:hover { border-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* script.js adds .is-scrolled once the page moves, giving the sticky bar a light backing */
.site-header.is-scrolled {
  background: rgba(254, 255, 240, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(32, 32, 32, 0.05);
}
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .3s ease; }
.is-scrolled .header-inner { height: 76px; }
.logo { display: block; width: 168px; }
.logo img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav > a:not(.btn) { position: relative; font-weight: 500; font-size: 16px; padding-block: 4px; }
.site-nav > a:not(.btn):hover { color: var(--green); }
/* Sliding underline: grows in from the left on hover, slides out to the right */
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.site-nav > a:not(.btn):hover::after, .site-nav > a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
/* Full-bleed: the image runs to the right edge of the screen, while the copy
   stays aligned with the content column on screens wider than --max. */
.hero {
  display: grid;
  grid-template-columns: calc((100% - min(100%, var(--max))) / 2 + min(100%, var(--max)) * 760 / 1440) minmax(0, 1fr);
  height: clamp(600px, 48.9vw, 704px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 34px;
  padding-block: 64px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: var(--gutter);
  min-width: 0;
  width: 100%; max-width: 760px; justify-self: end;
}
.hero-lead { max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-art { position: relative; overflow: hidden; background: var(--green); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* ---------- Logos ---------- */
.logos { padding-block: 36px; }
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.logo-row li {
  height: 64px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 900; font-size: 18px; text-transform: uppercase; color: var(--muted);
}
/* Ticker: script.js adds .is-marquee and clones the row so it can loop seamlessly.
   Without JS, or with reduced motion, the static row above is shown instead. */
.logos.is-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.is-marquee .logo-track {
  display: flex; width: max-content;
  animation: logo-scroll var(--marquee-duration, 40s) linear infinite;
}
.is-marquee:hover .logo-track { animation-play-state: paused; }
.is-marquee .logo-row { display: flex; flex-wrap: nowrap; gap: 0; width: max-content; max-width: none; margin: 0; padding: 0; }
.is-marquee .logo-row li { flex: none; padding-inline: clamp(28px, 3.3vw, 48px); white-space: nowrap; }
@keyframes logo-scroll { to { transform: translateX(calc(-100% / var(--marquee-copies, 2))); } }

/* ---------- Motion ---------- */
/* Scroll reveal: script.js tags elements with .reveal and adds .is-visible as they enter view. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--reveal-i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-art img { animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle { from { transform: scale(1.06); } }

/* ---------- Shared intros + cards ---------- */
.intro-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.process { padding-block: clamp(64px, 6.67vw, 96px); }
.step-ref { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-weight: 900; font-size: 48px; line-height: 1.4; color: var(--green); }
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
/* Soft pulse: a ring that swells and fades, offset per card so they don't beat in unison */
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: dot-pulse 2.8s cubic-bezier(.2, .7, .2, 1) infinite;
}
.step:nth-child(2) .dot::after { animation-delay: .9s; }
.step:nth-child(3) .dot::after { animation-delay: 1.8s; }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(3); opacity: 0; } }
.step .eyebrow { margin-top: auto; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: 520px 1fr; background: var(--ink); color: var(--bone); }
.people-art { position: relative; overflow: hidden; aspect-ratio: 1; }
.people-art img { width: 100%; height: 100%; object-fit: cover; }
/* Parallax: script.js sets --parallax as the section scrolls; the slight scale keeps the edges covered */
.people-art.has-parallax img { transform: translate3d(0, var(--parallax, 0px), 0) scale(1.14); will-change: transform; }
.people-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 64px max(var(--gutter), env(safe-area-inset-right, 0px)) 64px 64px; min-width: 0;
}
.people-copy p, .people-copy h2 { max-width: 792px; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--blue); padding-block: 64px; }
.testimonial figure { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
/* Word-by-word reveal: script.js wraps each word in .word and adds .is-visible when in view */
.quote-reveal .word {
  display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(4px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
  transition-delay: calc(var(--word-i, 0) * 110ms);
}
.quote-reveal figcaption { opacity: 0; transition: opacity .8s ease; transition-delay: calc(var(--word-count, 0) * 110ms + 200ms); }
.quote-reveal.is-visible .word { opacity: 1; transform: none; filter: none; }
.quote-reveal.is-visible figcaption { opacity: 1; }

/* ---------- Why ---------- */
.split-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 100px; }
.split-heading { display: flex; flex-direction: column; gap: 24px; flex: 0 1 690px; min-width: 0; }
.why-lead { flex: 1 1 0; text-align: right; max-width: 522px; }
.reason h3 { max-width: 290px; }

/* ---------- Work ---------- */
.work-intro { gap: 80px; }
.work-intro .split-heading { flex: 1 1 auto; }
.work-note { flex: 0 0 350px; }
.project { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.project-media { overflow: hidden; background: var(--slot); }
.project img { width: 100%; object-fit: cover; background: var(--slot); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.project:hover img { transform: scale(1.05); }
.project-feature img { height: clamp(260px, 38.9vw, 560px); }
.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project-pair img { height: clamp(240px, 29.2vw, 420px); }
.project-caption { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Services ---------- */
.services { background: var(--green); color: var(--bone); }
.services-inner { display: flex; gap: 80px; align-items: flex-start; }
.services-intro { flex: 0 0 448px; display: flex; flex-direction: column; gap: 32px; }
.service-list { flex: 1 1 0; min-width: 0; }
.service { display: flex; gap: 24px; padding: 28px 30px; border: 1px solid var(--line-bone); }
.service + .service { border-top: 0; }
.service-num { flex: 0 0 47px; font-weight: 900; font-size: 32px; line-height: 1.4; color: var(--blue); }
.service-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.service-tags { font-size: 14px; color: var(--blue); }

/* ---------- Engage ---------- */
.engage { background: var(--blue); padding-block: clamp(64px, 6.67vw, 96px); }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding: 40px; }
.model .btn { margin-top: auto; }
.model-light { background: var(--bone); color: var(--ink); }
.model-dark { background: var(--green); color: var(--bone); }
.reassure { text-align: center; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-inner { display: flex; gap: 96px; align-items: flex-start; }
.faq-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.qa { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; }
.qa dt { font-weight: 700; font-size: clamp(20px, 1.53vw, 22px); }
.qa dd { font-size: 17px; color: var(--muted); }
.coffee { flex: 0 0 440px; background: var(--green); color: var(--bone); }
.coffee img { width: 100%; aspect-ratio: 440 / 441; object-fit: cover; background: var(--slot); }
.coffee-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px; }

/* ---------- Contact ---------- */
.contact { background: var(--blue); border-top: 1px solid var(--line); }
.contact-inner { display: flex; gap: 96px; align-items: stretch; }
.contact-intro { flex: 0 0 480px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.brand-mark { width: 179px; height: auto; }
.enquiry { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line-ink); min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; padding: 0; margin: 0; background: transparent; color: var(--ink);
  font: 400 18px/1.4 var(--font); outline: none; border-radius: 0;
}
.field ::placeholder { color: var(--ink); opacity: 1; }
.field textarea { resize: vertical; min-height: 25px; }
.field-message { padding-bottom: 20px; }
.field-message textarea { min-height: 69px; }
.field-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23202020' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center; }
.field:focus-within { border-bottom-color: var(--ink); }
.field.invalid { border-bottom-color: #9B2C1F; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid var(--ink); background: transparent; display: grid; place-content: center; cursor: pointer; }
.consent input:checked { background: var(--ink); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--bone); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.consent.invalid input { border-color: #9B2C1F; }
.consent a { text-decoration: underline; }
.submit-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); }
.footer-inner { display: flex; flex-direction: column; gap: 64px; padding-top: 80px; padding-bottom: 32px; }
.footer-logo { width: min(1008px, 100%); height: auto; }
.footer-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.signoff { font-weight: 700; font-size: clamp(20px, 1.67vw, 24px); text-transform: uppercase; color: var(--blue); }
.socials { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.socials a:hover, .legal a:hover { color: var(--blue); }
.legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-bone); font-size: 12px; }
.legal ul { display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 28px; }
  .people { grid-template-columns: 42% 1fr; }
  .people-art { aspect-ratio: auto; min-height: 100%; }
  .people-copy { padding-left: 48px; }
  .split-intro, .work-intro { gap: 48px; }
  .services-inner { gap: 48px; }
  .services-intro { flex-basis: 36%; }
  .faq-inner, .contact-inner { gap: 56px; }
  .coffee { flex-basis: 38%; }
  .contact-intro { flex-basis: 40%; }
  .work-note { flex-basis: 300px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
    border: 1px solid var(--ink); border-radius: 100px; background: transparent; color: var(--ink);
    font: 700 15px/1 var(--font); cursor: pointer;
  }
  .header-inner { height: 76px; }
  .logo, .logo img { width: 132px; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 24px max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bone); border-bottom: 1px solid var(--line);
  }
  .site-nav:not(.open) { display: none; }
  .site-nav > a:not(.btn) { font-size: 20px; }

  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-copy { max-width: none; padding-block: 32px 48px; gap: 24px; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .hero-art { height: min(110vw, 520px); }

  .logo-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 28px; row-gap: 4px; }
  .logo-row li { font-size: 15px; height: 44px; }
  .cards-3, .models, .project-pair, .row-2 { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .model { padding: 32px 24px; }

  .people { grid-template-columns: 1fr; }
  .people-art { aspect-ratio: 1; min-height: 0; }
  .people-copy { padding: 56px max(var(--gutter), env(safe-area-inset-right, 0px)) 56px max(var(--gutter), env(safe-area-inset-left, 0px)); }

  .split-intro, .work-intro, .services-inner, .faq-inner, .contact-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .split-heading, .work-note, .services-intro, .coffee, .contact-intro { flex-basis: auto; }
  .why-lead { text-align: left; max-width: none; }
  .services-inner { gap: 40px; }
  .service { padding: 24px 20px; gap: 16px; }
  .service-num { flex-basis: 36px; font-size: 26px; }
  .faq-inner { gap: 48px; }
  .contact-inner { gap: 48px; }
  .contact-intro { gap: 40px; }
  .brand-mark { width: 120px; }
  .footer-inner { gap: 48px; padding-top: 56px; }
  .footer-mid { align-items: flex-end; }
}
@media (max-width: 480px) {
  .legal { flex-direction: column; }
  .legal ul { gap: 20px; }
}
