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

:root {
  --bg:        #ffffff;
  --fg:        #0f0e0d;
  --title:     #7fb069;
  --accent:    #ee8434;
  --muted:     #7c7b78;
  --line:      #d8d4cb;
  --surface:   #eae7e0;
  --font-sans:     'Space Grotesk', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
  --font-display:  'DM Sans', sans-serif;
  --max:       1100px;
  --pad:       4rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1c1b19;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: #fff;
  border-color: #fff;
}

.nav-links .nav-resume {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 14px;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-links .nav-resume:hover {
  background: #fff;
  color: #1c1b19;
  border-color: #fff;
}

/* ── NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  padding: 6px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.nav-toggle:hover { color: #fff; }

/* ── ACCENT RULE ── */
.accent-rule {
  height: 3px;
  background: var(--accent);
}

/* ── HERO ── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4.5rem;
  margin-bottom: 2.5rem;
}

.hero-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hero-heading {
  font-size: clamp(3.6rem, 9.5vw, 7.8rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 3.5rem;
}

.hero-heading .star {
  color: var(--accent);
  font-style: normal;
}

.hero-divide {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  padding-bottom: 6rem;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-bio strong {
  color: var(--fg);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 4px;
}

.hero-actions .btn-outline {
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 11px 22px;
  border: 1.5px solid var(--fg);
  border-radius: 2px;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ── SHARED SECTION WRAPPER ── */
.section-wrap {
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem var(--pad);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 3.5rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 0.55em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--title);
  flex-shrink: 0;
}

.section-title strong {
  font-weight: 700;
}

.section-rule {
  height: 1px;
  background: var(--line);
  flex-grow: 1;
  align-self: center;
}

/* ── SECTION QUOTE ── */
.section-quote {
  margin-bottom: 3rem;
  text-align: center;
}

.section-quote p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0.6rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-quote cite {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-style: normal;
}

/* ── SUB-SECTIONS ── */
.section-icon {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.25s;
}

.sub-section:hover .section-icon { color: var(--accent); }

.section-tag-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.section-tag-link:hover .section-icon  { color: var(--accent); }
.section-tag-link:hover .section-title { color: var(--accent); }

.sub-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sub-section {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.sub-section:last-child {
  border-right: none;
  padding-right: 0;
}

.sub-section + .sub-section {
  padding-left: 2rem;
}

.sub-section .section-label {
  margin-bottom: 1rem;
}

/* ── TECHNOLOGY ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tech-item {
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--line);
}

.tech-item:first-child { padding-left: 0; }

.tech-item + .tech-item { padding-left: 2rem; }

.tech-item:last-child {
  border-right: none;
  padding-right: 0;
}

.tech-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.6rem;
}

.tech-icon {
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 1.2rem;
  transition: color 0.25s;
  display: block;
}

.tech-item:hover .tech-icon { color: var(--accent); }

.tech-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
}

.tech-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── PHOTOGRAPHY ITEMS ── */
.photo-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

/* ── PHOTOGRAPHY ── */
.slideshow {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.slides {
  position: relative;
  width: 100%;
  height: 520px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.92);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.slide-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

.slide-prev { left: 1.2rem; }
.slide-next { right: 1.2rem; }

.slide-footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.slide-dot {
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.slide-dot.active {
  background: #fff;
  width: 36px;
}

.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

.photo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  transition: gap 0.25s;
}

.arrow-link:hover { gap: 14px; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-statement {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.contact-statement .accent { color: var(--accent); }

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.contact-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-pi {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-pi img {
  width: 18px;
  height: auto;
  opacity: 0.55;
}

.footer-pi a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.footer-pi a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad: 2rem; }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
  }

  .tech-item {
    padding: 1.8rem;
    border: none;
    background: var(--bg);
  }

  .tech-item:first-child { padding: 1.8rem; }
  .tech-item + .tech-item { padding-left: 1.8rem; }
  .tech-item:last-child { padding-right: 1.8rem; }

  .hero-bottom { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .photo-items { gap: 1px; background: var(--line); }
  .sub-sections { grid-template-columns: 1fr; }
  .sub-section { border-right: none; padding-right: 0; }
  .sub-section + .sub-section { padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #1c1b19;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 0 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.8rem 2rem;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    border-bottom: none !important;
  }
  .nav-links a:hover { color: #fff; }
  .nav-links .nav-resume {
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 2px;
    text-align: center;
    padding: 0.8rem 2rem !important;
    color: #fff !important;
  }
  .nav-links .nav-resume:hover { background: #fff; color: #1c1b19 !important; }
  .tech-grid { grid-template-columns: 1fr; }
  .photo-items { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }

  .hero-heading        { font-size: clamp(4.3rem, 9.5vw, 7.8rem); }
  .hero-bio            { font-size: 18px; }
  .hero-status,
  .hero-idx            { font-size: 12px; }
  .section-title       { font-size: clamp(1.1rem, 5.6vw, 2rem); }
  .tech-name           { font-size: 18px; }
  .tech-desc           { font-size: 16px; }
  .tech-num            { font-size: 11px; }
  .contact-statement   { font-size: clamp(2.2rem, 3.8vw, 2.9rem); }
  .contact-note        { font-size: 13px; }
  .photo-caption       { font-size: 12px; }
  .arrow-link          { font-size: 13px; }
}
