:root {
  color-scheme: light;
  --paper: #edf1f7;
  --white: #fcfdff;
  --ink: #172339;
  --muted: #43536e;
  --line: #cdd7e6;
  --accent: #285182;
  --navy: #17233a;
  --brass: #ead2a4;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: radial-gradient(ellipse at 86% 0%, #e1e9fa, transparent 46rem), var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
p, figure, h1, h2, h3, h4, ol { margin: 0; }
p { max-width: 65ch; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.1; letter-spacing: -.028em; }
a { color: var(--accent); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #426bbe; outline-offset: 4px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 72px, 1130px); margin-inline: auto; }
.label { color: var(--accent); font: 500 .82rem/1.5 var(--mono); letter-spacing: .01em; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3; padding: .5rem .9rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: #edf1f7f2; backdrop-filter: blur(12px); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1rem; font-weight: 650; text-decoration: none; }
.wordmark img { flex: none; border-radius: 8px; filter: hue-rotate(68deg) saturate(.8); }
.site-header nav { display: flex; gap: clamp(14px, 2.7vw, 32px); }
.site-header nav a { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(365px, 36vw, 490px);
  margin-block: clamp(19px, 3vw, 36px) clamp(32px, 5vw, 60px);
  padding: clamp(31px, 5vw, 60px);
  border: 1px solid #475a7c;
  border-radius: 18px;
  background: var(--navy);
  color: #f5f6fb;
}
.hero-copy { max-width: 68%; }
.hero-copy .label { color: var(--brass); }
.hero h1 { margin-top: 13px; font-size: clamp(3.1rem, 6.3vw, 5.55rem); letter-spacing: -.047em; line-height: .99; }
.hero h1 span { color: var(--brass); }
.hero-intro { margin-top: 18px; max-width: 37ch; color: #dce5f8; font-size: clamp(1.04rem, 1.8vw, 1.24rem); line-height: 1.5; }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 42%, #526789 0%, #293b5a 41%, transparent 75%),
    repeating-linear-gradient(118deg, #c4d1f113 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #17233a 13%, #17233aec 33%, #17233a82 50%, transparent 69%);
}
.clock-face {
  position: absolute;
  top: 50%;
  right: 1.4%;
  width: clamp(380px, 48vw, 542px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid #c2a46b;
  border-radius: 50%;
  background: radial-gradient(circle, #2d3d5a 0 79%, #17233a 96%);
  box-shadow: 0 0 0 8px #b0a07d40, 0 0 0 9px #b7a16970, 0 0 0 16px #8498bc43;
}
.clock-face::before {
  content: "";
  position: absolute;
  inset: 3%;
  border: 1px solid #aa92656c;
  border-radius: 50%;
}
.clockwork { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.clock-ticks {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -.35deg, #b6ad93 0deg .7deg, transparent .7deg 6deg);
  mask-image: radial-gradient(closest-side, transparent 93%, #000 94% 99%, transparent);
}
.clock-ticks-major {
  background: repeating-conic-gradient(from -.7deg, #e5c78f 0deg 1.4deg, transparent 1.4deg 30deg);
  mask-image: radial-gradient(closest-side, transparent 89%, #000 90% 99%, transparent);
}
.clock-number, .clock-city {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 500 clamp(.85rem, 1.55vw, 1.2rem)/1 var(--mono);
  color: #f0dbac;
}
.clock-noon { top: 12%; left: 50%; }
.clock-three { top: 50%; left: 88%; }
.clock-six { top: 88%; left: 50%; }
.clock-nine { top: 50%; left: 12%; }
.clock-city { top: 76%; left: 50%; padding: 4px 8px; border: 1px solid #a686526f; border-radius: 12px; background: #1b293f; font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; }
.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fae3ae;
  box-shadow: 0 1px 4px #141d30;
  transform-origin: 50% 100%;
}
.clock-hour { height: 22%; transform: rotate(var(--clock-hour, 304deg)); }
.clock-minute { height: 32%; transform: rotate(var(--clock-minute, 48deg)); }
.clock-second { width: 1px; margin-left: -.5px; height: 35%; background: #db9a70; transform: rotate(var(--clock-second, 175deg)); }
.clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #332b1f;
  background: #e9c88c;
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 17px; }
.section-head::after {
  content: "";
  flex-basis: 100%;
  height: 6px;
  border-bottom: 1px solid #bdb294;
  background: repeating-linear-gradient(90deg, #9c7c4b 0 1px, transparent 1px 20px);
  opacity: .55;
}
.section-head h2, .about h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.project-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 15px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #dfe7f3;
}
.project-tabs a {
  display: grid;
  place-items: center;
  min-height: 45px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--navy);
  font-size: .96rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.project-tabs a:hover { background: #f0f5fc; }
.project-tabs a[aria-selected="true"] {
  border-color: #283e61;
  background: #233756;
  color: #f6f8ff;
  box-shadow: inset 0 -2px 0 #dfbe89;
}
[data-project-panel][hidden] { display: none; }
[data-project-panel]:not([role="tabpanel"]) + [data-project-panel] { margin-top: 16px; }
[data-project-panel]:focus-visible { outline: 3px solid #426bbe; outline-offset: 4px; }
.project-title { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-block: 10px 13px; }
.link-row { display: flex; flex-wrap: wrap; gap: 7px 17px; margin-top: 15px; }
.link-row a, .project-grid article > a { font-size: .95rem; font-weight: 650; }

.project-art { display: none; }
.project-art.has-art { display: block; width: 100%; min-width: 0; }
.project-art canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 30 / 11;
  border: 1px solid #526b89;
  border-radius: 8px;
  background:
    linear-gradient(#9cb6d412 1px, transparent 1px),
    linear-gradient(90deg, #9cb6d412 1px, transparent 1px),
    radial-gradient(ellipse at 65% 5%, #294564, #15263f 85%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
}
.project-art figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.featured-intro .project-art { margin-top: 18px; }
.featured-intro .project-art figcaption { color: #d7e3f7; }
.project-grid .project-art { margin-bottom: 14px; }

.featured { border-radius: 18px; background: var(--white); border: 1px solid var(--line); overflow: clip; }
.featured-intro { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(23px, 4vw, 50px); padding: clamp(23px, 4.5vw, 53px); background: linear-gradient(125deg, #192942, #2d4366); color: #f1f4fb; }
.featured-intro .project-title { font-size: clamp(3rem, 5.4vw, 4.9rem); letter-spacing: -.04em; }
.featured-intro .label, .featured-intro p, .featured-preview figcaption { color: #d7e3f7; }
.featured-intro a { color: var(--brass); }
.featured-intro a:focus-visible { outline-color: var(--brass); }
.featured-preview img { width: 100%; border: 1px solid #536b8b; border-radius: 8px; box-shadow: 0 12px 30px #0f162980; }
.featured-preview figcaption { margin-top: 8px; font-size: .85rem; }
.featured-details { padding: clamp(22px, 4vw, 43px); }
.featured-notes, .measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3.5vw, 39px); }
.featured-notes h4, .project-notes h4 { margin-bottom: 7px; font-size: 1.28rem; }
.featured-notes p, .measurements p:last-child, .project-row p:not(.label), .project-grid article > p:not(.label), .about p { color: var(--muted); }
.measurements { margin-top: 24px; }
.measurements section { padding: 16px clamp(13px, 2.4vw, 22px); background: #ecf2fb; border: 1px solid var(--line); border-radius: 9px; }
.metric { margin-block: 5px 7px; font: 500 clamp(1.32rem, 3.4vw, 2.05rem)/1.2 var(--mono); letter-spacing: -.055em; }
.metric span { font-family: var(--sans); }
.measurements p:last-child { font-size: .96rem; }

.project-row {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: clamp(21px, 5vw, 55px);
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f7fd, var(--white) 69%);
}
.project-lead p:not(.label) { max-width: 33ch; }
.project-notes { display: grid; gap: 11px; }
.note-card { padding: clamp(15px, 2.5vw, 22px); border: 1px solid var(--line); border-radius: 9px; background: #edf3fb; }
.note-list { margin: 0; padding-left: 1.05em; color: var(--muted); }
.note-list li + li { margin-top: 4px; }

.more-heading { margin-block: 20px 14px; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-grid article { display: flex; flex-direction: column; align-items: start; border: 1px solid var(--line); border-radius: 11px; padding: clamp(16px, 2.7vw, 24px); background: var(--white); }
.project-grid article h4 { font-size: clamp(1.25rem, 2.3vw, 1.62rem); margin-block: 5px 7px; }
.project-grid article > a { margin-top: auto; padding-top: 8px; }
.about { display: grid; grid-template-columns: minmax(100px, .36fr) minmax(0, 1fr); gap: 16px 26px; margin-block: clamp(35px, 6vw, 78px); padding: clamp(22px, 4vw, 39px); border: 1px solid var(--line); border-radius: 13px; background: #e6edf7; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .featured-intro { grid-template-columns: 1fr; }
  .featured-preview img { max-height: 360px; object-fit: contain; background: #141d30; }
  .hero-copy { max-width: 75%; }
  .clock-face { right: -107px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 60px; gap: 7px; }
  .wordmark { gap: 6px; font-size: .86rem; }
  .wordmark img { width: 27px; height: 27px; border-radius: 6px; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: .85rem; }
  .hero { min-height: 451px; align-items: start; padding: 24px 21px 177px; border-radius: 13px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.62rem, 10.3vw, 3.55rem); }
  .hero-intro { margin-top: 13px; }
  .hero-art::after { background: linear-gradient(180deg, #17233a 49%, #17233adc 59%, #17233a26 73%, transparent 86%); }
  .clock-face { top: auto; right: -32px; bottom: -90px; width: 350px; transform: none; }
  .clock-city { top: 70%; }
  .project-tabs a { min-height: 42px; font-size: .87rem; }
  .featured { border-radius: 13px; }
  .featured-notes, .measurements, .project-row, .project-grid, .about { grid-template-columns: 1fr; }
  .measurements { gap: 8px; margin-top: 17px; }
}
@media (max-width: 370px) {
  .project-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in .72s cubic-bezier(.2, .75, .22, 1) both; }
  .hero-copy h1 { animation-delay: .09s; }
  .hero-intro { animation-delay: .18s; }
  .clock-face { animation: dial-in 1s cubic-bezier(.2, .75, .22, 1) .06s both; }
  .motion-ready .is-revealed[data-reveal] {
    transition: opacity .54s ease, transform .7s cubic-bezier(.2, .75, .22, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready [data-reveal]:not(.is-revealed):not(:focus-within):not(:target) {
    opacity: .18;
    transform: translateY(28px);
  }
  .motion-ready [data-reveal]:is(:focus-within, :target) { transition-delay: 0ms; }
  [data-project-panel][role="tabpanel"]:not([hidden]) { animation: tab-in .34s cubic-bezier(.2, .75, .22, 1) both; }
  .project-tabs a { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
}
@keyframes tab-in {
  from { opacity: 0; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes rise-in {
  from { opacity: 0; translate: 0 17px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dial-in {
  from { opacity: .2; scale: .9; rotate: -8deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clock-second { display: none; }
}
