@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Pirata One";
  src: url("../fonts/PirataOne-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #050505;
  --ink-soft: #0b0b0b;
  --paper: #f4efe4;
  --paper-dim: #bdb8ae;
  --line: rgba(244, 239, 228, 0.18);
  --red: #9e2f2b;
  --gold: #c59b51;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(117, 29, 27, 0.1), transparent 28rem),
    radial-gradient(circle at 80% 62%, rgba(33, 120, 125, 0.07), transparent 32rem),
    var(--ink);
  color: var(--paper);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

::selection { background: var(--paper); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--paper);
  color: var(--ink);
  padding: .75rem 1rem;
  transition: top .2s ease;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 6.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 600;
}

.monogram {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  place-items: center;
  border: 1px solid rgba(244, 239, 228, .6);
  border-radius: 50%;
  font-family: "Pirata One", Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: 0;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.monogram:hover { transform: rotate(-8deg); background: var(--paper); color: var(--ink); }
.monogram i { width: 1px; height: 1.25rem; background: currentColor; opacity: .5; }

.site-header nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3.3rem); }
.site-header nav a { position: relative; padding: .75rem 0; }
.site-header nav a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: .5rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.header-cta svg, .button svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .65fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 10.5rem clamp(1.25rem, 8vw, 9rem) 3rem;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  z-index: -2;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(244,239,228,.055) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(244,239,228,.04) 50%, transparent 50.1%);
  background-size: 7rem 7rem;
  mask-image: linear-gradient(to left, black, transparent 70%);
}

.hero::after {
  right: -15vw;
  top: 5vh;
  width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,31,28,.3), rgba(44,14,12,.08) 42%, transparent 70%);
  filter: blur(12px);
}

.hero-copy { position: relative; z-index: 2; max-width: 61rem; }

.eyebrow {
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 600;
  color: var(--paper-dim);
}
.eyebrow span { width: 2.6rem; height: 1px; background: var(--gold); }

h1, h2, h3 {
  margin: 0;
  font-family: "Pirata One", Georgia, serif;
  font-weight: 400;
  line-height: .86;
}

h1 {
  max-width: 10ch;
  font-size: clamp(5.2rem, 12.7vw, 12.2rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(244, 239, 228, .75);
  transform: translateX(clamp(1.5rem, 8vw, 7rem));
}

.hero-intro {
  max-width: 38rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0 clamp(0rem, 6vw, 6rem);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--paper-dim);
}
.hero-intro strong { color: var(--paper); font-weight: 500; }

.hero-actions {
  margin: 2rem 0 0 clamp(0rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.button {
  min-height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--paper);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.button-primary { background: var(--paper); color: var(--ink); }
.button:hover { transform: translateY(-3px); }
.button-primary:hover { background: transparent; color: var(--paper); }

.text-link {
  border-bottom: 1px solid rgba(244,239,228,.4);
  padding: .55rem 0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 600;
}

.hero-sigil {
  position: relative;
  justify-self: center;
  z-index: 1;
  width: clamp(17rem, 28vw, 27rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,239,228,.25);
  border-radius: 50%;
  animation: slow-turn 45s linear infinite;
}
.hero-sigil::before,
.hero-sigil::after {
  position: absolute;
  content: "";
  inset: 12%;
  border: 1px dashed rgba(197,155,81,.55);
  border-radius: 50%;
}
.hero-sigil::after { inset: 30%; border-style: solid; }
.hero-sigil span {
  position: absolute;
  padding: 0 .6rem;
  background: var(--ink);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .55rem;
  color: var(--paper-dim);
}
.hero-sigil span:nth-child(1) { top: -0.45rem; }
.hero-sigil span:nth-child(2) { right: -1.75rem; transform: rotate(90deg); }
.hero-sigil span:nth-child(3) { bottom: -0.45rem; }
.hero-sigil i {
  font-family: "Pirata One", Georgia, serif;
  font-style: normal;
  font-size: clamp(3rem, 6vw, 6rem);
  animation: slow-turn 45s linear infinite reverse;
}
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(244,239,228,.08); border-radius: 50%; }
.orbit-one { width: 48vw; aspect-ratio: 1; right: -5vw; top: 12vh; }
.orbit-two { width: 61vw; aspect-ratio: 1; right: -12vw; top: 5vh; }

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding-top: 4rem;
}
.hero-meta div { display: grid; grid-template-columns: auto 7rem; align-items: center; gap: .8rem; }
.hero-meta strong { font-family: "Pirata One", Georgia, serif; font-size: 2rem; font-weight: 400; }
.hero-meta span { color: var(--paper-dim); text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; line-height: 1.35; }

