:root {
  color-scheme: light;
  --ink: #141512;
  --lime: #80ff00;
  --paper: #f6f6f1;
  --muted: #55584e;
  --rule: #d1d2c8;
  --frame: 1344px;
  --gutter: clamp(20px, 4.2vw, 66px);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #497f00; outline-offset: 5px; }
.hero-figure :focus-visible, footer :focus-visible { outline-color: var(--lime); outline-offset: -4px; }
.frame { width: min(var(--frame), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 16px; background: var(--lime); }
.header { position: sticky; inset-block-start: 0; background: var(--lime); z-index: 2; border-bottom: 1px solid rgb(20 21 18 / .25); }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; display: block; width: 124px; }
.nav { display: flex; gap: clamp(17px, 2.45vw, 39px); align-items: center; }
.nav a, .footer-inner a { text-decoration: none; }
.nav a { font-weight: 650; font-size: .94rem; }
.nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-contact { border: 1px solid var(--ink); padding: 9px 18px; }
.nav .nav-contact:hover { background: var(--ink); color: #fff; text-decoration: none; }
.menu-button { display: none; }
section[id] { scroll-margin-top: 92px; }
.hero { border-bottom: 1px solid var(--rule); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: end; gap: 18px clamp(24px, 5vw, 85px); padding-block: clamp(35px, 5vw, 75px) clamp(24px, 3.2vw, 46px); }
.hero-aside { border-left: 1px solid var(--rule); padding-left: 20px; }
.eyebrow { font: 650 .77rem/1.4 "Consolas", "Courier New", monospace; text-transform: uppercase; letter-spacing: .085em; }
.marker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--lime); border: 1px solid #599900; }
.hero h1 { font-size: clamp(3.4rem, 7.6vw, 7.5rem); line-height: .94; letter-spacing: -.076em; margin: 16px 0 0; font-weight: 750; text-wrap: balance; }
.hero-intro { max-width: 33ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.button { display: inline-flex; padding: 13px 20px; min-height: 47px; align-items: center; text-decoration: none; font-size: .94rem; font-weight: 700; }
.lime { background: var(--lime); color: var(--ink); }
.lime:hover { background: #a1ff42; }
.hero .button { margin-top: 12px; }
.hero-figure { position: relative; min-width: 0; border-bottom: 4px solid var(--lime); }
.hero-figure > img { height: auto; aspect-ratio: 2.55; object-fit: cover; object-position: center 35%; }
.hero-figure figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; background: var(--ink); color: #fff; }
.hero-figure figcaption a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 18px; padding: 13px 18px; font-size: .9rem; text-decoration: none; }
.hero-figure figcaption a:hover { color: var(--lime); }
.hero-figure figcaption span { color: #fff; font: .73rem/1.4 Consolas, monospace; text-transform: uppercase; }
.section { padding-block: clamp(62px, 7.1vw, 105px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 27px; }
.section-head h2 { margin-top: 0; }
h2 { font-size: clamp(2.45rem, 5vw, 5rem); line-height: .99; font-weight: 750; letter-spacing: -.063em; margin-top: 11px; }
.line-link { text-decoration: underline; text-underline-offset: 5px; font-size: .92rem; font-weight: 650; }
.line-link:hover { color: #416c00; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 42px; background: transparent; border: 1px solid #9c9f92; padding: 8px 14px; font-size: .9rem; font-weight: 650; }
.filters button:hover { border-color: var(--ink); background: #e6e7dd; }
.filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 42px) clamp(16px, 2.2vw, 32px); }
.card { min-width: 0; border-bottom: 1px solid var(--rule); }
.card a { text-decoration: none; display: block; height: 100%; }
.card-media { overflow: hidden; aspect-ratio: 1.72; background: #dedfd5; }
.card-media img { height: 100%; object-fit: cover; transition: transform .25s ease; }
.card a:hover img { transform: scale(1.035); }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card-copy { display: grid; gap: 5px; padding-block: 14px 20px; }
.card-meta { color: var(--muted); font: .78rem/1.4 Consolas, monospace; text-transform: uppercase; letter-spacing: .035em; }
.card h3 { font-size: clamp(1.3rem, 2.35vw, 2.15rem); line-height: 1.12; letter-spacing: -.045em; }
.card-note { font-size: .83rem; color: var(--muted); }
.studio { background: #e9ebe2; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 6vw, 100px); padding-block: clamp(42px, 6vw, 85px); }
.studio-copy h2 { margin-top: 0; }
.detail-media figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.studio-intro { margin-top: 17px; }
.studio-copy p, .studio-profile p { max-width: 58ch; }
.studio-copy .line-link { display: inline-block; margin-top: 19px; }
.studio-profile { border-left: 1px solid #9b9f91; padding-left: clamp(18px, 3vw, 36px); }
.studio-profile h3 { font-size: clamp(1.32rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; }
.studio-credential { font-weight: 650; margin-block: 5px 12px; }
.split { display: grid; grid-template-columns: .75fr 1.25fr; gap: 25px clamp(32px, 6vw, 105px); }
.services, .news-list { border-top: 1px solid var(--rule); }
.services > div, .news-list article { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9px 16px; padding: 19px 0; border-bottom: 1px solid var(--rule); }
.services dt { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.services dd, .news-list p { color: var(--muted); }
.news { background: #edeee7; }
.news-list article { grid-template-columns: 8ch 1fr; gap: 10px 24px; }
.news-list time { color: var(--muted); font: .78rem/1.4 Consolas, monospace; margin-top: 4px; white-space: nowrap; }
.news-list h3 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 5px; }
.news-list h3 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact { background: var(--lime); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 27px clamp(35px, 6vw, 90px); padding-block: clamp(49px, 6.2vw, 92px); }
.contact h2 { font-size: clamp(2.25rem, 4.8vw, 4.75rem); }
address { font-style: normal; display: grid; gap: 6px; justify-items: start; }
address a { font-weight: 650; text-underline-offset: 4px; }
address span { margin-top: 6px; }
address .map-link { font-size: .9rem; }
footer { background: var(--ink); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 20px; font-size: .87rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
#open-manager { min-height: 42px; padding: 6px 12px; color: #fff; border: 1px solid #fff; background: transparent; }
#open-manager:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.portfolio-empty { grid-column: 1 / -1; }
.project-dialog { width: min(820px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.project-dialog::backdrop { background: rgb(12 14 10 / .75); }
.detail-toolbar { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; padding: 8px clamp(15px, 4vw, 30px); }
.detail-toolbar button { background: var(--lime); border: 1px solid var(--ink); padding: 6px 11px; min-height: 42px; font-weight: 650; }
.detail-toolbar button span { margin-left: 5px; font-size: 1.2em; }
.detail-content { padding: 20px clamp(15px, 4vw, 30px) 29px; }
.detail-content h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); margin-bottom: 15px; }
.detail-content > p:not(.card-meta) { margin-block: 16px; max-width: 65ch; }
.detail-media img { width: 100%; height: auto; }
.detail-media + .detail-media { margin-top: 18px; }
.manager-dialog .detail-toolbar h2 { margin: 0; font-size: clamp(1.2rem, 4.2vw, 1.65rem); letter-spacing: -.025em; }
.manager-content { padding: 19px clamp(15px, 4vw, 30px) 28px; }
.manager-status:not(:empty) { margin-top: 12px; border-left: 4px solid #599900; padding-left: 10px; font-weight: 650; }
.manager-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 17px; margin-block: 20px; padding-block: 16px; border-block: 1px solid var(--rule); }
.manager-form h3, .manager-form .full { grid-column: 1 / -1; }
.manager-form label { display: grid; align-content: start; gap: 4px; font-size: .94rem; font-weight: 650; }
.manager-form label.manager-checkbox { display: flex; align-items: center; gap: 7px; min-height: 42px; }
.manager-form input:not([type="checkbox"]), .manager-form select, .manager-form textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #848779; padding: 7px 9px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.manager-form textarea { resize: vertical; }
.manager-form button, .manager-list button, #export-projects { border: 1px solid var(--ink); justify-self: start; }
.manager-list-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.manager-list button, #export-projects, .admin-secondary { padding: 7px 10px; background: transparent; border: 1px solid var(--ink); min-height: 42px; font-size: .88rem; }
.manager-list button:hover, #export-projects:hover, .admin-secondary:hover { background: var(--lime); }
.manager-list { margin: 12px 0 0; padding: 0; list-style: none; }
.legal { max-width: 78ch; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.05em; margin-block: 14px 24px; }
.legal h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -.025em; margin-block: 27px 10px; }
.legal p + p { margin-top: 10px; }
.legal .cookie-info { border-left: 4px solid var(--lime); background: #e9ebe2; margin-top: 27px; padding: 16px clamp(12px, 3vw, 24px); overflow-wrap: anywhere; }
.legal .cookie-info h2 { margin-top: 0; }
.manager-list li { border-top: 1px solid var(--rule); padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-wrap: anywhere; }
.manager-list button { flex: none; }
@media (max-width: 850px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 235px); }
  .hero-figure > img { aspect-ratio: 2; }
}
@media (max-width: 680px) {
  .topbar { min-height: 64px; position: relative; }
  .brand { width: 110px; }
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; border: 1px solid var(--ink); background: transparent; padding: 7px 11px; font-weight: 650; }
  .menu-icon { width: 15px; height: 10px; border-block: 2px solid currentColor; }
  .nav { flex-wrap: wrap; gap: 8px 15px; }
  .js .nav { position: absolute; top: 100%; right: 0; width: min(100%, 300px); padding: 8px 13px 13px; background: var(--paper); border: 1px solid var(--rule); display: none; }
  .js .nav.open { display: grid; gap: 0; }
  .js .nav a { padding: 10px; }
  .js .nav .nav-contact { margin-top: 4px; background: var(--lime); }
  section[id] { scroll-margin-top: 76px; }
  .hero-copy, .studio-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-profile { padding: 20px 0 0; border: 0; border-top: 1px solid #9b9f91; }
  .hero-copy { padding-block: 35px 24px; gap: 14px; }
  .hero-aside { border: 0; padding-left: 0; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); margin-top: 12px; text-wrap: initial; }
  .hero-figure > img { aspect-ratio: 1.43; }
  .hero-figure figcaption a { padding: 9px 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 430px) {
  .services > div { grid-template-columns: 1fr; }
  .news-list article { grid-template-columns: 1fr; }
  .manager-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .card-media img { transition: none; }
}
