:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #9c9c9c;
  --gray-light: #ececec;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

em, .accent {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* grain overlay for dark sections */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='white'/%3E%3C/svg%3E");
}

.dark-surface { position: relative; background: var(--black); color: var(--white); overflow: hidden; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-white { height: 26px; width: auto; filter: invert(1); }
.brand-emblem { height: 30px; width: 30px; border-radius: 50%; object-fit: cover; }

.nav-links { display: flex; gap: 34px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links a { position: relative; padding: 4px 0; opacity: 0.65; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--white);
}

.nav-cta {
  background: var(--white); color: var(--black);
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: transparent; color: var(--white); }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--white); color: var(--white);
  border-radius: 999px; width: 44px; height: 44px; font-size: 16px;
}

/* ---------- Side nav panel ---------- */

.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw);
  background: var(--white); color: var(--black);
  z-index: 300; padding: 100px 36px 40px;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
}
.side-panel.open { transform: translateX(0); }
.side-panel .panel-links { display: flex; flex-direction: column; gap: 6px; }
.side-panel .panel-links a {
  font-family: 'Unbounded', sans-serif; text-transform: uppercase; font-size: 26px; font-weight: 700;
  padding: 10px 0; border-bottom: 1px solid var(--gray-light);
}
.panel-close {
  position: absolute; top: 26px; right: 26px; width: 44px; height: 44px;
  border-radius: 999px; border: 2px solid var(--black); background: transparent; font-size: 16px;
}
.panel-social { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-social a {
  border: 2px solid var(--black); border-radius: 999px; padding: 10px 18px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.panel-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 250;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.panel-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 120px 0 70px; }

.hero .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 26px; border: 1px solid #333; border-radius: 999px; padding: 8px 16px;
}
.hero .label::before { content: "●"; color: var(--white); font-size: 8px; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 82px);
  max-width: 960px;
}
.hero h1 .accent { color: var(--gray); }

.hero p.lead {
  margin-top: 28px; font-size: 18px; max-width: 520px; color: #bdbdbd;
  font-family: 'Inter', sans-serif;
}

.hero .actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stamp { position: absolute; top: 60px; right: 24px; color: var(--white); }

.btn {
  display: inline-block; padding: 16px 30px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border: 2px solid currentColor; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }

.on-light .btn-solid { background: var(--black); color: var(--white); }
.on-light .btn-solid:hover { background: transparent; color: var(--black); }
.on-light .btn-outline { color: var(--black); }
.on-light .btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Marquee ---------- */