.scroll-cue {
  position: absolute;
  right: 2.4rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .55rem;
  color: var(--paper-dim);
}
.scroll-cue i { width: 1px; height: 3.5rem; background: linear-gradient(var(--gold), transparent); }

.section-shell { padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 8vw, 9rem); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 27rem);
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.section-heading h2, .about h2, .contact h2 {
  font-size: clamp(4.5rem, 9vw, 9rem);
  letter-spacing: -.02em;
}
.section-heading > p { margin: 0; color: var(--paper-dim); font-size: .95rem; }

.project-list { display: grid; gap: clamp(5rem, 10vw, 10rem); }
.project-card {
  --accent: var(--red);
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(19rem, .52fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.project-card:nth-child(even) { grid-template-columns: minmax(19rem, .52fr) minmax(0, 1.48fr); }
.project-card:nth-child(even) .project-visual { grid-column: 2; grid-row: 1; }
.project-card:nth-child(even) .project-copy { grid-column: 1; grid-row: 1; }
.project-card.cyan { --accent: #218e98; }
.project-card.gold { --accent: #b98931; }
.project-card.rose { --accent: #bd6f72; }
.project-card.crimson { --accent: #a12a2c; }

.project-visual {
  min-height: clamp(21rem, 42vw, 38rem);
  position: relative;
  padding: 1.1rem;
  background: #0b0b0b;
  border: 1px solid rgba(244,239,228,.16);
  overflow: hidden;
}
.project-visual::after {
  position: absolute;
  inset: 1.1rem;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, transparent 58%, color-mix(in srgb, var(--accent) 45%, transparent));
  mix-blend-mode: screen;
  opacity: .45;
  transition: opacity .45s ease;
}
.project-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.8) contrast(1.08) brightness(.82);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.project-card:hover .project-visual img { transform: scale(1.025); filter: saturate(1) contrast(1.04) brightness(.94); }
.project-card:hover .project-visual::after { opacity: .2; }

.project-number {
  position: absolute;
  z-index: 2;
  top: -1.8rem;
  left: .7rem;
  font-family: "Pirata One", Georgia, serif;
  font-size: clamp(4rem, 7vw, 7rem);
  color: var(--paper);
  text-shadow: 0 0 2rem var(--ink);
}
.corner { position: absolute; z-index: 3; width: 2rem; height: 2rem; }
.corner-tl { top: .55rem; left: .55rem; border-top: 1px solid var(--paper); border-left: 1px solid var(--paper); }
.corner-br { right: .55rem; bottom: .55rem; border-right: 1px solid var(--paper); border-bottom: 1px solid var(--paper); }

.project-format { margin: 0 0 1.25rem; color: var(--accent); text-transform: uppercase; letter-spacing: .17em; font-size: .62rem; font-weight: 700; }
.project-copy h3 { font-size: clamp(3.8rem, 7vw, 7.2rem); }
.project-summary { margin: 2rem 0; color: var(--paper-dim); }
.project-copy ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project-copy li {
  position: relative;
  padding: .85rem 0 .85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .62rem;
}
.project-copy li::before { position: absolute; left: 0; content: "✦"; color: var(--accent); }

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, .75fr) minmax(0, 1.25fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: center;
  border-top: 1px solid var(--line);
}
.about::before { position: absolute; content: ""; inset: 0 50% 0 0; background: linear-gradient(135deg, rgba(121,31,28,.11), transparent 60%); pointer-events: none; }
.about-portrait { position: relative; }
.portrait-frame { position: relative; padding: 1rem; border: 1px solid rgba(244,239,228,.24); transform: rotate(-1.5deg); }
.portrait-frame::before { position: absolute; content: ""; inset: 1rem; border: 1px solid rgba(244,239,228,.18); z-index: 1; pointer-events: none; }
.portrait-frame img { width: 100%; aspect-ratio: .83; object-fit: cover; object-position: center; filter: grayscale(.35) sepia(.08) contrast(1.08) brightness(.78); }
.portrait-caption { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); text-transform: uppercase; letter-spacing: .14em; font-size: .58rem; font-weight: 700; }
.portrait-rune { position: absolute; right: -3rem; bottom: -9rem; margin: 0; font-family: "Pirata One", Georgia, serif; font-size: 16rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244,239,228,.08); }

.about-copy { position: relative; z-index: 2; max-width: 44rem; }
.about h2 { max-width: 7ch; margin-bottom: 2.5rem; }
.about-copy > p:not(.eyebrow) { color: var(--paper-dim); }
.about-copy .about-lead { color: var(--paper); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.skill-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.4rem 0; }
.skill-grid span { padding: .55rem .75rem; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-size: .57rem; }
.education { display: grid; grid-template-columns: 6rem 1fr; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.education span { grid-row: 1 / 3; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .58rem; }
.education strong { font-size: .9rem; font-weight: 500; }
.education p { margin: .2rem 0 0; color: var(--paper-dim); font-size: .8rem; }

.contact {
  min-height: 92svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.25rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(112,29,27,.3), transparent 48%);
}
.contact::before, .contact::after { position: absolute; content: ""; border: 1px solid rgba(244,239,228,.1); border-radius: 50%; pointer-events: none; }
.contact::before { width: 56vw; aspect-ratio: 1; }
.contact::after { width: 73vw; aspect-ratio: 1; }
.contact > * { position: relative; z-index: 2; }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(4.5rem, 10vw, 10rem); }
.contact-intro { max-width: 36rem; margin: 2.5rem auto; color: var(--paper-dim); }
.contact-button { min-width: min(100%, 18rem); }
.contact-mark { margin-bottom: 2rem; color: var(--gold); font-size: 1.5rem; }

