:root {
  color-scheme: light;
  --paper: #f5f5ee;
  --ink: #1c201a;
  --muted: #50574c;
  --line: #d7dace;
  --lime: #d7fb53;
  --wordmark: "Instrument Serif", Georgia, serif;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #355b12; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
.frame { width: min(1344px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: 0.75rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--wordmark); font-size: 1.45rem; font-weight: 400; line-height: 1; white-space: nowrap; }
.brand-mark { width: 19px; height: 19px; display: inline-block; background: var(--ink); border-radius: 50%; border: 4px solid var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 52px); }
nav a, .site-footer > a:last-child { font-size: 0.92rem; font-weight: 700; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 550px; display: grid; grid-template-columns: 54% 46%; align-items: center; background: var(--lime); }
.hero-copy { z-index: 1; padding: clamp(28px, 5vw, 78px); }
.hero-intro, .project-category { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.hero-intro { display: flex; align-items: center; gap: 9px; }
.hero-intro span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h2, h3 { font-family: var(--display); }
h1 { margin-top: 24px; font-family: var(--wordmark); font-weight: 400; font-size: clamp(5.25rem, 12vw, 11rem); line-height: 0.82; letter-spacing: -0.025em; }
.period { color: #52691b; }
.hero-description { margin-top: 36px; max-width: 22ch; font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.32; font-weight: 500; }
.hero-link { display: inline-flex; align-items: center; gap: 1.6rem; margin-top: 27px; padding: 11px 15px 11px 17px; background: var(--ink); color: var(--paper); font-size: 0.9rem; font-weight: 700; }
.hero-link:hover { background: #365019; }
.hero-link span, .text-link span { font-size: 1.12em; }
.hero-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; border-left: 1px solid #29351324; background-image: linear-gradient(#29351318 1px, transparent 1px), linear-gradient(90deg, #29351318 1px, transparent 1px); background-size: 30px 30px; background-position: center; }
.orbit { position: absolute; width: min(79%, 420px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #29351380; }
.orbit-inner { width: min(64%, 338px); outline: 1px solid #29351336; outline-offset: -9px; }
.art-center { z-index: 1; display: grid; place-items: center; width: min(49%, 264px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: Arial, sans-serif; font-size: clamp(6rem, 13.2vw, 12rem); line-height: 1; }
.art-cross { position: absolute; align-self: start; justify-self: end; padding: 14px 22px; font-size: 1.6rem; }
.art-dot { position: absolute; width: 13px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); left: 50%; bottom: 0; translate: -50% 50%; }
.work { padding-block: 74px 86px; scroll-margin-top: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 25px; }
h2 { font-size: clamp(2.1rem, 5.3vw, 4.25rem); line-height: 1; letter-spacing: -0.075em; }
.section-header p { padding-bottom: 3px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project { border: 1px solid var(--line); }
.project-image { position: relative; display: grid; align-items: center; overflow: hidden; aspect-ratio: 1.62; padding: 6.3% 7%; }
.project-image.housing { background: #dce5d5; }
.project-image.forge { background: #283132; }
.project-image.anda { background: #ecdbc9; }
.project-image img { width: 100%; height: auto; aspect-ratio: 1.73; object-fit: cover; object-position: top; border: 1px solid #1c201a22; border-radius: 5px; box-shadow: 0 8px 25px #13181127; }
.image-action { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font-size: 1.15rem; }
.project-copy { padding: clamp(20px, 3vw, 38px); }
.project-category { color: var(--muted); }
.project h3 { margin-top: 9px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1; letter-spacing: -0.055em; }
.project-copy > p:not(.project-category) { margin-top: 13px; max-width: 48ch; line-height: 1.5; color: var(--muted); }
.text-link { display: inline-flex; gap: 0.5rem; margin-top: 22px; font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: #52691b; }
.project-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.studio { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: clamp(24px, 6vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 43px 0 52px; scroll-margin-top: 24px; }
.studio-mark { display: grid; place-items: center; width: clamp(46px, 8vw, 100px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); font: clamp(1.9rem, 5vw, 4rem)/1 Arial, sans-serif; }
.studio h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.studio p { margin-top: 14px; color: var(--muted); max-width: 54ch; font-size: 1.08rem; line-height: 1.55; }
.site-footer { min-height: 101px; }
.gallery { color: var(--paper); background: var(--ink); border: 1px solid #50574c; width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: clamp(12px, 2vw, 24px); }
.gallery::backdrop { background: #10140ed9; }
.gallery-header, figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-header { margin-bottom: 12px; }
.gallery-header h2 { font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: -0.04em; }
.gallery button { min-width: 40px; min-height: 40px; background: transparent; border: 1px solid #89937e; cursor: pointer; }
.gallery button:hover { background: #3f4938; }
.gallery button:focus-visible { outline-color: var(--lime); }
.gallery-close { font-size: 1.35rem; }
.gallery-image { background: #141713; }
.gallery-image img { display: block; width: 100%; max-height: 68dvh; object-fit: contain; }
figcaption { margin-top: 12px; font-size: 0.9rem; }
.gallery-controls { display: flex; gap: 6px; }
@media (max-width: 900px) {
  .frame { width: calc(100% - 48px); }
  .hero { min-height: 450px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .frame { width: calc(100% - 32px); }
  .site-header { min-height: 62px; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 23px; }
  h1 { font-size: clamp(4.4rem, 17vw, 6.2rem); }
  .hero-description { margin-top: 27px; }
  .hero-art { height: 206px; border-left: 0; border-top: 1px solid #29351324; background-size: 22px 22px; }
  .orbit-outer { width: 165px; }
  .orbit-inner { width: 135px; }
  .art-center { width: 103px; font-size: 4.7rem; }
  .art-dot { width: 8px; }
  .art-cross { padding: 4px 14px; }
  .work { padding-block: 52px 58px; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .studio { gap: 13px; padding-block: 28px 37px; }
  .site-footer { min-height: 82px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 720ms var(--ease-out) backwards; }
  .hero-copy h1 { animation-delay: 95ms; }
  .hero-description { animation-delay: 195ms; }
  .hero-link { animation-delay: 280ms; }
  .hero-link:focus-visible { animation: none; }
  .hero-art { animation: artwork-in 950ms var(--ease-out) backwards; }
  .orbit-outer { animation: orbit-in 4200ms var(--ease-out); }
  .orbit-inner { animation: ring-in 1000ms var(--ease-out) backwards; }
  .art-symbol { animation: symbol-in 1350ms var(--ease-out) backwards; }

  .reveal-in { animation: rise-in 700ms var(--ease-out) backwards; }
  .reveal-in:focus-within { animation: none; }
  @media (min-width: 901px) {
    .project:nth-child(2) { animation-delay: 90ms; }
    .project:nth-child(3) { animation-delay: 180ms; }
  }

  .hero-link, .gallery button { transition: background-color 220ms ease; }
  .project { transition: border-color 260ms ease, box-shadow 300ms ease; }
  .project-image img { transition: transform 450ms var(--ease-out); }
  .hero-link span, .text-link span, .image-action { transition: transform 280ms var(--ease-out); }
  .project:focus-within { border-color: #8c947f; }
  .project-image:focus-visible .image-action { transform: translate(2px, -2px); }
  @media (hover: hover) {
    .project:hover { border-color: #8c947f; box-shadow: 0 12px 24px #1c201a0d; }
    .project-image:hover img { transform: scale(1.045); }
    .project-image:hover .image-action, .text-link:hover span { transform: translate(2px, -2px); }
    .hero-link:hover span { transform: translate(3px, 3px); }
  }

  .gallery[open] { animation: gallery-in 280ms var(--ease-out); }
  .gallery[open]::backdrop { animation: artwork-in 220ms ease-out; }
}

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

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes artwork-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes orbit-in {
  from { transform: rotate(-360deg); }
  to { transform: rotate(0deg); }
}
@keyframes ring-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes symbol-in {
  from { transform: rotate(-65deg) scale(0.7); }
  to { transform: rotate(0deg) scale(1); }
}
@keyframes gallery-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
