:root {
  --accent: #bf1e2e;
  --accent-dark: #8f1622;
  --ink: #17151a;
  --ink-soft: #45414a;
  --paper: #ffffff;
  --paper-alt: #f5f3f2;
  --border: #e7e3e1;
  --max-width: 1140px;
  --radius: 6px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  height: 28px;
  width: auto;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-bg::after { content: ""; }

.hero-inner {
  position: relative;
  padding: 128px 24px 104px;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 36px;
  max-width: 560px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline:hover { border-color: #fff; }

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 48px;
  font-size: 1.05rem;
}

/* Portfolio grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 21, 26, 0.1);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 20px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-skills h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 16px;
}

.about-skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-skills li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.about-skills li:last-child { border-bottom: 1px solid var(--border); }

/* Contact */
.contact-inner { text-align: center; }

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  border-bottom: 2px solid transparent;
}

.contact-email:hover { border-bottom-color: var(--accent); }

.social-links {
  margin-top: 24px;
}

.social-links a {
  font-weight: 600;
  color: var(--ink-soft);
}

.social-links a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 15, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox-content {
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 68vh;
  width: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 20px;
  max-width: 600px;
}

.lightbox-caption h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.lightbox-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 12px;
  flex-shrink: 0;
}

.lightbox-nav:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .nav-toggle { display: flex; }

  .hero-inner { padding: 96px 24px 72px; }

  .about-inner { grid-template-columns: 1fr; gap: 32px; }

  .lightbox-nav { font-size: 2.2rem; padding: 6px; }
}
