:root {
  --blue: #6eade6;
  --blue-soft: #cce2f6;
  --orange: #e65a15;
  --pink: #fed3ec;
  --pink-soft: #fff0f9;
  --peach: #f6c5ad;
  --tile: #f6f6f6;
  --ink: #000;
  --shadow: 0 12px 22px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: clip; font-family: Montserrat, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }

.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1100px, 100% - 32px); margin-inline: auto; }
/* Portfolio banner stops at the navbar's width, its orange band keeps going edge to edge.
   Hero and contact are full-bleed instead: their photos grow with the screen. */
.portfolio-banner { width: min(1100px, 100%); margin-inline: auto; }
.band-orange { background: var(--orange); }
@media (min-width: 1101px) {
  .portfolio-banner > img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
}
.section { padding-block: 32px 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.brand img { width: 161px; }
.site-nav { display: flex; gap: 36px; }
.site-nav a { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-nav a:hover { border-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #000; margin: 6px 0; }

/* Buttons & pills */
.btn { display: inline-block; text-transform: uppercase; border-radius: 999px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px rgba(0, 0, 0, .22); }
.btn-white { background: #fff; padding: 18px 44px; font-size: 14px; letter-spacing: .1em; }
.btn-blue { background: var(--blue); color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .12em; padding: 15px 60px; }
.pill { display: table; margin: 0 auto 28px; padding: 8px 24px; border-radius: 999px; font-size: clamp(22px, 3vw, 28px); font-weight: 700; text-transform: uppercase; }
.pill-pink { background: #feeff8; }
.pill-blue { background: var(--blue-soft); }
.pill-peach { background: var(--peach); font-weight: 400; margin-top: 48px; }

/* Hero */
/* Full-bleed 16:9 (the client's mockup framing, pre-cropped into hero.webp); never taller than the screen below the navbar.
   The copy is sized in cqw so it scales with the photo. */
.hero { position: relative; width: 100%; overflow: hidden; background: #e9e6e6; aspect-ratio: 16 / 9; min-height: 380px; max-height: max(380px, calc(100svh - 104px)); container-type: inline-size; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-copy { position: absolute; right: 12%; top: 57%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; width: 31%; }
.hero h1 { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.hero-kicker { font-size: max(20px, 3.45cqw); text-transform: uppercase; line-height: 1; margin-bottom: -4%; position: relative; z-index: 1; text-shadow: 0 3px 6px rgba(0, 0, 0, .2); }
/* White over the photo; phones show the copy on a light panel below it, so <picture> swaps in the black wordmark there */
.hero h1 picture { display: contents; }
.hero-wordmark { width: 100%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.hero .btn-white { margin-top: 2.5cqw; white-space: nowrap; font-size: max(12px, 1.27cqw); padding: 1.64cqw 4cqw; }

/* About / team: every piece sits where it does in the Canva artboard (x 0..1024, y 770..1275) */
.team { position: relative; width: min(1024px, 100%); margin-inline: auto; aspect-ratio: 1024 / 505; container-type: inline-size; }
.about .pill { margin-bottom: 0; }
.member { display: contents; }
.photo { position: absolute; z-index: var(--z); width: calc(303.6 / 1024 * 100%); aspect-ratio: 303.6 / 370.8; object-fit: cover;
  left: calc(var(--px) / 1024 * 100%); top: calc((var(--py) - 770) / 505 * 100%);
  transform: translate(-50%, -50%) rotate(var(--rot)); box-shadow: 10px 12px 18px rgba(0, 0, 0, .28); }
/* Cards are a little wider than the artboard's 260 so every name and job title fits on one line */
.member figcaption { position: absolute; z-index: 4; width: calc(282 / 1024 * 100%); height: calc(118.8 / 505 * 100%);
  left: calc(var(--cx) / 1024 * 100%); top: calc((1205.8 - 770) / 505 * 100%); transform: translate(-50%, -50%);
  background: #f8f8f8; box-shadow: 8px 12px 16px rgba(0, 0, 0, .22);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 1cqw; }
.member strong { font-weight: 800; font-size: max(12px, 1.8cqw); line-height: 1.15; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.member span { font-size: max(9px, 1.2cqw); white-space: nowrap; }

.story-title { display: flex; justify-content: center; margin: 56px 0 24px; }
.story-title img { width: 196px; }
.story { background: var(--pink-soft); padding: 48px clamp(20px, 5vw, 50px) 44px; text-align: center; }
.story p { max-width: 880px; margin: 0 auto; font-size: 14px; line-height: 1.4; }

/* Socials */
.socials { display: flex; justify-content: center; gap: 10px; color: var(--orange); margin-top: 18px; }
.socials svg { width: 40px; height: 40px; display: block; transition: transform .2s; }
.socials a:hover svg { transform: scale(1.12); }
.socials-sm svg { width: 22px; height: 22px; }
.socials-lg svg { width: 52px; height: 52px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.card { background: #fcfcfc; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 30px; }
.card h3 { width: 100%; background: var(--blue); color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 12px; }
.card p { flex: 1; margin: 0; padding: 24px 28px 30px; font-size: 16px; line-height: 1.38; }
.card strong { font-weight: 700; }

/* Portfolio */
.portfolio-banner { position: relative; aspect-ratio: 1024 / 395; min-height: 240px; overflow: hidden; display: grid; place-items: center; background: var(--orange); }
.portfolio-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.portfolio-banner::after { content: ""; position: absolute; inset: 0; background: rgba(230, 100, 40, .84); }
.portfolio-banner h2 { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; color: #fff; font-weight: 400; }
.logo-white { width: clamp(220px, 37vw, 380px); filter: brightness(0) invert(1); }
.portfolio-banner span { font-size: clamp(24px, 3.3vw, 33px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }

.logo-grid { width: min(886px, 100% - 40px); list-style: none; padding: 0; margin-block: 48px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.logo-grid li { background: var(--tile); aspect-ratio: 282 / 194; padding: 9% 16%; min-width: 0; }
.logo-grid img { width: 100%; height: 100%; object-fit: contain; }
.logo-grid .logo-more { display: grid; place-items: center; padding: 0; font-size: clamp(18px, 3.2vw, 30px); font-weight: 700; }

/* Contact */
/* Full-bleed like the hero: pink panel keeps the contact details centred, the photo fills the rest and grows with the screen */
.contact { width: 100%; display: grid; grid-template-columns: 402fr 623fr; grid-template-rows: minmax(0, 1fr); aspect-ratio: 1024 / 576; min-height: 440px; max-height: max(440px, calc(100svh - 104px)); margin-top: 48px; }
.contact-info { background: var(--pink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
.mark { width: clamp(90px, 12vw, 124px); margin-bottom: clamp(28px, 6vw, 70px); }
.contact h2 { font-size: 28px; font-weight: 700; text-transform: uppercase; }
.contact p { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.3; margin: clamp(18px, 3vw, 34px) 0 clamp(24px, 5vw, 54px); }
.contact p a:hover { color: var(--orange); }
.contact-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 40%; }

/* Footer */
.site-footer { padding-top: 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.footer-logo { width: 250px; }
.footer-nav { background: var(--blue); width: 210px; min-height: 180px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.footer-nav a { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { text-align: center; font-size: 12px; color: #777; margin: 28px 0 0; padding-bottom: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
  .site-nav.open { max-height: 360px; padding-block: 8px 20px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid #eee; }
  .header-inner { height: 76px; }
  .brand img { width: 130px; }
  html { scroll-padding-top: 76px; }

  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-logo { width: 190px; }
}

@media (max-width: 700px) {
  .hero { aspect-ratio: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; }
  .hero-bg { position: static; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero-copy { position: static; transform: none; width: 100%; padding: 28px 20px 36px; background: #eceaea; }
  .hero-wordmark { width: min(300px, 80%); }
  .hero-kicker { font-size: 30px; }
  .hero .btn-white { margin-top: 28px; font-size: 14px; padding: 18px 44px; }

  .team { aspect-ratio: auto; width: min(320px, 100% - 40px); display: grid; gap: 56px; padding-top: 16px; }
  .member { display: flex; flex-direction: column; align-items: center; }
  .photo { position: relative; left: auto; top: auto; width: 92%; transform: rotate(var(--rot)); }
  .member figcaption { position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none; margin-top: -28px; padding: 20px 12px; }
  .member strong { font-size: 18px; }
  .member span { font-size: 13px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contact { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; min-height: 0; max-height: none; }
  .contact-photo { height: auto; aspect-ratio: 4 / 5; }
  .mark { margin-bottom: 40px; }
}
