:root {
  --bg: #0a0a0a;
  --panel: #11100f;
  --panel-strong: #181512;
  --line: rgba(244, 233, 216, 0.13);
  --line-strong: rgba(232, 86, 29, 0.5);
  --text: #f5efe5;
  --muted: #a79c8d;
  --soft: #6f675e;
  --accent: #e8561d;
  --accent-2: #f4ad3d;
  --teal: #5bb7a5;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(145deg, rgba(232, 86, 29, 0.12), transparent 28%, rgba(91, 183, 165, 0.08) 68%, transparent),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.05), transparent 28%),
    repeating-radial-gradient(circle at 12% 16%, rgba(255,255,255,0.24) 0 0.7px, transparent 0.9px 3px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), 1240px);
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(232, 86, 29, 0.1);
}

.brand-mark span {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

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

.site-nav a {
  position: relative;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 220ms ease;
}

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

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.section-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100svh;
  padding: 112px 0 58px;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 15% auto auto -12%;
  width: 42%;
  height: 58%;
  border: 1px solid rgba(232, 86, 29, 0.25);
  transform: rotate(-8deg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 11ch;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(5.2rem, 15vw, 13rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 34px rgba(232, 86, 29, 0.12);
}

.hero-text {
  max-width: 670px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 52px;
  min-width: 154px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #180904;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.hero-portrait {
  justify-self: end;
  width: min(100%, 450px);
}

.portrait-ring {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  padding: 12px;
  background:
    linear-gradient(140deg, rgba(232, 86, 29, 0.4), transparent 42%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.portrait-ring::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(245, 239, 229, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.92) contrast(1.08);
}

.portrait-caption {
  display: grid;
  gap: 8px;
  margin: -28px auto 0;
  width: min(86%, 330px);
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.portrait-caption span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portrait-caption strong {
  color: var(--text);
  font-size: 0.98rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.05;
  white-space: nowrap;
}

.about,
.work,
.experience,
.education,
.skills,
.contact {
  padding: clamp(74px, 11vw, 140px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(250px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 4vw, 46px);
  padding: clamp(34px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-info {
  position: sticky;
  top: 110px;
  align-self: start;
}

.project-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.project h3,
.timeline-item h3,
.education-card h3,
.skill-card h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 1;
}

.project p,
.timeline-item p,
.education-card p,
.skill-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.project-shot {
  position: relative;
  grid-column: span 6;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  color: inherit;
  background: #101010;
  cursor: zoom-in;
  isolation: isolate;
}

.project-shot::after {
  content: "+";
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 10, 0.72);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 700ms ease;
}

.project-shot:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.05);
}

.project-shot:hover::after,
.project-shot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shot-wide,
.shot-banner {
  grid-column: 1 / -1;
}

.shot-wide {
  aspect-ratio: 16 / 9;
}

.shot-square {
  grid-column: span 4;
  aspect-ratio: 1;
}

.shot-landscape {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.shot-portrait {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}

.shot-banner {
  aspect-ratio: 1280 / 374;
}

.gallery-next-step .shot-portrait {
  grid-column: span 6;
}

.gallery-campaign .shot-portrait {
  grid-column: span 3;
}

.lightbox {
  width: min(94vw, 1320px);
  max-width: none;
  height: min(92vh, 920px);
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 28px 76px 22px;
}

.lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(10, 10, 10, 0.82);
  cursor: pointer;
}

.lightbox-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 62px;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 850px;
  margin-left: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(245, 239, 229, 0.08));
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 50px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(232, 86, 29, 0.08);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.timeline-date,
.education-card span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.education-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.education-card,
.skill-card,
.contact-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.education-card {
  min-height: 230px;
  padding: 24px;
}

.education-card h3 {
  margin-top: 52px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.skill-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.skill-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.skill-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.skill-list strong {
  padding: 5px 8px;
  color: #190a04;
  background: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contact {
  padding-bottom: 74px;
}

.contact-panel {
  padding: clamp(28px, 6vw, 70px);
}

.contact h2 {
  max-width: 960px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-links a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(0.76);
    opacity: 0.66;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

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

  .site-nav a {
    padding: 17px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .section-heading,
  .project {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding-top: 104px;
  }

  .hero::before {
    display: none;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(4.25rem, 22vw, 7.4rem);
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 390px);
  }

  .hero-meta {
    margin-top: 16px;
  }

  .project-info {
    position: static;
  }

  .gallery-campaign .shot-portrait {
    grid-column: span 6;
  }

  .education-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .education-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .section-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    min-height: auto;
    row-gap: 22px;
    padding-bottom: 0;
  }

  .hero-text {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact-links {
    display: grid;
  }

  .button,
  .contact-links a {
    width: 100%;
    min-width: 0;
  }

  .hero-meta span {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    white-space: normal;
  }

  .hero-portrait {
    width: min(36vw, 140px);
    margin-top: 4px;
  }

  .portrait-caption {
    display: none;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-shot,
  .shot-wide,
  .shot-square,
  .shot-landscape,
  .shot-portrait,
  .shot-banner,
  .gallery-next-step .shot-portrait,
  .gallery-campaign .shot-portrait {
    grid-column: 1 / -1;
    aspect-ratio: auto;
  }

  .project-shot img {
    height: auto;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    border: 0;
  }

  .lightbox figure {
    padding: 64px 12px 82px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 52px;
    height: 48px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 60px);
  }

  .lightbox-next {
    right: calc(50% - 60px);
  }

  .timeline-item {
    padding-left: 42px;
  }

  .site-footer {
    flex-direction: column;
  }
}
