:root {
  --bg: #ffffff;
  --ink: #0a0e12;
  --ink-soft: #4a5159;
  --ink-faint: #8b919a;
  --line: #e6e8eb;
  --surface: #f6f7f8;
  --accent: #ff4d2e;
  --accent-ink: #ffffff;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 12vw, 160px);
  --radius: 14px;
  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: var(--section);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(255,77,46,0.45), transparent 70%),
    radial-gradient(50% 50% at 80% 70%, rgba(10,14,18,0.18), transparent 60%),
    linear-gradient(135deg, #ffeae3, #ffd7cc 60%, #ffcfc0);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,14,18,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,14,18,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: multiply;
}
.hero-art-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(10,14,18,0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.hero-art-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Section base ---------- */
section { padding: var(--section) 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}
.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- About strip ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-grid p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffd7cc, #ffeae3);
  position: relative;
}
.card:nth-child(2) .card-thumb { background: linear-gradient(135deg, #cfd5dc, #eef0f3); }
.card:nth-child(3) .card-thumb { background: linear-gradient(135deg, #0a0e12, #2a3038); }
.card:nth-child(4) .card-thumb { background: linear-gradient(135deg, #ffcfc0, #ff8c70); }
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.card-body { padding: 24px 28px 28px; }
.card-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 8px;
}
.card-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- CTA strip ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
}
.cta h2 .accent { color: var(--accent); }
.cta p { color: rgba(255,255,255,0.7); margin: 16px 0 0; max-width: 48ch; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.cta .btn-primary { background: var(--accent); color: var(--accent-ink); }
.cta .btn-primary:hover { background: #fff; color: var(--ink); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.2); }
.cta .btn-ghost:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- MSI News (feed) ---------- */
.msi-strip { background: var(--surface); border-block: 1px solid var(--line); }
.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head-row > div { max-width: 640px; }

.feed-section { padding-top: clamp(40px, 6vw, 72px); }
.feed {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  max-width: 760px;
}
.feed-preview { gap: 24px; }
.entry {
  padding-bottom: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry-meta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.entry-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}
.entry-body {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.entry-photo {
  margin: 20px 0 0;
}
.entry-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.entry-photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Subpage hero ---------- */
.page-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 14ch;
}
.page-hero p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

.prose {
  max-width: 720px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  margin: 56px 0 16px;
  font-weight: 700;
}
.prose p { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .about-grid, .work-grid, .cta, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-art { order: -1; aspect-ratio: 16 / 11; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px var(--gutter) 24px;
    gap: 18px;
  }
  .footer-grid { gap: 28px; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
