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

:root {
  --bg:       #F7F8FA;
  --text:     #0F1117;
  --accent:   #4A6FA5;
  --muted:    #7A8394;
  --border:   #E2E5EA;
  --surface:  #EDEEF2;
  --dark:     #0F1117;
  --cream:    #FFFFFF;
  --warm:     #6B8CBE;
  --tile:     #161922;
  --radius:    10px;  /* video boxes */
  --radius-sm: 6px;   /* buttons and form fields */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Nav ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(247, 248, 250, 0.97);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s;
}
nav.scrolled .nav-logo { color: var(--text); }
/* On the home page the big name says it already, so the small one waits for the scroll */
.page-home .nav-logo { opacity: 0; transition: opacity 0.3s, color 0.3s; }
.page-home nav.scrolled .nav-logo { opacity: 1; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,248,250,0.6);
  transition: color 0.2s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--warm) !important; }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
  border: 1.5px solid rgba(247,248,250,0.3);
  padding: 0.55rem 1.3rem;
  transition: all 0.2s;
}
nav.scrolled .nav-cta { color: var(--text); border-color: var(--border); }
.nav-cta:hover { background: var(--accent); color: var(--cream) !important; border-color: var(--accent); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--cream);
  padding: 0.9rem 2rem;
  transition: filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.12); }

/* ─── Shared type ─── */
.sec-tag {
  display: block;
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

/* ─── Home: hero ─── */
.home-hero {
  position: relative;
  min-height: 58vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image { object-position: center 65%; } /* keeps the boot and wheels in frame when the section is cropped */
.hero-overlay {
  position: absolute; inset: 0;
  /* No dimming across the video: just a soft edge behind the name up top, and a fade into the page at the bottom */
  background: linear-gradient(to bottom, rgba(15,17,23,0.35) 0%, rgba(15,17,23,0) 25%, rgba(15,17,23,0) 70%, rgba(15,17,23,1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 4rem 3.5rem;
}
.hero-label {
  display: block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 1.25rem;
}
/* The name runs across the top of the page as one line, sized to span the width */
.hero-top {
  position: relative; z-index: 2;
  padding: 6rem 1.25rem 0;
  text-align: center;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: calc((100vw - 2.5rem) / 20.6);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: rgba(247,248,250,0.7);
  max-width: 560px;
}

/* ─── Home: service tiles ─── */
.home-services { background: var(--dark); padding: 0 4rem 6rem; }
.tiles {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.tile {
  position: relative; display: block; overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 16 / 9; /* matches the header videos, so nothing gets cropped */
  background: var(--tile);
}
.tile video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1);
  transition: filter 0.4s, transform 0.8s;
}
.tile:hover video { transform: scale(1.03); }

/* Desktop: a tile is just video until you point at it, then its title appears */
@media (hover: hover) and (pointer: fine) {
  .tile-body { opacity: 0; transition: opacity 0.3s ease; }
  .tile:hover .tile-body,
  .tile:focus-visible .tile-body { opacity: 1; }
}
.tile-empty { background: linear-gradient(135deg, #1D2333 0%, var(--tile) 100%); }
.tile-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(15,17,23,0.7) 0%, rgba(15,17,23,0) 55%);
}
.tile-num {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(247,248,250,0.4); margin-bottom: 0.5rem;
}
.tile-name {
  font-family: var(--font-display);
  font-size: min(3.5rem, calc((100cqi - 3.5rem) / 10.5)); font-weight: 800; /* sized to the tile; "CREATIVE" is the longest word */
  line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(15,17,23,0.8); /* keeps the title readable over a bright frame */
}
.tile-desc {
  font-size: 0.85rem; font-weight: 300; line-height: 1.6;
  color: rgba(247,248,250,0.65);
  margin-top: 0.6rem; max-width: 380px;
}
.tile-arrow {
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--warm); margin-top: 1rem;
  transition: transform 0.3s;
}
.tile:hover .tile-arrow { transform: translateX(6px); }

/* ─── Service pages ─── */
.page-head { background: var(--dark); padding: 10rem 4rem 3.5rem; }
.page-head-inner { max-width: 1280px; margin: 0 auto; }
.back-link {
  display: inline-block;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,248,250,0.45);
  margin-bottom: 2.5rem; transition: color 0.2s;
}
.back-link:hover { color: var(--warm); }
.page-head .sec-tag { color: var(--warm); }
.page-h1 {
  font-family: var(--font-display);
  font-size: min(6rem, calc((100vw - 8rem) / 10.5)); /* fits "CREATIVE"/"CONTENT", the longest words */
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.page-lede {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: rgba(247,248,250,0.65);
  max-width: 620px;
}

/* Button that scrolls down to the Social Content row */
.jump-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
  border: 1.5px solid rgba(247,248,250,0.25);
  padding: 0.8rem 1.4rem;
  transition: background 0.2s, border-color 0.2s;
}
.jump-btn:hover { background: var(--accent); border-color: var(--accent); }
.jump-btn[hidden] { display: none; }

.work { background: var(--dark); padding: 1rem 4rem 7rem; }
.work-grid { max-width: 1280px; margin: 0 auto; display: grid; gap: 1rem; }
.work-grid--horizontal { grid-template-columns: repeat(2, 1fr); }
.work-grid--vertical { grid-template-columns: repeat(4, 1fr); }
.work-item {
  position: relative; display: block; width: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--tile); color: inherit; font: inherit; text-align: left;
  overflow: hidden; cursor: pointer;
}
.work-item video,
.work-item .work-thumb {
  display: block;
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
}
.work-grid--horizontal .work-item video,
.work-grid--horizontal .work-item .work-thumb { aspect-ratio: 16 / 9; }

