:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #ebe5d8;
  --ink: #242620;
  --ink-soft: #585a51;
  --ink-faint: #66685f;
  --line: #d8d1c3;
  --orange: #c14327;
  --lime: #d6ef6d;
  --white: #fffdf8;
  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-label: "DM Mono", "Courier New", monospace;
  --page-width: 1240px;
  --gutter: clamp(20px, 5.6vw, 88px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }

.page-wrap { width: min(100% - (var(--gutter) * 2), var(--page-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid rgb(36 38 32 / 10%);
  background: rgb(244 240 232 / 92%);
  backdrop-filter: blur(14px);
}

.wordmark { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 21px; font-weight: 700; letter-spacing: -2px; line-height: 1; text-decoration: none; }
.wordmark span { align-self: center; margin-left: 1px; color: var(--lime); transform: translateY(5px); }
.primary-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 58px); }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.primary-nav a span { color: var(--ink-faint); font: 10px var(--font-label); }
.primary-nav .nav-contact { padding-inline: 17px; border: 1px solid var(--ink); border-radius: 100px; }
.primary-nav .nav-contact span { color: var(--orange); font-size: 15px; }
.primary-nav a:hover, .text-link:hover, .back-top:hover { color: var(--orange); }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: min(750px, calc(100svh - 78px)); grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding-top: 62px; padding-bottom: 94px; }
.hero-copy { position: relative; z-index: 2; max-width: 630px; padding-bottom: 12px; }
.eyebrow { margin: 0; font: 11px/1.5 var(--font-label); letter-spacing: .075em; text-transform: uppercase; }
.status-mark { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #89a832; box-shadow: 0 0 0 4px rgb(137 168 50 / 15%); }
.hero h1 { margin: 28px 0 20px; font-size: clamp(62px, 8vw, 112px); line-height: .91; letter-spacing: -.087em; font-weight: 600; }
.hero h1 span { color: var(--orange); }
.hero-intro { max-width: 465px; margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 27px; margin-top: 32px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 19px; padding: 0 20px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--orange); color: white; }
.button-dark span { color: var(--lime); font-size: 17px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link span { color: var(--orange); }

.hero-art { position: relative; width: min(100%, 500px); aspect-ratio: 1; justify-self: end; overflow: hidden; border-radius: 50%; background: var(--lime); }
.hero-art::before, .hero-art::after { position: absolute; content: ""; }
.hero-art::before { inset: 9%; border: 1px solid rgb(36 38 32 / 22%); border-radius: 50%; }
.hero-art::after { top: 50%; left: 4%; width: 92%; height: 1px; transform: rotate(-32deg); background: rgb(36 38 32 / 28%); }
.art-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgb(36 38 32 / 26%); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 65%; height: 65%; }
.ring-two { width: 39%; height: 39%; border-width: 2px; border-color: var(--orange); }
.art-center { position: absolute; top: 50%; left: 50%; display: flex; width: 30%; aspect-ratio: 1; flex-direction: column; align-items: center; justify-content: center; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 50%; background: var(--orange); color: var(--white); font-size: clamp(15px, 2vw, 24px); font-weight: 700; line-height: .91; letter-spacing: -.06em; box-shadow: 7px 8px 0 var(--ink); }
.art-cross { position: absolute; width: 14px; height: 14px; border: 1px solid var(--ink); transform: rotate(45deg); }
.cross-one { top: 22%; left: 31%; }
.cross-two { right: 21%; bottom: 28%; width: 9px; height: 9px; background: var(--orange); }
.art-note { position: absolute; z-index: 1; font: 10px var(--font-label); letter-spacing: .08em; }
.note-top { top: 15%; right: 12%; }
.note-bottom { bottom: 14%; left: 13%; }
.art-sticker { position: absolute; right: 16%; bottom: 16%; display: grid; width: 36px; height: 36px; place-items: center; transform: rotate(9deg); border: 1px solid var(--ink); border-radius: 50%; font-weight: 700; }
.hero-foot { position: absolute; right: 0; bottom: 25px; left: 0; display: flex; justify-content: space-between; color: var(--ink-faint); font: 10px var(--font-label); letter-spacing: .05em; text-transform: uppercase; }
.hero-foot span:last-child span { color: var(--orange); font-size: 15px; }

