:root {
  --bg: #0b0b0c;
  --panel: #111214;
  --line: #1f2227;
  --text: #ececec;
  --muted: #9ca3af;
  --soft: #6b7280;
  --red: #e10600;
  --red-soft: rgba(225, 6, 0, 0.1);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0b0b0c;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease;
}

body.scrolled header {
  background: rgba(11, 11, 12, 0.96);
  border-bottom-color: rgba(225, 6, 0, 0.24);
}

.header-inner {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: min-height 180ms ease, transform 180ms ease;
}

body.scrolled .header-inner {
  min-height: 62px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  transition: height 180ms ease, transform 180ms ease;
}

body.scrolled .logo-img {
  height: 24px;
}

.hero-tagline {
  margin-top: 16px;
  font-size: 20px;
  color: white;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--red);
}

nav a {
  margin-left: 24px;
  font-size: 14px;
  color: var(--muted);
  transition: color 180ms ease, opacity 180ms ease;
}
nav a:hover { color: #fff; }

main { padding: 42px 0 0 0; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 56px;
}

.hero-main,
.panel,
.project,
.quote-box,
.footer-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-main { padding: 28px; }

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h1 .accent { color: var(--red); }

.hero p {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary { background: var(--red); color: white; }
.btn-secondary { border: 1px solid var(--line); color: white; background: transparent; }

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.note {
  background: #15171b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.note-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--soft);
}
.note-value { margin-top: 8px; font-size: 15px; color: white; }

.panel { padding: 22px; border-left: 4px solid var(--red); }

.panel-title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.row span:first-child { color: var(--soft); }
.row span:last-child { text-align: right; color: white; }

.section { margin-bottom: 30px; }

.section h2 {
  font-size: 34px;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.projects { display: grid; gap: 16px; }

.project {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.project h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225, 6, 0, 0.25);
  background: var(--red-soft);
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.project p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.project ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #d6d9df;
}
.project li { margin-bottom: 8px; line-height: 1.7; }

.project-link {
  align-self: center;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #17191d;
  color: white;
  font-size: 14px;
}
.project-link:hover { border-color: rgba(225, 6, 0, 0.35); }

.quote-box {
  padding: 26px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  transition: opacity 0.4s ease;
}
.quote-box .accent { color: var(--red); }

footer { border-top: 1px solid var(--line); padding: 22px 0 44px; }

.footer-box {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-box strong { display: block; margin-bottom: 8px; font-size: 18px; }
.footer-box span { color: var(--muted); font-size: 14px; }
.footer-box a {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--red);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero, .project, .hero-notes { grid-template-columns: 1fr; }
  .project-link { justify-self: start; }
}

@media (max-width: 760px) {
  nav { display: none; }
  .container { width: min(calc(100% - 24px), var(--max)); }
}
