/*
 * Purpose: Responsive visual system for the standalone Code Architecture draft.
 * Version: 0.3.1-draft
 * Maintenance: Preserve the 85%/1100px frame and 60px rail unless DESIGN_SYSTEM.md changes.
 */
:root {
  --ink: #232733;
  --paper: #fff;
  --mist: #f2f2ef;
  --line: #d6d7d5;
  --frame: min(85vw, 1100px);
  --rail: 60px;
  --header: 105px;
  --page-gutter: max(7.5vw, calc((100vw - 1100px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Akkurat", "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 300; line-height: 1.52; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 550px; margin-bottom: 22px; color: #fff; font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
h2 { margin: 0 0 10px; font-size: 30px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 22px; font-weight: 400; line-height: 1.3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #d39a31; outline-offset: 4px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 0 var(--page-gutter); background: #fff; border-bottom: 0; }
.wordmark img { width: 205px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.search-link, .menu-button { display: block; width: 25px; height: 25px; padding: 0; border: 0; background: none; }
.search-link img { width: 22px; height: 22px; }
.menu-button { cursor: pointer; }
.menu-button img { width: 25px; height: 25px; }
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.1); }
.site-menu { position: fixed; z-index: 70; top: 0; right: 0; width: 500px; max-width: 100vw; height: 100dvh; overflow-y: auto; color: var(--ink); background: #fff; transform: translateX(100%); transition: transform .2s ease; }
.site-menu.is-open { transform: translateX(0); }
.menu-header, .menu-primary, .menu-projects { padding-left: 30px; padding-right: 30px; }
.menu-header { display: flex; flex-direction: row-reverse; align-items: flex-start; height: var(--header); padding-top: 48px; }
.menu-close { position: relative; top: -5px; width: 25px; height: 25px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-close img { width: 25px; height: 25px; }
.menu-primary { display: flex; justify-content: space-between; margin-top: -2px; }
.menu-links { width: calc(100% - 30px); }
.menu-links h3 { margin: 0 0 10px; font-size: 22px; font-weight: 400; line-height: 1.3; }
.menu-links a { border: 0; text-decoration: none; }
.menu-links a:hover { color: #777; }
.menu-logo { width: 18px; }
.menu-logo img { width: 17px; max-width: none; }
.menu-projects { padding-top: 50px; }
.menu-projects h4 { margin: 0; padding: 10px 0 30px; border-top: 2px solid rgba(0,5,10,.4); font-size: 19px; font-weight: 400; }
.menu-project-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.menu-project { display: block; width: calc(50% - 10px); margin-bottom: 15px; text-decoration: none; }
.menu-project > img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.menu-project span { display: block; height: 50px; overflow: hidden; padding-top: 4px; font-size: 13px; line-height: 1.2; }
.menu-project strong, .menu-project small { display: block; font-size: inherit; }
.menu-project strong { font-weight: 600; }
.menu-project small { font-weight: 300; }
body.menu-open { overflow: hidden; }
.hero, .section { position: relative; width: var(--frame); margin: 0 auto; padding-right: var(--rail); }
.hero { width: 100%; height: max(700px, 100svh); padding-top: var(--header); padding-right: 0; overflow: hidden; background: var(--ink); }
.hero-image, .hero-shade { position: absolute; inset: var(--header) 0 0 0; width: 100%; height: calc(100% - var(--header)); object-fit: cover; }
.hero-image { object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(21,24,32,.66), rgba(21,24,32,.1) 74%), linear-gradient(0deg, rgba(21,24,32,.4), transparent 45%); }
.hero-copy { position: absolute; left: var(--page-gutter); bottom: 50px; z-index: 2; width: min(50%, 550px); min-height: 150px; padding-right: 30px; }
.eyebrow { margin-bottom: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #fff; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: .88rem; font-weight: 400; }
.text-link.light { color: #fff; }
.section-rail { position: absolute; top: 0; right: 0; bottom: 0; width: var(--rail); display: flex; align-items: center; gap: 36px; overflow: hidden; border-left: 0; writing-mode: vertical-rl; padding: 26px 20px; font-size: .72rem; letter-spacing: .08em; }
.section-rail img { width: 17px; height: 198px; margin: auto; }
.rail-dark { color: #fff; background: transparent; border-color: transparent; }
.hero .section-rail { top: var(--header); right: var(--page-gutter); width: 17px; align-items: flex-start; padding: 30px 0 0; }
.hero .section-rail img { margin: 0 auto; }
.section-inner { padding: clamp(76px, 10vw, 132px) clamp(30px, 8vw, 95px); }
.section-heading { max-width: 580px; }
.section-heading > p:last-child { max-width: 520px; }
.projects-section { background: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 64px; }
.project-card { min-height: 420px; background: var(--mist); }
.project-card img { width: 100%; height: 330px; object-fit: cover; }
.project-card > div { padding: 22px 24px; }
.project-card p { margin-bottom: 0; font-size: .92rem; }
.project-wide { grid-column: 1 / -1; }
.project-wide img { height: min(64vw, 650px); }
.project-note { display: flex; align-items: flex-end; background-image: radial-gradient(circle, #b7b8b5 1.25px, transparent 1.25px); background-size: 26px 26px; }
.project-note > div { margin: 52px; padding: 30px; background: #fff; }
.grid-section { background: #fff; }
.grid-section .section-inner { width: 100%; padding: 70px 270px 70px 70px; background-image: url("../assets/img/bg/Grid_bg.png"); background-repeat: repeat; background-size: auto; }
.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px; align-items: start; }
.panel { padding: clamp(32px, 5vw, 62px); background: #fff; }
.prose { max-width: 620px; }
.prose p { margin-bottom: 1.25em; }
.contact-section { color: #fff; background: var(--ink); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; min-height: 520px; }
.contact-action { max-width: 480px; }
.button { display: inline-block; margin: 20px 0; padding: 16px 20px; border: 1px solid #fff; text-decoration: none; font-size: .9rem; }
.button:hover { color: var(--ink); background: #fff; }
.draft-note { opacity: .65; font-size: .76rem; }
.template-section { position: relative; width: min(85%, 1100px); margin: 0 auto; }
.template-rail { position: absolute; top: 0; right: 0; width: 60px; }
.template-rail img { position: absolute; top: 0; right: 0; width: 14px; max-width: none; }
.template-rail span { position: absolute; top: 225px; right: 0; width: 1000px; transform: rotate(90deg); transform-origin: top left; font-size: 16px; font-weight: 400; line-height: 1.2; }
.template-projects .template-rail { top: 90px; }
.template-project-grid { width: calc(100% - 60px); padding: 90px 0; overflow: hidden; }
.template-project { position: relative; display: block; float: left; width: calc(50% - 5px); height: calc(15vw + 120px); max-height: 350px; margin: 0 10px 10px 0; overflow: hidden; }
.template-project:nth-of-type(2n) { margin-right: 0; }
.template-project img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s linear; }
.template-project:hover img { opacity: .9; }
.template-project-grid h4 { clear: both; margin: 0; padding-top: 20px; font-size: 19px; font-weight: 400; }
.template-project-grid h4 a { text-decoration: none; }
.template-about .about-grid { box-sizing: border-box; width: calc(100% - 60px); min-height: 200px; padding: 70px 270px 70px 70px; background: url("../assets/img/bg/Grid_bg.png") repeat; }
.about-panel { padding: 30px; background: #fff; }
.about-panel h2 { max-width: 560px; }
.about-panel p { max-width: 560px; }
.template-contact { margin-top: 90px; }
.contact-frame { display: flex; justify-content: flex-end; width: calc(100% - 60px); }
.contact-grid { position: relative; display: inline-block; box-sizing: border-box; width: 82%; padding: 45px 45px 50px 20vw; background: url("../assets/img/bg/Grid_bg.png") repeat; }
.contact-image { position: absolute; bottom: -20px; left: -9vw; width: 33vw; max-width: 440px; }
.contact-image img { width: 100%; height: auto; }
.contact-copy { padding: 30px 30px 30px 10vw; background: #fff; }
.project-page-main { padding-top: var(--header); }
.project-article { width: min(85%, 1100px); margin: 0 auto; padding-top: 90px; }
.project-main-image { position: relative; margin-bottom: 50px; }
.project-hero-media { width: calc(100% - 60px); }
.project-hero-media img { width: 100%; height: auto; }
.project-rail { position: absolute; top: 0; right: 0; width: 60px; }
.project-rail img { position: absolute; top: 0; right: 0; width: 14px; max-width: none; }
.project-rail h1 { position: absolute; top: 225px; right: 0; width: 1000px; margin: 0; color: var(--ink); transform: rotate(90deg); transform-origin: top left; font-size: 16px; font-weight: 400; line-height: 1.2; }
.project-summary { display: flex; width: calc(100% - 60px); justify-content: space-between; align-items: flex-start; }
.project-text-col { width: calc(100% - 450px); max-width: 500px; }
.project-text-col p { margin-bottom: 1.25em; }
.project-number { margin-top: 28px; opacity: .55; font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.project-info-col { display: flex; width: 400px; flex-wrap: wrap; }
.project-info { width: 50%; min-height: 100px; margin: 0; padding: 0 18px 20px 0; }
.project-info dt { margin-bottom: 4px; opacity: .42; font-size: 13px; font-weight: 400; }
.project-info dd { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.35; }
.project-gallery { width: calc(100% - 60px); margin-top: 50px; }
.project-gallery figure { margin: 0 0 10px; }
.project-gallery img { width: 100%; height: auto; }
.project-gallery figcaption { padding: 7px 0 18px; opacity: .62; font-size: 12px; font-weight: 400; }
.project-page-main + .site-footer { margin-top: calc(6vw + 50px); }
.public-page-main { padding-top: var(--header); }
.public-page { position: relative; width: min(85%, 1100px); min-height: 600px; margin: 0 auto; padding: 90px 60px 0 0; }
.public-page-rail { position: absolute; top: 90px; right: 0; width: 60px; }
.public-page-rail img { position: absolute; top: 0; right: 0; width: 14px; max-width: none; }
.public-page-rail span { position: absolute; top: 225px; right: 0; width: auto; white-space: nowrap; writing-mode: vertical-rl; font-size: 16px; font-weight: 400; line-height: 1.2; }
.public-page h1 { max-width: 720px; margin-bottom: 24px; color: var(--ink); font-size: 46px; font-weight: 700; line-height: 1; }
.public-page-intro { max-width: 720px; padding: 20px 0 55px; }
.public-page-intro > p:last-child { max-width: 560px; }
.public-feature { width: 100%; margin: 0 0 60px; overflow: hidden; }
.public-feature img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; }
.public-feature-wide img { max-height: none; object-fit: contain; }
.public-prose { max-width: 720px; padding-bottom: 40px; }
.public-prose p { margin-bottom: 1.25em; }
.public-prose h2 { margin: 2em 0 .6em; font-size: 22px; }
.review-notice { padding: 18px 20px; border-left: 3px solid #d39a31; background: var(--mist); font-size: 14px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 10px; }
.archive-card { display: block; text-decoration: none; }
.archive-card img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.archive-card span { display: block; padding-top: 10px; }
.archive-card strong, .archive-card small { display: block; }
.archive-card strong { font-size: 16px; font-weight: 400; }
.archive-card small { opacity: .58; font-size: 13px; font-weight: 400; }
.legal-prose { max-width: 780px; }
.legal-prose h1 { font-size: 35px; font-weight: 400; }
.legal-prose h2 { font-size: 19px; font-weight: 700; }
.legal-date { opacity: .65; font-size: 13px; }
.public-page-main + .site-footer { margin-top: calc(6vw + 50px); }
.site-footer { width: min(85%, 1100px); margin: calc(6vw + 50px) auto 0; padding: 60px 0 70px; font-size: 13px; }
.site-footer p { margin: 0; font-weight: 400; line-height: 1.4; }
.site-footer a { border: 0; color: inherit; text-decoration: none; }
.footer-content { display: flex; justify-content: space-between; }
.footer-columns { display: inline-flex; gap: 80px; }
.footer-columns > div { min-width: 150px; min-height: 150px; }
.footer-logo { width: 150px; margin-bottom: 10px; }
.footer-nav { display: flex; min-width: 150px; flex-direction: column; text-align: right; font-size: 17px; line-height: 1.4; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
@media (min-width: 1400px) {
  .contact-grid { padding-left: 250px; }
  .contact-image { left: -120px; }
  .contact-copy { padding-left: 130px; }
}
@media (max-width: 1200px) {
  .template-about .about-grid { padding: 6vw; background-image: url("../assets/img/bg/Grid_bg-tablet.png"); }
  .about-panel { padding: 5vw; }
  .contact-grid { display: flex; width: 100%; padding: 6vw; flex-direction: column-reverse; background-image: url("../assets/img/bg/Grid_bg-tablet.png"); }
  .contact-copy { padding: 5vw 5vw 0; }
  .contact-image { position: static; box-sizing: border-box; width: 100%; max-width: none; padding: 0 5vw 4vw; background: #fff; }
  .contact-image img { max-width: 300px; }
}
@media (max-width: 900px) {
  :root { --frame: 100%; --header: 86px; }
  .site-header { padding: 0 var(--page-gutter); }
  .wordmark img { width: 175px; }
  .hero { height: 780px; }
  .template-project { height: auto; max-height: none; overflow: visible; }
  .template-project img { height: auto; object-fit: contain; }
  .archive-card img, .menu-project > img { height: auto; aspect-ratio: auto; object-fit: contain; }
  h1 { font-size: 18px; }
  .split-layout, .contact-layout { grid-template-columns: 1fr; }
  .grid-section .section-inner { padding: 6vw; background-image: url("../assets/img/bg/Grid_bg-tablet.png"); }
  .split-layout { gap: 0; }
  .contact-layout { min-height: 470px; }
  .footer-content { flex-wrap: wrap; }
  .footer-columns, .footer-nav { width: 100%; text-align: center; }
  .footer-columns { justify-content: space-between; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom p { width: 100%; text-align: center; line-height: 1.6; }
  .project-article { padding-top: 60px; }
  .project-summary { flex-direction: column-reverse; }
  .project-text-col { width: 100%; max-width: none; }
  .project-info-col { width: calc(100% - 40px); }
  .project-info { min-height: 70px; }
  .public-page h1 { font-size: 35px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  body { font-size: 15px; }
  h2 { font-size: 28px; }
  h3, .menu-links h3 { font-size: 20px; }
  .template-project-grid h4 { font-size: 18px; }
}
@media (max-width: 500px) {
  .site-menu { width: 100vw; }
}
@media (max-width: 640px) {
  :root { --rail: 42px; }
  body { font-size: 15px; }
  .hero { height: 720px; }
  h1 { font-size: 16px; }
  .hero-copy { left: var(--page-gutter); bottom: 50px; width: calc(100% - var(--page-gutter) - 70px); min-height: 150px; padding: 0; }
  .section-inner { padding: 70px 22px; }
  .section-rail { padding: 18px 12px; font-size: .62rem; }
  .section-rail strong { display: none; }
  .section-rail img { transform: scale(.82); }
  .project-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .project-wide { grid-column: auto; }
  .project-card, .project-card img { min-height: 0; height: auto; }
  .project-card img { aspect-ratio: 4 / 3; object-fit: cover; }
  .project-note { min-height: 360px; }
  .project-note > div { margin: 26px; padding: 24px; }
  .panel { padding: 30px 26px; }
  .grid-section .section-inner { background-image: url("../assets/img/bg/Grid_bg-phone.png"); background-size: auto; }
  .template-about .about-grid, .contact-grid { background-image: url("../assets/img/bg/Grid_bg-phone.png"); background-size: 5%; }
  .footer-columns { flex-wrap: wrap; }
  .footer-columns > div { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  h2 { font-size: 25px; }
  h3, .menu-links h3 { font-size: 17px; }
  .template-project-grid h4 { font-size: 16px; }
  .template-project { width: 100%; height: auto; max-height: none; margin-right: 0; }
  .public-page { width: 85%; padding-top: 60px; }
  .public-page-rail { top: 60px; }
  .public-page h1, .legal-prose h1 { font-size: 25px; }
  .public-feature { margin-bottom: 40px; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