/* Horizontal cards are stills: a play button says "click to watch" */
.work-grid--horizontal .work-item::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: rgba(15,17,23,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") center / 1.6rem no-repeat;
  border: 1.5px solid rgba(247,248,250,0.5);
  opacity: 0; /* hidden until hover */
  transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
  pointer-events: none;
}
.work-grid--horizontal .work-item:hover::after,
.work-grid--horizontal .work-item:focus-visible::after { opacity: 1; background-color: var(--accent); transform: scale(1.08); }
.work-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.work-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream);
  overflow-wrap: anywhere; /* long titles break rather than run off a narrow card */
}
.work-type {
  display: block;
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--warm); margin-top: 0.2rem;
}
.work-empty {
  max-width: 1280px; margin: 0 auto;
  font-size: 0.9rem; font-weight: 300;
  color: rgba(247,248,250,0.5);
}

/* Horizontal and Vertical sections on the Branded Content and Creative pages */
.work-section { max-width: 1280px; margin: 0 auto 5rem; scroll-margin-top: 6rem; }
.work-section:last-of-type { margin-bottom: 0; }
.work-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-bottom: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(247,248,250,0.1);
}
.work-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--cream);
}
.work-section-desc { font-size: 0.88rem; font-weight: 300; color: rgba(247,248,250,0.55); max-width: 460px; }

.cta-band { background: var(--surface); padding: 6rem 4rem; text-align: center; }
.cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.cta-body {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: var(--muted); margin: 0 auto 2.25rem; max-width: 460px;
}

/* ─── Video lightbox ─── */
.lightbox {
  margin: auto; padding: 0; border: 0;
  background: transparent; overflow: visible;
  max-width: 92vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(8,9,12,0.92); }
.lightbox video {
  max-width: 92vw; max-height: 84vh;
  width: auto; height: auto; background: #000;
}
.lightbox-close {
  position: absolute; top: -2.75rem; right: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--cream); font-size: 2.25rem; line-height: 1;
}

/* ─── About page ─── */
.nav-solid #about, .nav-solid #contact { margin-top: 4.25rem; }
#about { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.about-visual { position: relative; overflow: hidden; background: var(--surface); }
.about-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-content {
  padding: 7rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.about-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  text-transform: uppercase; line-height: 1;
  margin-bottom: 2rem;
}
.about-body {
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.9; color: var(--muted); margin-bottom: 1.25rem;
}
.about-stats {
  display: flex; gap: 3rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  line-height: 1; letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label {
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.4rem;
}

#philosophy { background: var(--dark); padding: 9rem 4rem; text-align: center; }
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 4.5rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--cream);
  max-width: 900px; margin: 0 auto 2.5rem;
}
.philosophy-quote span { color: var(--warm); }
.philosophy-body {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.9; color: rgba(247,248,250,0.55);
  max-width: 520px; margin: 0 auto;
}

