/* ==========================================================================
   Centrifug Production
   ========================================================================== */

:root {
  --bg: #010101;
  --bg-2: #080808;
  --bg-3: #121212;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f2;
  --muted: rgba(244, 244, 242, 0.58);
  --accent: #ffc300; /* logo yellow */
  --accent-ink: #0a0a0a;

  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-heading: "Oswald", "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Type ---------- */


.display {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}
.display-xl { font-size: clamp(48px, 9vw, 136px); }
.display-l  { font-size: clamp(40px, 6.4vw, 96px); }
.display-m  { font-size: clamp(32px, 4.2vw, 60px); }
.display-s  { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(1, 1, 1, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.nav a.nav-cta { color: var(--accent-ink); background: var(--accent); margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav a { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
  .nav a.nav-cta { margin: 16px 0 0; font-size: 20px; padding: 12px 28px; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
}

/* ---------- Light beams (signature motif) ---------- */

.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.beams::before,
.beams::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 220vmax; height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 8deg,
    rgba(255, 195, 0, 0.06) 16deg,
    rgba(255, 195, 0, 0.16) 25deg,
    rgba(255, 195, 0, 0.22) 30deg,
    rgba(255, 195, 0, 0.16) 35deg,
    rgba(255, 195, 0, 0.06) 44deg,
    transparent 52deg,
    transparent 112deg,
    rgba(255, 255, 255, 0.04) 120deg,
    rgba(255, 255, 255, 0.10) 130deg,
    rgba(255, 255, 255, 0.13) 135deg,
    rgba(255, 255, 255, 0.10) 140deg,
    rgba(255, 255, 255, 0.04) 150deg,
    transparent 158deg,
    transparent 222deg,
    rgba(255, 195, 0, 0.05) 230deg,
    rgba(255, 195, 0, 0.14) 240deg,
    rgba(255, 195, 0, 0.19) 246deg,
    rgba(255, 195, 0, 0.14) 252deg,
    rgba(255, 195, 0, 0.05) 262deg,
    transparent 270deg
  );
  filter: blur(16px);
  will-change: transform;
  animation: spin 60s linear infinite;
}
.beams::after {
  animation-duration: 95s;
  animation-direction: reverse;
  opacity: 0.5;
}
.beams-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 25%, var(--bg) 75%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: clamp(600px, 100svh, 1100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  isolation: isolate;
}
.hero .beams, .hero .beams-fade { z-index: -1; }

.hero-logo {
  width: min(780px, 84vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(255, 195, 0, 0.12));
}
.hero-tagline {
  margin: 44px auto 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 36ch;
  text-wrap: balance;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

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

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 100px) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .display { margin-top: 0; }

.text-link {
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.text-link:hover { border-color: var(--accent); color: var(--accent); }

/* Intro statement */
.statement .display {
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.18;
  text-wrap: pretty;
}
.statement p.display { color: var(--text); }
.statement p.display em { font-style: normal; color: var(--muted); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 36px 28px 44px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service .num {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.service h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 56px 0 14px;
}
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service li {
  font-size: 12px;
  font-family: var(--font-label);
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0 36px; border-right: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service h3 { margin-top: 24px; }
}

/* ---------- Project cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}
.project-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .project-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid, .project-grid.three { grid-template-columns: 1fr; } }

.project-card { display: block; cursor: pointer; }
.project-card:hover .project-meta h3 { color: var(--accent); }
.project-meta h3 { transition: color 0.3s var(--ease); }

.project-open {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card:hover .project-open,
.project-card:focus-visible .project-open { opacity: 1; transform: none; }
@media (hover: none) { .project-open { opacity: 1; transform: none; } }
.project-card[hidden] { display: none; }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-media img,
.project-card:hover .project-media .visual { transform: scale(1.04); }

/* Generated stage-light visuals used until real photos are added */
.visual {
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
  background:
    radial-gradient(ellipse 60% 40% at 50% 105%, var(--c2, #ff2d55) 0%, transparent 70%),
    conic-gradient(from var(--a, 200deg) at var(--x, 50%) -10%, transparent 0deg, var(--c1, #ffc300) 8deg, transparent 18deg, transparent 32deg, var(--c1, #ffc300) 38deg, transparent 46deg, transparent 60deg, var(--c3, #fff) 64deg, transparent 70deg, transparent 360deg),
    #070707;
  opacity: 0.9;
}
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}

.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.project-meta h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}
.project-meta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.project-meta .year {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,0.35); }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.quote {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-label);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

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

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 6vw, 80px);
  text-align: center;
  isolation: isolate;
  background: var(--bg-2);
}
.cta .beams, .cta .beams-fade { z-index: -1; }
.cta .beams-fade { background: radial-gradient(ellipse at center, transparent 0%, var(--bg-2) 70%); }
.cta .display { margin: 0 auto; max-width: 14ch; }
.cta .lead { margin: 24px auto 36px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 7vw, 96px);
  isolation: isolate;
  overflow: hidden;
}
.page-hero .beams { z-index: -1; opacity: 0.55; }
.page-hero .beams::before, .page-hero .beams::after { top: 0; }
.page-hero .beams-fade { z-index: -1; background: linear-gradient(to bottom, rgba(1,1,1,0.4), var(--bg) 85%); }
.page-hero .display { margin-top: 0; max-width: 24ch; }
.page-hero .lead { margin-top: 28px; }

/* ---------- About ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split p { margin: 0 0 1.2em; color: var(--muted); }
.split p:first-child { color: var(--text); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 40px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 32px; }
.stat .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .value .accent { font-size: 0.6em; vertical-align: top; margin-left: 4px; }
.stat .label { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--accent);
}
.process h3 {
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.process p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .process li { grid-template-columns: 48px 1fr; }
  .process p { grid-column: 2; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 30px);
  letter-spacing: -0.02em;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact-email:hover { color: var(--accent); }

.contact-list { list-style: none; padding: 0; margin: 48px 0 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a:hover { color: var(--accent); }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.chip span:hover { color: var(--text); border-color: rgba(255,255,255,0.35); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-note { font-size: 14px; color: var(--muted); margin: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 20px 0 0; font-size: 15px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Project window ---------- */

.modal-open { overflow: hidden; }

.pmodal {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pmodal[open] { animation: pmodal-in 0.45s var(--ease); }
.pmodal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes pmodal-in { from { opacity: 0; transform: translateY(24px) scale(0.985); } }

.pmodal-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 14px 24px;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pmodal-count { font-family: var(--font-label); font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.pmodal-nav { display: flex; gap: 8px; }
.pmodal-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pmodal-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pmodal-close { margin-left: 8px; }

.pmodal-body { padding: clamp(16px, 3vw, 32px); outline: none; }

.pmodal-video, .pmodal-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.pmodal-video { margin-bottom: 16px; }
.pmodal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pmodal-main img { width: 100%; height: 100%; object-fit: cover; }

.pmodal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pmodal-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s, border-color 0.25s;
}
.pmodal-thumb:hover { opacity: 0.85; }
.pmodal-thumb.active { opacity: 1; border-color: var(--accent); }
.pmodal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pmodal-info {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(28px, 4vw, 48px);
}
.pmodal-tag { position: static; display: inline-block; margin-bottom: 18px; }
.pmodal-text { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.pmodal-text p { margin: 0 0 1em; }

.pmodal-facts { margin: 0; border-top: 1px solid var(--line); }
.pmodal-facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.pmodal-facts dt { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; color: var(--muted); padding-top: 2px; }
.pmodal-facts dd { margin: 0; }
.pmodal-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pmodal-roles li { font-size: 13px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; }

.pmodal-foot {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .pmodal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .pmodal-info { grid-template-columns: 1fr; }
  .pmodal-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
