:root {
  --bg: #0b0d11;
  --ink: #ecebe7;
  --muted: #93958f;
  --muted-dim: #5c5e59;
  --line: #212420;
  --accent: #5b8cff;
  --warm: #e8b64a;

  --max: 1180px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --body-font: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #0b0d11; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: inline-block; flex-shrink: 0; background-image: url('/brand-symbol.png'); background-size: cover; }
.brand strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-dim); }

.site-nav { display: flex; gap: 32px; font-size: 14.5px; color: var(--muted); }
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }

.workana-badge { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.workana-badge i { width: 6px; height: 6px; border-radius: 50%; background: #5fbf7a; display: inline-block; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
}
.hero-spotlight {
  position: absolute;
  inset: -20%;
  background: radial-gradient(480px circle at var(--x, 20%) var(--y, 20%), rgba(91, 140, 255, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-copy, .hero > .terminal { position: relative; z-index: 1; }

.hero-kicker { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  line-height: 1.14;
  margin: 0 0 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero-lead { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 0 0 36px; }
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.primary-action {
  background: var(--ink);
  color: var(--bg);
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.primary-action:hover { opacity: 0.85; }

.secondary-action { padding: 13px 22px; border-radius: 8px; font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); transition: border-color 0.15s ease; }
.secondary-action:hover { border-color: var(--muted); }

/* Terminal */
.terminal { background: #101318; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--line); }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted-dim); }
.terminal-body { padding: 24px 22px 28px; font-family: var(--mono); font-size: 13.5px; line-height: 2; min-height: 230px; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .path { color: var(--muted); }
.terminal-line { color: var(--muted); white-space: pre-wrap; }
.terminal-line .out { color: var(--ink); }
.terminal-line .accent { color: var(--warm); }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--muted); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Expertise strip */
.expertise-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-label { font-size: 14px; color: var(--muted-dim); }
.strip-items { font-size: 14px; color: var(--muted); }

/* Section heading */
.section-heading { max-width: 62ch; margin-bottom: 56px; }
.section-heading h2, .principles-copy h2, .services-intro h2, .about-copy h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.section-heading p, .principles-copy p, .services-intro p { color: var(--muted); font-size: 16px; }

.work-section, .principles-section, .services-section, .process-section, .fit-section, .about-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
}

/* Project index list */
.project-list { display: flex; flex-direction: column; }

.project-entry {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.project-entry:last-child { border-bottom: 1px solid var(--line); }
.project-entry:nth-child(even) .project-visual { order: 2; }
.project-entry:nth-child(even) .project-body { order: 1; }

.project-index { font-family: var(--sans); font-size: 13px; color: var(--muted-dim); margin: 0 0 14px; }

.project-visual { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 1568/516; background: #101318; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); transition: filter 0.3s ease, transform 0.5s ease; }
.project-entry:hover .project-visual img { filter: saturate(1.05); transform: scale(1.015); }

.project-category { font-size: 13.5px; color: var(--muted-dim); margin: 0 0 6px; }
.project-body h3 { font-family: var(--sans); font-size: 1.65rem; margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; }
.project-summary { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; max-width: 46ch; }

.project-facts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.project-facts p { margin: 0; font-size: 14px; color: var(--muted); }
.project-facts span { color: var(--muted-dim); margin-right: 8px; }

.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--muted-dim); padding-bottom: 3px; transition: border-color 0.15s ease; }
.project-entry:hover .project-link { border-color: var(--ink); }

/* About */
.about-section { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; background: #101318; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder { color: var(--muted-dim); font-size: 13px; text-align: center; padding: 24px; line-height: 1.7; }
.about-copy p { color: var(--muted); font-size: 16px; margin: 0 0 20px; max-width: 56ch; }
.about-copy p strong { color: var(--ink); font-weight: 600; }
.stack-strip { font-size: 14px; color: var(--muted); margin-top: 26px; }

/* Principles */
.principles-section { border-top: 1px solid var(--line); }
.principles-copy { max-width: 60ch; margin-bottom: 56px; }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.principles-grid article { padding-top: 20px; border-top: 1px solid var(--line); }
.principles-grid h3 { margin: 0 0 10px; font-family: var(--sans); font-weight: 600; }
.principles-grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* Services */
.services-section { border-top: 1px solid var(--line); }
.services-intro { max-width: 60ch; margin-bottom: 56px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px 32px; }
.services-grid article { padding-top: 20px; border-top: 1px solid var(--line); }
.services-grid h3 { margin: 0 0 12px; font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.services-grid p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.services-grid .tags { font-size: 13.5px; color: var(--muted-dim); }

/* Process */
.process-section { border-top: 1px solid var(--line); }
.process-statement { max-width: 58ch; margin-bottom: 56px; }
.process-statement blockquote { font-family: var(--sans); font-size: 1.35rem; margin: 16px 0; font-weight: 500; color: var(--ink); }
.process-statement p { color: var(--muted); font-size: 16px; }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.process-list li { display: flex; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.process-list > li > span { font-family: var(--sans); font-size: 13px; color: var(--muted-dim); }
.process-list h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.process-list p { margin: 0; font-size: 14px; color: var(--muted); }

/* Fit */
.fit-section { border-top: 1px solid var(--line); }
.fit-label { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.fit-grid p { margin: 0; font-size: 15.5px; color: var(--ink); }
.fit-grid span { color: var(--muted-dim); margin-right: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 96px 24px 40px; }
.footer-kicker { font-size: 14px; color: var(--muted); }
footer h2 { font-family: var(--sans); font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 16px 0 24px; max-width: 760px; font-weight: 600; letter-spacing: -0.015em; }
.footer-copy { max-width: 50ch; color: var(--muted); margin: 0 0 56px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 36px; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.footer-brand small { color: var(--muted-dim); }
.footer-bottom p { font-size: 14px; color: var(--muted); margin: 0; }
.footer-status { display: flex; align-items: flex-start; gap: 7px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: #5fbf7a; margin-top: 7px; display: inline-block; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .project-entry { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .project-entry:nth-child(even) .project-visual,
  .project-entry:nth-child(even) .project-body { order: initial; }
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 18px; z-index: 20; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .workana-badge { display: none; }
  .site-header { position: sticky; }
}