.marquee-band {
  border-top: 2px solid var(--white); border-bottom: 2px solid var(--white);
  overflow: hidden; padding: 26px 0; background: var(--white);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: 'Unbounded', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 4.4vw, 52px); color: var(--black);
  padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px;
}
.marquee-track span::after { content: "✦"; font-size: 0.5em; color: var(--gray); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Contrast band ---------- */

.contrast-band { display: grid; grid-template-columns: 1fr 1fr; }
.contrast-band .panel { padding: 80px 44px; position: relative; }
.contrast-band .panel.dark { background: var(--black); color: var(--white); }
.contrast-band .panel.light { background: var(--white); color: var(--black); border-left: 2px solid var(--black); }
.contrast-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.contrast-band p { font-size: 16px; max-width: 420px; font-family: 'Inter', sans-serif; }
.contrast-band .panel.dark p { color: #d8d8d8; }
.contrast-band .panel.light p { color: #333; }

/* ---------- Sections ---------- */

section.block { padding: 100px 0; position: relative; }

.section-head { margin-bottom: 56px; max-width: 680px; }
.section-head .label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(30px, 4.6vw, 54px); }
.section-head p { margin-top: 20px; font-size: 17px; color: #333; font-family: 'Inter', sans-serif; }
.dark-surface .section-head p { color: #bdbdbd; }

/* ---------- Process steps ---------- */

.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.process-step { position: relative; padding: 10px 36px 10px 0; }
.process-step:not(:last-child)::after {
  content: "→"; position: absolute; top: 6px; right: -4px;
  font-family: 'Unbounded', sans-serif; font-size: 20px; color: var(--gray);
}
.process-step .n { font-family: 'Unbounded', sans-serif; font-size: 15px; color: var(--gray); margin-bottom: 14px; }
.process-step h3 { font-size: 26px; text-transform: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; margin-bottom: 10px; }
.process-step p { font-family: 'Inter', sans-serif; font-size: 15px; color: #333; }

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; gap: 34px; }
  .process-step:not(:last-child)::after { content: "↓"; top: auto; bottom: -26px; right: auto; left: 0; }
}

/* ---------- Manifesto ---------- */

.manifesto { position: relative; padding: 140px 0; text-align: center; overflow: hidden; }
.manifesto .ring {
  position: absolute; top: 50%; left: 50%; width: 620px; height: 620px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px solid var(--gray-light); opacity: 0.6;
}
.manifesto blockquote {
  position: relative; font-size: clamp(30px, 5vw, 60px);
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  max-width: 900px; margin: 0 auto; line-height: 1.2;
}
.manifesto .stamp { margin: 40px auto 0; }

/* ---------- Rotating stamp badge ---------- */

.stamp { position: relative; width: 132px; height: 132px; }
.stamp svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.stamp svg text { font-family: 'Unbounded', sans-serif; font-size: 8.6px; letter-spacing: 1.5px; fill: currentColor; }
.stamp .stamp-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: transparent; transition: background 0.2s, color 0.2s;
}
.stamp .stamp-center:hover { background: currentColor; }
.dark-surface .stamp .stamp-center:hover, .hero-stamp .stamp-center:hover { color: var(--black); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Service list ---------- */

.service-rows { border-top: 2px solid var(--black); }
.service-row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px;
  padding: 34px 0; border-bottom: 2px solid var(--black);
  color: var(--gray); transition: background 0.25s, color 0.25s;
}
.service-row:hover { background: var(--gray-light); color: var(--black); }
.service-row .num { font-family: 'Unbounded', sans-serif; font-size: 14px; color: var(--gray); }
.service-row:hover .num { color: #555; }
.service-row h3 { font-size: clamp(22px, 3vw, 34px); text-transform: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: inherit; }
.service-row p { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--gray); max-width: 320px; justify-self: end; text-align: right; }
.service-row:hover p { color: #555; }

/* dark-surface usage (e.g. home page) — invert to white text on black */
.dark-surface .service-rows { border-top-color: rgba(255,255,255,0.25); }
.dark-surface .service-row { border-bottom-color: rgba(255,255,255,0.25); color: var(--white); }
.dark-surface .service-row:hover { background: var(--white); color: var(--black); }
.dark-surface .service-row:hover .num, .dark-surface .service-row:hover p { color: #555; }

/* ---------- Video frame (showreel) ---------- */

.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border: 2px solid var(--black); background: #000; overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---------- Sector cloud ---------- */

.sector-cloud {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 20px 0;
}
.sector-bubble {
  border: 1.5px solid #3a3a3a; border-radius: 999px; padding: 22px 30px;
  font-size: 15px; font-weight: 600; color: var(--white);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.sector-bubble:hover { transform: rotate(0deg) scale(1.06); border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ---------- Client logo cloud ---------- */

.client-cloud {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 20px 0;
}
.client-bubble {
  width: 108px; height: 108px; border-radius: 50%;
  border: 1.5px solid #3a3a3a; background: var(--white);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s, border-color 0.3s;
}
.client-bubble:hover { transform: rotate(0deg) scale(1.08); border-color: var(--white); }
.client-bubble img { width: 74%; height: 74%; object-fit: contain; filter: grayscale(1) contrast(1.15); }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.stats .stat { padding: 50px 24px; text-align: center; border-right: 2px solid currentColor; }
.stats .stat:last-child { border-right: none; }
.stats .stat .n { font-family: 'Unbounded', sans-serif; font-size: clamp(30px, 4vw, 46px); }
.stats .stat .l { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--black); color: var(--white); padding: 130px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(32px, 6vw, 64px); margin-bottom: 26px; }
.cta-band .accent { color: var(--gray); }
.cta-band p { color: #ccc; font-size: 17px; margin-bottom: 38px; font-family: 'Inter', sans-serif; }

/* ---------- Footer ---------- */

.site-footer { padding: 70px 0 30px; font-size: 14px; background: var(--white); position: relative; }
.footer-hero { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 50px; }
.footer-hero .wordmark img { width: min(420px, 80vw); }
.footer-hero .follow { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; transform: rotate(-4deg); display: inline-block; }
.footer-social { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  background: var(--black); color: var(--white); border-radius: 999px; padding: 12px 22px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  padding: 34px 0; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light);
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray); margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 700;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 8px; color: var(--black); }
.footer-col a:hover { color: var(--gray); }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-size: 12px; color: var(--gray);
}

/* ---------- Team page ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--black); border: 2px solid var(--black); }
.team-card { background: var(--white); overflow: hidden; }
.team-card .photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--gray-light); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.3s, transform 0.4s; }
.team-card:hover .photo img { filter: grayscale(0.2) contrast(1.1); transform: scale(1.04); }
.team-card .info { padding: 20px 20px 26px; }
.team-card h3 { font-size: 17px; text-transform: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; margin-bottom: 4px; }
.team-card .role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-item { margin-bottom: 28px; }
.contact-item .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 6px; }
.contact-item .value { font-size: 22px; font-weight: 600; font-family: 'Unbounded', sans-serif; text-transform: none; }

.map-block { border: 2px solid var(--black); height: 100%; min-height: 320px; }
.map-block iframe { width: 100%; height: 100%; min-height: 320px; border: none; filter: grayscale(1) contrast(1.1); }

/* ---------- About page values ---------- */

.values-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--black); border: 2px solid var(--black); }
.values-list .card { background: var(--white); padding: 40px 28px; text-align: center; }
.values-list .card .num { font-family: 'Unbounded', sans-serif; font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.values-list .card h3 { font-size: 19px; text-transform: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; margin-bottom: 10px; }
.values-list .card p { font-family: 'Inter', sans-serif; font-size: 14px; color: #333; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .contrast-band { grid-template-columns: 1fr; }
  .contrast-band .panel.light { border-left: none; border-top: 2px solid var(--black); }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-row p { display: none; }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 40px; }
  .hero-stamp { display: none; }
  section.block { padding: 64px 0; }
  .manifesto { padding: 90px 0; }
  .footer-hero { flex-direction: column; }
}
