:root {
  --bg: #fff;
  --bg-soft: #f9f4f5;
  --panel: #fff;
  --text: #211416;
  --muted: #725f62;
  --red: #c51224;
  --red-dark: #7d0a16;
  --line: rgba(125, 10, 22, .16);
  --max: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, rgba(197,18,36,.1), transparent 30rem),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(125,10,22,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(125,10,22,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  font-weight: 800;
  transition: top .2s ease;
}
.skip:focus { top: 18px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(197,18,36,.5);
  border-radius: 12px;
  color: var(--red);
  background: rgba(197,18,36,.07);
  font-size: .82rem;
  letter-spacing: -.08em;
}
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a { padding: 8px 9px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 750; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--red); background: rgba(197,18,36,.07); outline: none; }
.nav-contact { border: 1px solid var(--line); margin-left: 4px; }
.menu-toggle { display: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: transparent; cursor: pointer; font: inherit; }

.page-hero { padding: 150px 0 76px; border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0 0 28px; color: var(--red); font-size: .84rem; font-weight: 800; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { color: var(--muted); margin: 0 8px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .92; letter-spacing: -.07em; }
.page-lead { max-width: 760px; margin: 28px 0 0; color: #543f43; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 38px; }
.hero-meta div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.82); }
.hero-meta strong { display: block; font-size: 1.02rem; }
.hero-meta span { color: var(--muted); font-size: .88rem; }

main section { padding: 80px 0; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: end; margin-bottom: 34px; }
.kicker { margin: 0 0 8px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1; letter-spacing: -.05em; }
.section-intro { margin: 0; max-width: 650px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(75,12,22,.055); }
.content-panel { padding: clamp(28px, 5vw, 52px); }
.content-panel p { color: #534044; }
.content-panel p:first-child { margin-top: 0; }
.content-panel p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature { padding: 28px; }
.feature-number { display: block; margin-bottom: 28px; color: var(--red); font: 900 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.feature h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.feature li + li { margin-top: 7px; }
.accent-panel { color: #fff; background: linear-gradient(145deg, var(--red), var(--red-dark)); border-color: transparent; }
.accent-panel p, .accent-panel li { color: rgba(255,255,255,.84); }
.accent-panel .feature-number { color: #fff; }
.accent-panel a { color: #fff; }
.brand-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-heading > div { min-width: 0; }
.brand-logo { display: block; width: auto; max-width: 190px; max-height: 112px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; object-fit: contain; background: #fff; }
.brand-logo-small { max-width: 110px; max-height: 100px; }
.brand-logo-wide { width: min(100%, 310px); max-width: 310px; max-height: 150px; }
.accent-panel .brand-logo { border-color: rgba(255,255,255,.3); }
.wide-photo { width: 100%; height: clamp(280px, 43vw, 480px); margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; object-fit: cover; object-position: center 43%; }
.accent-panel .wide-photo { border-color: rgba(255,255,255,.24); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: #654d51; background: #fff; font-size: .78rem; font-weight: 800; }
.accent-panel .tag { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(197,18,36,.38);
  border-radius: 12px;
  color: var(--red);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); color: #fff; background: var(--red); }
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.accent-panel .button { color: var(--red); border-color: #fff; background: #fff; }
.accent-panel .fact { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.accent-panel .fact span { color: rgba(255,255,255,.72); }

.detail-block + .detail-block { margin-top: 22px; }
.detail-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.detail-title h2, .detail-title h3 { margin: 0; }
.detail-title h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.04em; }
.badge { display: inline-flex; padding: 6px 11px; border: 1px solid rgba(197,18,36,.25); border-radius: 999px; color: var(--red); background: rgba(197,18,36,.06); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.project-part { padding: clamp(26px, 4vw, 40px); }
.project-part p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 25px; }
.fact { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(197,18,36,.035); }
.fact strong { display: block; }
.fact span { color: var(--muted); font-size: .84rem; }

.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--red), rgba(197,18,36,.08)); }
.timeline-item { position: relative; padding: 0 0 44px 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 3px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: 0 0 0 5px rgba(197,18,36,.08); }
.timeline-date { margin: 0 0 5px; color: var(--red-dark); font: 800 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline-item h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.place { margin: 2px 0 8px; font-weight: 750; }
.detail { margin: 0; color: var(--muted); }

.tool-group { padding: 28px; }
.tool-group h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tool-group p { margin: 0; color: var(--muted); }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tool { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: #5a4549; background: rgba(197,18,36,.035); font-size: .86rem; font-weight: 800; }

.cta { padding: clamp(34px, 6vw, 64px); background: linear-gradient(135deg, #fff, #fff0f2); border-color: rgba(197,18,36,.3); }
.cta h2 { max-width: 760px; }
.cta p { max-width: 700px; color: var(--muted); }

footer { padding: 24px 0 34px; color: var(--muted); font-size: .84rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-row a { color: var(--red-dark); text-decoration: none; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgba(197,18,36,.55); outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; inset: 72px 20px auto; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(75,12,22,.16); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-contact { margin-left: 0; }
  .section-heading, .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .page-hero { padding: 128px 0 62px; }
  .hero-meta, .three-col, .facts { grid-template-columns: 1fr; }
  .brand-heading { align-items: flex-start; flex-direction: column; }
  .brand-logo { max-width: 155px; }
  .brand-logo-small { max-width: 95px; }
  .wide-photo { height: 300px; }
  main section { padding: 64px 0; }
  .button { width: 100%; }
  .footer-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
