:root {
  color-scheme: dark;
  --bg: #141211;
  --ink: #f9f2e9;
  --muted: #c6b8ab;
  --accent: #ffa676;
  --line: #594339;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, p, figure { margin: 0; }
.shell { width: min(92%, 1320px); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding: 1.3rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; letter-spacing: .14em; font-size: .875rem; font-weight: 800; }
.brand span { width: .95rem; aspect-ratio: 1; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 43%, 24% 100%, 0 100%); }
nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
.skip { position: absolute; transform: translateY(-150%); padding: .75rem; background: var(--bg); }
.skip:focus { transform: none; z-index: 2; }
.hero { min-height: clamp(30rem, 79svh, 60rem); display: grid; align-items: end; position: relative; isolation: isolate; overflow: hidden; background: #723621; }
.hero-image, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero::after { content: ""; background: linear-gradient(0deg, #130b09ef, transparent 63%), linear-gradient(90deg, #1a0c0b9c, transparent 70%); }
.hero-copy { padding: clamp(1.35rem, 6vw, 5.5rem); }
.label { font-size: .875rem; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .8rem; }
h1 { font-size: clamp(4.5rem, 20vw, 17rem); line-height: .83; letter-spacing: -.091em; margin: 0 0 1.75rem -.065em; }
h1 span { color: var(--accent); }
.button { display: inline-block; background: var(--ink); color: #21130e; padding: .8rem 1.1rem; font-weight: 700; }
.button:hover { background: var(--accent); color: #21130e; }
.section { padding-block: clamp(3rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .94; letter-spacing: -.075em; }
.work-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: end; }
.project-copy, .study-heading > p:last-child { color: var(--muted); max-width: 42ch; font-size: 1.125rem; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--accent); }
.study-heading > p:last-child { margin-top: 1.2rem; }
.study-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1rem; margin-top: 2rem; }
.plate { display: grid; place-items: center; height: clamp(13rem, 34vw, 27rem); overflow: hidden; }
.plate-mark { background: radial-gradient(ellipse at 55% 75%, #a45233, #40271e 57%, #221715); }
.mark { width: min(52%, 12rem); aspect-ratio: 1.05; clip-path: polygon(50% 0, 100% 100%, 75% 100%, 50% 43%, 25% 100%, 0 100%); background: linear-gradient(115deg, #f7b187, #bc6d4d 50%, #783b28 51%, #f19d68); transform: rotate(-10deg); }
figcaption { color: var(--muted); padding: .65rem 0; font-size: .875rem; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.4rem; }
.palette span { display: flex; align-items: end; min-height: 5rem; padding: .7rem; font-size: .875rem; font-weight: 700; }
.charcoal { background: #211916; }
.oxide { background: #934629; }
.sandstone { background: var(--accent); color: var(--bg); }
.ivory { background: var(--ink); color: var(--bg); }
.footer { color: var(--muted); }
@media (max-width: 620px) {
  .hero-image { object-position: 62% center; }
  .work-grid, .study-grid { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }
body { background: radial-gradient(ellipse at 70% 38%, #251b15, transparent 44rem), var(--bg); }
.brand span { width: 1.7rem; background: url("ares.svg") center / contain no-repeat; clip-path: none; }
.hero-copy { z-index: 1; }
.hero-rings {
  position: absolute;
  width: min(72vw, 54rem);
  aspect-ratio: 1;
  right: -12%;
  top: -27%;
  background: repeating-radial-gradient(circle, transparent 0 2.35rem, #ffc8a84d 2.39rem 2.44rem);
  mask-image: linear-gradient(135deg, transparent 14%, #000 56%, transparent 83%);
  pointer-events: none;
}
.work-grid { margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filters button { border: 1px solid var(--line); border-radius: 100px; background: #1b1512; color: var(--ink); padding: .65rem .95rem; font: inherit; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #20120d; }
.filters button:hover, .filters button:focus-visible { border-color: var(--accent); }
.results { color: var(--muted); }
.results:not(:empty) { margin-bottom: 1rem; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.project { overflow: hidden; border: 1px solid var(--line); background: #1b1512; transition: border-color .25s ease; }
.project:hover, .project:focus-within { border-color: var(--project-color); }
.mnema { --project-color: #c0bcff; --project-bg: #38336e; }
.deadcv { --project-color: #e8f78d; --project-bg: #465324; }
.clockout { --project-color: #ff987d; --project-bg: #713d31; }
.shadow { --project-color: #91e4d2; --project-bg: #21504c; }
.project-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2.05;
  background: linear-gradient(130deg, #181612, transparent), repeating-linear-gradient(90deg, transparent 0 31px, #ffffff13 31px 32px), repeating-linear-gradient(0deg, transparent 0 31px, #ffffff13 31px 32px), var(--project-bg);
  color: var(--project-color);
  overflow: hidden;
}
.project-art::before, .project-art::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border: 1px solid currentColor; opacity: .25; border-radius: 50%; transition: transform .6s ease; }
.project-art::after { width: 58%; opacity: .13; }
.project:hover .project-art::before { transform: scale(1.18); }
.project:hover .project-art::after { transform: scale(.94); }
.project-mark { position: relative; display: flex; width: clamp(3rem, 12vw, 7rem); aspect-ratio: 1; align-items: end; justify-content: center; gap: 8%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project:hover .project-mark { transform: translateY(-7%) scale(1.08); }
.project-mark i { display: block; background: currentColor; }
.mnema i { width: 24%; height: 62%; }
.mnema i:first-child { height: 40%; }
.mnema i:nth-child(2) { height: 91%; }
.mnema i:nth-child(n+4), .deadcv i:nth-child(n+4), .clockout i { display: none; }
.deadcv .project-mark { width: clamp(2.5rem, 8vw, 5rem); aspect-ratio: .8; border: .24rem solid currentColor; border-radius: .25rem; display: grid; gap: .3rem; align-content: center; justify-content: stretch; padding: .6rem; rotate: -9deg; }
.deadcv i { height: .2rem; }
.deadcv i:nth-child(3) { width: 65%; }
.clockout .project-mark { border: .3rem solid currentColor; border-radius: 50%; }
.clockout .project-mark::before { content: ""; position: absolute; width: 26%; height: 30%; top: 21%; left: 46%; border: solid currentColor; border-width: 0 0 .28rem .28rem; }
.shadow .project-mark { align-items: center; }
.shadow i { width: 10%; height: 25%; border-radius: 1rem; }
.shadow i:nth-child(2), .shadow i:nth-child(4) { height: 50%; }
.shadow i:nth-child(3) { height: 86%; }
.project-body { padding: clamp(1.25rem, 3vw, 2.5rem); }
.project-body .label { color: var(--project-color); }
.project h3 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 .75rem; }
.project-body > p:not(.label), details p { color: var(--muted); }
details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .85rem; }
details summary { cursor: pointer; width: fit-content; font-weight: 700; }
details p { margin-top: .65rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.project-links a { text-decoration: underline; text-underline-offset: .28em; text-decoration-color: var(--project-color); }
.reading-progress { display: none; }
@media (max-width: 620px) {
  .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: settle 1.4s cubic-bezier(.2,.65,.25,1) both; }
  .hero-copy > * { animation: rise .7s ease-out both; }
  .hero-copy h1 { animation-delay: .10s; }
  .hero-copy .button { animation-delay: .19s; }
  .arrived { animation: reveal .58s ease-out both; }
  @supports (animation-timeline: scroll()) {
    .reading-progress { display: block; position: fixed; z-index: 4; inset: 0 0 auto; height: 3px; background: var(--accent); transform-origin: left; animation: progress linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes settle { from { transform: scale(1.11); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes reveal { from { transform: translateY(18px); } to { transform: translateY(0); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .project, .project-mark, .project-art::before, .project-art::after { transition: none; }
  .project:hover .project-mark, .project:hover .project-art::before, .project:hover .project-art::after { transform: none; }
}

.hero-expansion {
  max-width: 30ch;
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy .hero-expansion { animation-delay: .13s; }
  .hero-copy .button { animation-delay: .22s; }
}
