:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-soft: #1a1a1d;
  --text: #f4f1ea;
  --muted: #b6b0a7;
  --accent: #f0a33a;
  --line: rgba(255, 255, 255, 0.12);
  --max-width: 1180px;
  --radius: 22px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #141414;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent);
  transition:
    padding 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: var(--line);
  background: rgba(11, 11, 12, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.brand:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 163, 58, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.92rem;
}

nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

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

.nav-contact {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-contact:hover {
  border-color: rgba(240, 163, 58, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 120px 22px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(240, 163, 58, 0.22), transparent 35%),
    linear-gradient(135deg, #09090a 0%, #17171a 55%, #09090a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.05) 40% 41%, transparent 41% 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 110px,
      rgba(255, 255, 255, 0.025) 110px 111px
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-line {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  font-weight: 600;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

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

.button-primary:hover {
  filter: brightness(1.06);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  width: 28px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scroll 1.8s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

.section {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.about h2,
.contact-strip h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.quote-card:nth-child(2) {
  transition-delay: 0.1s;
}

.work-grid {
  display: grid;
  gap: 18px;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 163, 58, 0.34);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: #101012;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 72%);
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .project-image img {
  transform: scale(1.035);
}

.project-copy {
  padding: 24px;
}

.project-meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.project p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}


.project-copy > p:not(.project-meta) {
  color: var(--muted);
}

.project-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-deliverables li {
  padding: 7px 11px;
  border: 1px solid rgba(240, 163, 58, 0.24);
  border-radius: 999px;
  background: rgba(240, 163, 58, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.project-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 30px;
  background:
    radial-gradient(circle at 75% 20%, rgba(240, 163, 58, 0.2), transparent 34%),
    linear-gradient(135deg, #121214, #202024);
  text-align: center;
}

.project-image-placeholder::after {
  display: none;
}

.project-image-placeholder span {
  max-width: 85%;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.quote-grid {
  display: grid;
  gap: 18px;
}

.quote-card {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

blockquote {
  margin: 0 0 26px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 5vw, 3rem);
  line-height: 1.18;
}

figcaption {
  display: flex;
  flex-direction: column;
  color: var(--muted);
}

figcaption strong {
  color: var(--text);
}

.about {
  display: grid;
  gap: 38px;
}

.about-lead {
  color: var(--text);
  font-size: 1.25rem;
}

.about-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.skills-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skills-panel div {
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.skills-panel div:hover {
  background: rgba(255, 255, 255, 0.025);
}

.skills-panel span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.skills-panel p {
  margin: 30px 0 0;
  font-weight: 600;
}

.contact-strip {
  width: min(calc(100% - 44px), var(--max-width));
  margin: 20px auto 70px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 163, 58, 0.20), transparent 30%),
    var(--panel);
}

.contact-strip .button {
  margin-top: 28px;
  max-width: 100%;
}

.contact-email {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .site-header {
    padding: 22px 36px;
  }

  nav {
    gap: 28px;
  }

  .hero {
    padding: 150px 36px 76px;
  }

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

  .project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
  }

  .project-featured .project-image,
  .project-featured .project-image img {
    min-height: 420px;
  }

  .project:not(.project-featured) .project-image,
  .project:not(.project-featured) .project-image img {
    min-height: 320px;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .contact-strip {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 46px;
  }

  .contact-strip .button {
    margin-top: 0;
    flex-shrink: 0;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 36px;
  }
}

@media (max-width: 560px) {
  nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-copy {
    max-width: 95%;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

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

  .contact-strip {
    padding: 28px 22px;
  }

  .contact-email {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    font-size: clamp(0.78rem, 3.7vw, 0.95rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
  }
}