/* ─── Contact page ─── */
#contact {
  background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6rem; padding: 7rem 5rem;
}
.contact-h2 {
  font-family: var(--font-display);
  font-size: min(4rem, calc((50vw - 8rem) / 11)); /* fits "SOMETHING." inside its half of the page */
  font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.contact-body {
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.85; color: var(--muted); margin-bottom: 2.5rem;
}
.contact-detail { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.contact-detail-label {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2rem;
}
.contact-detail-value { font-size: 0.88rem; color: var(--text); }
.contact-detail-value a:hover { color: var(--accent); }

.social-links { display: flex; gap: 0.75rem; margin-top: 2.5rem; }
.social-link {
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1.5px solid var(--border);
  padding: 0.5rem 1rem; transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 0.8rem 1rem;
  font-size: 0.88rem; font-family: var(--font-body); font-weight: 300;
  outline: none; transition: border-color 0.2s; border-radius: 0;
  min-width: 0; /* fields shrink with their column instead of widening the page */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); background: var(--accent);
  border: none; padding: 0.9rem 2rem;
  cursor: pointer; align-self: flex-start; transition: filter 0.2s;
}
.form-submit:hover { filter: brightness(1.12); }

/* ─── Footer ─── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(247,248,250,0.07);
  padding: 2.5rem 4rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247,248,250,0.45);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,248,250,0.45); transition: color 0.2s;
}
.footer-links a:hover { color: var(--warm); }
.footer-copy { font-size: 0.66rem; color: rgba(247,248,250,0.25); letter-spacing: 0.05em; }

/* ─── Focus + reveal ─── */
.tile:focus-visible, .work-item:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--warm); outline-offset: 3px;
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Rounded corners ─── */
.tile,
.work-item,
.lightbox video { border-radius: var(--radius); }
.nav-cta,
.btn-primary,
.jump-btn,
.social-link,
.form-submit,
.form-group input,
.form-group select,
.form-group textarea { border-radius: var(--radius-sm); }

/* ─── Tablet ─── */
@media (min-width: 769px) and (max-width: 1100px) {
  .work-grid--vertical { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.85rem 1.5rem; }
  .nav-links { display: none; }

  .home-hero { min-height: 62vh; }
  .hero-content { padding: 0 1.5rem 2.5rem; }
  .hero-top { padding: 6.5rem 1rem 0; }
  .hero-h1 { font-size: calc((100vw - 2rem) / 20.6); }
  .hero-sub { font-size: 0.95rem; }

  .home-services { padding: 1rem 1.5rem 4rem; }
  .tiles { grid-template-columns: 1fr; gap: 0.75rem; }
  .tile { aspect-ratio: 16 / 9; }
  .tile-body { padding: 1.25rem; }
  .tile-name { font-size: min(3.5rem, calc((100cqi - 2.5rem) / 10.5)); }

  .page-head { padding: 7.5rem 1.5rem 2.5rem; }
  .page-h1 { font-size: calc((100vw - 3rem) / 10.5); }
  .back-link { margin-bottom: 1.75rem; }
  .work { padding: 0.5rem 1.5rem 4.5rem; }
  .work-grid { gap: 0.75rem; }
  .work-grid--horizontal { grid-template-columns: 1fr; }
  .work-grid--vertical { grid-template-columns: repeat(2, 1fr); }
  .work-caption { padding: 2rem 0.75rem 0.75rem; }
  .work-title { font-size: 0.75rem; }
  .cta-band { padding: 4.5rem 1.5rem; }
  .work-section { margin-bottom: 3.5rem; scroll-margin-top: 4.5rem; }

  .nav-solid #about, .nav-solid #contact { margin-top: 3.6rem; }
  #about { grid-template-columns: minmax(0, 1fr); }
  .about-stats { gap: 1.5rem; flex-wrap: wrap; }
  .about-visual { min-height: 50vh; }
  .about-content { padding: 4rem 1.5rem; }
  .about-h2 { font-size: min(2rem, calc((100vw - 3rem) / 10)); }
  #philosophy { padding: 6rem 1.5rem; }
  .philosophy-quote { font-size: min(2.25rem, calc((100vw - 3rem) / 12)); }

  #contact { grid-template-columns: 1fr; padding: 4rem 1.5rem 5rem; gap: 3rem; }
  .contact-h2 { font-size: calc((100vw - 3rem) / 11); }
  .form-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.5rem; }
}
