:root {
  --bg: #100d0b;
  --ink: #f3ebe0;
  --ink-muted: #b8a894;
  --brown: #c9a27a;
  --brown-deep: #8a6342;
  --line: rgba(201, 162, 122, 0.22);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(138, 99, 66, 0.18), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.75rem) 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--brown);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  padding: 0.2rem 0.15rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.nav a:hover {
  color: var(--brown);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  order: 2;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.92) contrast(1.04);
  animation: ken 16s var(--ease) infinite alternate;
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.55) 0%, transparent 28%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.35) 0%, transparent 22%, rgba(16, 13, 11, 0.25) 100%);
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(201, 162, 122, 0.35);
  pointer-events: none;
  animation: framePulse 5s var(--ease) infinite alternate;
}

@keyframes framePulse {
  from { opacity: 0.4; }
  to { opacity: 0.95; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem clamp(1.25rem, 3vw, 2.75rem) clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(138, 99, 66, 0.16), transparent 60%),
    linear-gradient(160deg, #16120f 0%, #100d0b 55%, #0c0a08 100%);
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.role {
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brown);
}

.pitch {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #d4b08a, var(--brown-deep));
  color: #140f0c;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.about,
.work,
.connect {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 0;
}

.connect {
  padding-bottom: 5.5rem;
}

.section-label {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

.about h2,
.work h2,
.connect h2 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about p {
  margin: 0;
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--ink-muted);
}

.about em {
  font-style: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--brown-deep);
}

.projects {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.projects li {
  border-bottom: 1px solid var(--line);
}

.projects a {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.6fr) auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.projects a:hover {
  background: linear-gradient(90deg, rgba(201, 162, 122, 0.08), transparent 70%);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.project-line {
  color: var(--ink-muted);
  font-size: 1rem;
}

.project-url {
  font-size: 0.85rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}

.connect-note {
  margin: -0.35rem 0 1.75rem;
  color: var(--ink-muted);
  max-width: 40ch;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.social a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(26, 21, 17, 0.35);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.social a:hover {
  border-color: var(--brown);
  background: rgba(201, 162, 122, 0.08);
  transform: translateY(-3px);
}

.social a span {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.will-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 58vh;
    max-height: 520px;
  }

  .hero-visual img {
    animation: none;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(16, 13, 11, 0.2) 40%, rgba(16, 13, 11, 0.95) 100%);
  }

  .hero-copy {
    padding-top: 1.5rem;
  }

  .top {
    width: 100%;
    padding: 1.1rem 1.25rem 0;
  }

  .nav a,
  .brand {
    color: rgba(243, 235, 224, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  }

  .projects a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .project-url {
    order: -1;
  }

  .social {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 0.85rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .pitch {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-visual img,
  .hero-frame,
  .hero-copy {
    animation: none;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