.work-section { padding: clamp(75px, 10vw, 140px) 0 clamp(85px, 11vw, 150px); background: var(--paper-deep); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 46px; }
.section-index { color: var(--orange); }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin: 14px 0 0; font-size: clamp(38px, 6vw, 70px); font-weight: 600; letter-spacing: -.075em; line-height: 1; }
.heading-period { color: var(--orange); }
.section-aside { margin: 0 0 2px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid transparent; border-radius: 40px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 600; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.filter-button span { color: var(--ink-faint); font: 9px var(--font-label); }
.filter-button:hover { border-color: var(--ink); color: var(--ink); }
.filter-button.is-active { background: var(--ink); color: var(--white); }
.filter-button.is-active span { color: var(--lime); }
.work-count { flex: none; margin: 0; color: var(--ink-faint); font: 10px var(--font-label); text-transform: uppercase; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid #d7d0c1; border-radius: 7px; background: var(--paper); }
.project-card[hidden] { display: none; }
.project-card.is-featured { display: grid; grid-column: 1 / -1; grid-template-columns: 1.08fr .92fr; align-items: stretch; }
.project-media { position: relative; display: grid; min-width: 0; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background-color: #c8c5ad; }
.project-media::before, .project-media::after { position: absolute; z-index: 0; content: ""; pointer-events: none; }
.project-media::before { inset: 0; opacity: .4; background-image: linear-gradient(135deg, transparent 49.7%, rgb(36 38 32 / 26%) 50%, transparent 50.3%), linear-gradient(45deg, transparent 49.7%, rgb(36 38 32 / 20%) 50%, transparent 50.3%); background-size: 54px 54px; }
.project-media::after { width: 39%; aspect-ratio: 1; border: 1px solid rgb(36 38 32 / 25%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(36 38 32 / 5%), 0 0 0 48px rgb(36 38 32 / 4%); }
.project-media[data-tone="1"] { background-color: #d99a75; }
.project-media[data-tone="2"] { background-color: #a8b7a4; }
.project-media[data-tone="3"] { background-color: #d7c579; }
.project-media[data-tone="4"] { background-color: #af9fb5; }
.project-poster { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-video:not([src]) { visibility: hidden; }
.project-video[src] { visibility: visible; }
.project-media.is-playing .media-caption { display: none; }
.media-play { position: relative; z-index: 2; display: inline-flex; min-height: 50px; align-items: center; gap: 10px; padding: 0 17px; border: 1px solid rgb(36 38 32 / 40%); border-radius: 100px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; box-shadow: 3px 4px 0 rgb(36 38 32 / 22%); transition: transform .16s ease, background-color .16s ease; }
.media-play:hover { transform: translateY(-2px); background: var(--lime); }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--orange); }
.media-play[hidden] { display: none; }
.media-caption { position: absolute; z-index: 2; bottom: 12px; left: 13px; padding: 5px 7px; background: var(--paper); font: 9px var(--font-label); letter-spacing: .08em; }
.media-error { position: absolute; z-index: 3; right: 10px; bottom: 9px; left: 10px; display: none; margin: 0; padding: 8px; background: var(--paper); color: var(--ink); font-size: 11px; text-align: center; }
.media-error a { display: inline-block; margin-left: 4px; color: var(--orange); font-weight: 600; }
.has-error .media-error { display: block; }
.has-error .media-caption { display: none; }
.project-details { padding: 18px 20px 21px; }
.project-card.is-featured .project-details { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 48px); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-faint); }
.project-label { color: var(--orange); font: 10px var(--font-label); letter-spacing: .015em; }
.project-number { font: 10px var(--font-label); }
.project-details h3 { margin: 15px 0 8px; font-size: clamp(19px, 2.3vw, 27px); font-weight: 600; letter-spacing: -.05em; line-height: 1.12; }
.project-card.is-featured .project-details h3 { max-width: 400px; font-size: clamp(30px, 4vw, 48px); }
.project-details > p { max-width: 56ch; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.alternate-video { align-self: flex-start; min-height: 44px; margin-top: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.alternate-video:hover { border-color: var(--ink); background: var(--lime); }

.about-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; padding-top: clamp(80px, 11vw, 152px); padding-bottom: clamp(90px, 12vw, 164px); }
.about-label { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.about-doodle { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font: 42px/1 var(--font-display); }
.about-copy h2 { margin: 0; font-size: clamp(34px, 5.2vw, 61px); }
.about-copy h2 span { color: var(--ink-faint); }
.about-copy > p { max-width: 650px; margin: 23px 0 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.skill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-row span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-soft); font-size: 11px; }

.contact-section { padding: clamp(78px, 10vw, 132px) 0; background: var(--ink); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 10%; }
.contact-copy .section-index { color: var(--lime); }
.contact-copy h2 { margin-top: 22px; font-size: clamp(46px, 7vw, 82px); }
.contact-copy h2 .heading-period { color: var(--lime); }
.contact-copy > p:last-child { max-width: 390px; margin: 22px 0 0; color: #c2c1b7; font-size: 14px; line-height: 1.7; }
.contact-card { padding: clamp(20px, 3vw, 30px); border: 1px solid rgb(244 240 232 / 24%); border-radius: 6px; background: #2e302a; }
.contact-card-label { display: block; margin-bottom: 18px; color: #bebfb4; font: 9px var(--font-label); letter-spacing: .08em; }
.discord-link { display: flex; min-height: 78px; align-items: center; gap: 14px; text-decoration: none; }
.discord-link:hover strong { color: var(--lime); }
.discord-mark { position: relative; display: grid; width: 45px; height: 45px; flex: none; place-items: center; border-radius: 14px; background: var(--lime); }
.discord-mark::before { width: 20px; height: 15px; border: 1.8px solid var(--ink); border-radius: 7px; content: ""; }
.discord-mark::after { position: absolute; bottom: 12px; left: 13px; width: 6px; height: 6px; border-bottom: 1.8px solid var(--ink); transform: skew(-28deg) rotate(-30deg); content: ""; }
.discord-link > span:nth-child(2) { display: grid; gap: 4px; }
.discord-link strong { font-size: 14px; font-weight: 600; }
.discord-link small { color: #bbbcb2; font-size: 11px; }
.discord-link small span { color: var(--lime); }
.contact-arrow { margin-left: auto; color: var(--lime); font-size: 21px; }
.discord-id-row { display: flex; min-height: 49px; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgb(244 240 232 / 17%); color: #c4c4ba; font-size: 11px; }
.discord-id-row code { overflow: hidden; color: var(--paper); font: 11px var(--font-label); text-overflow: ellipsis; }
.copy-id { min-width: 56px; min-height: 36px; margin-left: auto; border: 1px solid rgb(244 240 232 / 30%); border-radius: 3px; background: transparent; color: var(--paper); cursor: pointer; font-size: 10px; }
.copy-id:hover { border-color: var(--lime); color: var(--lime); }
.copy-status { min-height: 14px; margin: 4px 0 0; color: var(--lime); font: 10px var(--font-label); }

.site-footer { display: grid; min-height: 95px; grid-template-columns: 1fr 1.7fr auto auto auto; align-items: center; gap: 18px; }
.footer-mark { font-size: 15px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.footer-mark span { color: var(--orange); font-size: 9px; vertical-align: top; }
.site-footer p { margin: 0; color: var(--ink-faint); font-size: 11px; }
.footer-profile { color: var(--ink-soft); font-size: 11px; font-weight: 600; text-decoration: none; }
.footer-profile:hover { color: var(--orange); }
.back-top { justify-self: end; font-size: 11px; font-weight: 600; text-decoration: none; }
.site-footer small { color: var(--ink-faint); font: 9px var(--font-label); }

@media (min-width: 1500px) { .hero { min-height: 790px; } }

@media (min-width: 1080px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .project-card.is-featured { grid-column: 1 / -1; grid-template-columns: 1.08fr .92fr; }
}

@media (max-width: 760px) {
  :root { --gutter: clamp(18px, 5vw, 34px); }
  .site-header { height: 68px; }
  .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 3px 0 12px; border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
  .menu-icon { display: grid; width: 24px; height: 18px; align-content: center; gap: 5px; }
  .menu-icon span { display: block; height: 1px; background: var(--ink); transition: transform .18s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 67px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-contact { margin-top: 10px; padding-inline: 13px; border: 1px solid var(--ink); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 32px; padding-top: 72px; padding-bottom: 88px; }
  .hero h1 { margin-top: 24px; font-size: clamp(60px, 14vw, 94px); }
  .hero-art { width: min(84%, 390px); justify-self: center; }
  .hero-foot { bottom: 22px; font-size: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 29px; }
  .section-heading h2 { font-size: clamp(40px, 10vw, 60px); }
  .section-aside br { display: none; }
  .work-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-list { width: 100%; gap: 4px; }
  .filter-button { min-height: 42px; gap: 6px; padding-inline: 10px; font-size: 11px; }
  .work-count { align-self: flex-end; margin-top: -2px; }
  .project-grid { grid-template-columns: 1fr; gap: 13px; }
  .project-card.is-featured { display: block; grid-column: auto; }
  .project-card.is-featured .project-details { padding: 19px 20px 23px; }
  .project-card.is-featured .project-details h3 { font-size: 28px; }
  .project-media { aspect-ratio: 16 / 10; }
  .about-section { grid-template-columns: 1fr; gap: 28px; }
  .about-label { min-height: auto; flex-direction: row; align-items: center; }
  .about-doodle { width: 48px; height: 48px; font-size: 30px; }
  .about-copy h2 { font-size: clamp(34px, 9vw, 52px); }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-copy h2 { font-size: clamp(48px, 12vw, 72px); }
  .site-footer { grid-template-columns: 1fr auto; gap: 13px; padding-block: 22px; }
  .site-footer p { grid-column: 1; grid-row: 2; }
  .footer-profile { grid-column: 1; grid-row: 3; }
  .back-top { grid-column: 2; grid-row: 1; }
  .site-footer small { grid-column: 2; grid-row: 3; justify-self: end; }
}

@media (max-width: 760px) {
  .site-header { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

@media (max-width: 390px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero h1 { font-size: clamp(48px, 15vw, 58px); }
  .filter-list { gap: 1px; }
  .filter-button { gap: 5px; padding-inline: 8px; font-size: 10px; }
  .discord-id-row { gap: 7px; }
  .discord-id-row code { font-size: 10px; }
}

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