:root {
  --bg: #0b0b0c;
  --bg-elevated: #15161a;
  --text: #f5f5f3;
  --text-dim: #9a9aa0;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #f5f5f3;
  --accent-text: #0b0b0c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f2ee;
  --bg-elevated: #ffffff;
  --text: #131313;
  --text-dim: #6c6c70;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #131313;
  --accent-text: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  font-variant-numeric: tabular-nums;
}

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

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  right: 0;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.theme-toggle span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
  color: var(--text-dim);
}

.theme-toggle span.is-active {
  background: var(--accent);
  color: var(--accent-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

.btn-solid:hover {
  transform: translateY(-2px);
}

.btn-outline:hover {
  border-color: var(--text);
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-title .accent-text {
  color: var(--text-dim);
  font-weight: 400;
}

.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-card-media {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-card-info {
  padding: 26px 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-card-info .role {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-card-info .name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Placeholder image blocks */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #2a2c33, #111216);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 220px;
}

[data-theme="light"] .ph {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.05), transparent 60%),
    linear-gradient(160deg, #e4e3de, #cfcdc5);
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 14px);
}

[data-theme="light"] .ph::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 14px);
}

.ph-label {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

[data-theme="light"] .ph-label {
  color: rgba(0, 0, 0, 0.55);
}

.ph-portrait::after,
.ph-square::after,
.ph-wide::after {
  content: "";
}

/* ---------- Stats strip ---------- */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 64px;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 32px;
}

.stat .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat .label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Section heads ---------- */

.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 50ch;
  margin-top: 10px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover {
  color: var(--text);
  gap: 12px;
}

/* ---------- Work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card .ph {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.work-card.landscape .ph {
  aspect-ratio: 16 / 10;
}

.work-meta {
  padding: 20px 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.work-meta h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-meta p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ---------- About / approach ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid h2 {
  margin-bottom: 22px;
}

.about-grid p + p {
  margin-top: 18px;
}

.about-grid p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
}

.skill-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}

.skill-row span.no {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Page intro (portfolio / contact) ---------- */

.page-intro {
  padding: 64px 0 20px;
}

.page-intro .eyebrow {
  margin-bottom: 14px;
}

.page-intro h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.page-intro p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 60ch;
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

.work-card[hidden] {
  display: none;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info .info-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info .info-row:last-of-type {
  border-bottom: none;
}

.contact-info .info-row .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-info .info-row .value {
  font-size: 19px;
  font-weight: 700;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.social-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.social-pill:hover {
  color: var(--text);
  border-color: var(--text);
}

form.contact-form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 13px;
  color: var(--text-dim);
}

.form-note.is-error {
  color: #ef4d3e;
}

/* Honeypot — visually hidden but present in the DOM/tab order trap for bots */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .wrap {
    padding: 0 24px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 28px;
  }

  .work-grid,
  .work-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 72px 0;
  }

  .cta-band {
    padding: 48px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav a:hover,
  .nav a.active {
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }

  .menu-btn {
    display: flex;
  }

  .nav-actions .btn-solid {
    display: none;
  }

  .work-grid,
  .work-grid.two-col {
    grid-template-columns: 1fr;
  }

  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 28px 24px;
  }

  .stat .num {
    font-size: 28px;
  }

  .hero {
    padding: 56px 0 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    align-items: flex-start;
  }

  .work-meta {
    flex-wrap: wrap;
  }

  .cta-band {
    padding: 36px 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .btn {
    width: 100%;
  }

  .contact-info {
    padding: 6px 24px;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 18px;
  }

  .site-header .wrap {
    height: 68px;
  }

  .hero-sub,
  .page-intro p,
  .section-desc,
  .about-grid p {
    font-size: 15px;
  }

  .filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .work-card .ph,
  .work-card.landscape .ph {
    aspect-ratio: 4 / 3;
  }

  .skill-row {
    font-size: 14px;
  }

  .info-row .value {
    font-size: 17px;
  }
}