.social-links { display: flex; gap: 1rem; margin-top: 5rem; }
.social-links a,
.social-links button {
  width: 7.3rem;
  height: 5.7rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .35rem;
  border: 1px solid var(--line);
  background: rgba(5,5,5,.25);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.social-links button {
  appearance: none;
  color: inherit;
  padding: 0 .6rem;
  cursor: pointer;
}
.social-links a:hover,
.social-links button:hover,
.social-links button:focus-visible { transform: translateY(-4px); border-color: var(--paper); background: rgba(5,5,5,.8); }
.social-links svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.social-links span { text-transform: uppercase; letter-spacing: .12em; font-size: .54rem; }
.social-links small { display: block; margin-top: .15rem; color: var(--paper-dim); font-size: .48rem; letter-spacing: .04em; text-transform: none; }

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
  text-align: center;
}
.not-found-inner { max-width: 46rem; }
.not-found h1 { max-width: none; font-size: clamp(5rem, 15vw, 11rem); }
.not-found p { max-width: 34rem; margin: 2rem auto; color: var(--paper-dim); }

footer {
  min-height: 7.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 5.5rem);
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .55rem;
}
footer .monogram { justify-self: start; color: var(--paper); }
footer p { margin: 0; }
footer > a:last-child { justify-self: end; color: var(--paper); }

@keyframes slow-turn { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr; min-height: 5.75rem; }
  .site-header nav { justify-self: end; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-sigil { position: absolute; right: -8rem; top: 18%; opacity: .55; }
  .hero-copy { z-index: 2; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta div { grid-template-columns: 1fr; gap: .1rem; }
  .scroll-cue { display: none; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-visual,
  .project-card:nth-child(even) .project-copy { grid-column: 1; }
  .project-card:nth-child(even) .project-visual { grid-row: 1; }
  .project-card:nth-child(even) .project-copy { grid-row: 2; }
  .project-visual { min-height: min(62vw, 34rem); }
  .project-copy { max-width: 38rem; }
  .about { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.2fr); gap: 4rem; }
}

@media (max-width: 700px) {
  .site-header { gap: 1rem; padding-inline: 1rem; }
  .site-header .monogram { width: 2.75rem; height: 2.75rem; font-size: .95rem; }
  .site-header nav { width: 100%; justify-content: flex-end; gap: 1rem; font-size: .58rem; letter-spacing: .08em; }
  .hero { min-height: 50rem; padding-inline: 1.25rem; padding-bottom: 2rem; }
  h1 { font-size: clamp(4.5rem, 25vw, 7rem); }
  h1 em { transform: translateX(.55rem); }
  .hero-intro, .hero-actions { margin-left: 0; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .hero-sigil { width: 17rem; right: -9rem; top: 12rem; opacity: .35; }
  .hero-meta { gap: 1rem; padding-top: 3rem; }
  .hero-meta strong { font-size: 1.5rem; }
  .hero-meta span { font-size: .48rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading h2, .about h2, .contact h2 { font-size: clamp(4rem, 20vw, 6rem); }
  .project-visual { min-height: 17rem; padding: .6rem; }
  .project-visual::after { inset: .6rem; }
  .project-number { top: -1.4rem; }
  .project-copy h3 { font-size: 4.2rem; }
  .about { grid-template-columns: 1fr; }
  .about::before { inset: 0; }
  .about-portrait { max-width: 27rem; }
  .portrait-rune { display: none; }
  .education { grid-template-columns: 5.5rem 1fr; }
  .contact::before { width: 115vw; }
  .contact::after { width: 155vw; }
  .social-links { width: 100%; max-width: 25rem; }
  .social-links a,
  .social-links button { width: 50%; }
  footer { grid-template-columns: auto 1fr; }
  footer p { text-align: right; }
  footer > a:last-child { display: none; }
}

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