/* Self-hosted Google Fonts, latin subset (licence: /assets/fonts/OFL.txt).
   Both are variable fonts, so one file covers the whole weight range. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens (CLAUDE.md "Design tokens"). Radius 0 and no shadows everywhere. */
:root {
  --bg: #ffffff;
  --ink: #161615;
  --accent: #161615; /* build.py replaces this */
  --danger: #c2412c;
  --ok: #3f8f5a;
  --grey-body: #5f5d58;
  --grey-label: #6b6964;
  --grey-meta: #8c8a84;
  --line-10: rgba(22,22,21,.10);
  --line-12: rgba(22,22,21,.12);
  --line-14: rgba(22,22,21,.14);
  --line-btn: rgba(22,22,21,.25);
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --pad-x: clamp(20px,4vw,48px);
  --photo-placeholder: repeating-linear-gradient(135deg,#f1f1f1 0 10px,#f6f6f6 10px 20px);
}

/* Base reset (the design's <helmet> style, minus overflow:hidden so text pages scroll) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #000000; }
button { font: inherit; color: inherit; }

/* Public site (design/Point Architects.dc.html). build.py bundles fonts.css + tokens.css + this file.
   Deviation (CSP style-src 'self'): the design's inline styles are classes here. Design state that changed
   inline styles becomes attributes/classes set by build.py and the JS:
   .app[data-sec], .sec.is-on / .is-past, [aria-current], .is-on, .menu-open, .has-specs / .has-client / .has-views.
   Breakpoints are the design's JS flags as media queries: tablet W<1200, mobile W<900, phone W<640,
   short H<720; "compact" = mobile or short. */

html, body { height: 100%; overflow: hidden; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); overflow: hidden; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.app[data-sec="0"] .cv, .app[data-sec="3"] .cv { z-index: 4; }

/* Header */
.hd { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px var(--pad-x); z-index: 5; }
.logo { display: flex; align-items: center; }
.logo img, .menu-top img, .ld-logo { height: 68px; width: auto; display: block; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.menu-btn span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: clamp(14px,2.4vw,34px); flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 6px 0; transition: color .3s; }
.nav a, .nav a:hover, .menu-list a, .menu-list a:hover { color: var(--grey-label); }
.nav a[aria-current], .nav a[aria-current]:hover, .menu-list a[aria-current], .menu-list a[aria-current]:hover { color: var(--ink); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s; }
.nav a[aria-current] .nav-dot { opacity: 1; }
.nav-num { font-family: var(--font-mono); font-size: 10px; color: var(--grey-meta); }
.nav-lbl { font-size: 14px; font-weight: 500; }

/* Phone menu */
.menu { position: absolute; inset: 0; z-index: 8; background: var(--bg); display: none; flex-direction: column; padding: 22px var(--pad-x) 32px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close { height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.menu-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu-list a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-12); text-align: left; }
.m-num { font-family: var(--font-mono); font-size: 11px; color: var(--grey-meta); }
.m-lbl { font-size: 40px; font-weight: 400; letter-spacing: -.035em; }
.menu-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }

/* Sections */
.main { position: absolute; top: 120px; bottom: 64px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.sec { position: absolute; inset: 0; padding: 0 var(--pad-x); display: grid; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity .35s, transform .5s; }
.sec.is-past { transform: translateY(-28px); }
.sec.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; transition: opacity .7s .35s, transform 1s .35s cubic-bezier(.2,.7,.2,1); }
.lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-label); }

/* 01 Projects */
.s-proj { grid-template-rows: minmax(0,1fr) auto; gap: clamp(18px,3.5vh,36px); }
.proj { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.6fr); grid-template-rows: minmax(0,1fr); gap: clamp(20px,4.5vw,72px); min-height: 0; }
.info { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 0; min-width: 0; }
.counter, .ld-count { display: flex; align-items: baseline; gap: 12px; }
.counter-n, .ld-n { font-size: clamp(40px,9vh,104px); font-weight: 400; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.counter-t, .ld-t { font-family: var(--font-mono); font-size: 11px; color: var(--grey-label); }
.title { display: flex; flex-direction: column; gap: clamp(8px,1.6vh,14px); }
.cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-label); }
.cat-pos, .sl-loc { display: none; }
.pname { margin: 0; font-size: clamp(24px,min(4.2vw,7.4vh),68px); font-weight: 400; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.loc { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-body); }
.specs { display: none; flex-wrap: wrap; gap: 8px 28px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--line-12); }
.has-specs .specs { display: flex; }
.spec { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-meta); }
.spec-v { font-size: 14px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.spec-line { display: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ctrl { display: flex; align-items: center; gap: 10px; }
.arrow { display: block; width: 44px; height: 44px; flex: none; background: transparent; border: 1px solid var(--line-btn); cursor: pointer; font-family: var(--font-mono); font-size: 14px; line-height: 1; padding: 0; }
.arrow:hover { background: var(--ink); color: #ffffff; }
.prog { flex: 1; height: 1px; background: var(--line-14); margin: 0 8px; min-width: 24px; }
.prog-bar { height: 1px; background: var(--ink); transform-origin: left center; transform: scaleX(0); }

.frame { position: relative; min-height: 0; overflow: hidden; cursor: pointer; background: var(--photo-placeholder); }
.frame-ph { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; color: var(--grey-meta); }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph:not([src]) { visibility: hidden; }
/* With JS the cover starts hidden and is revealed by the corner circle, as in the design. Without JS it just shows. */
@media (scripting: enabled) { .ph-top { clip-path: circle(0% at 0% 0%); } }
.views { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: none; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.has-views .views { display: flex; }
.dots { display: flex; gap: 4px; align-items: center; }
.dots span { height: 2px; width: 6px; background: rgba(255,255,255,.5); transition: width .4s; }
.dots .on { width: 18px; background: #ffffff; }

.bottom { display: flex; flex-direction: column; gap: 12px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { flex: none; padding: 5px 11px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; background: transparent; color: var(--grey-body); border: 1px solid rgba(22,22,21,.2); transition: background .25s, color .25s; }
.chip.is-on { background: var(--ink); color: #ffffff; }
.count { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--grey-label); }
.rail { display: flex; gap: 4px; height: clamp(48px,9vh,84px); }
/* Deviation (SEO): thumbnails are <a> + <img> (the -480 file) instead of buttons with a background image. */
.rail a { position: relative; flex: 1; min-width: 0; background-color: #f1f1f1; filter: grayscale(1); opacity: .55; transition: flex .7s cubic-bezier(.2,.7,.2,1), filter .4s, opacity .4s; }
.rail a.is-on { flex: 5; filter: grayscale(0); opacity: 1; }
.rail a:hover { filter: grayscale(0); opacity: 1; }
.rail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity .4s; }
.rail a.is-on .rail-bar { opacity: 1; }

/* 02 Experience */
.s-exp { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px,4vw,72px); align-items: end; align-content: end; }
.exp-left { display: flex; flex-direction: column; gap: clamp(14px,2.6vh,26px); max-width: 560px; }
.h-exp { margin: 0; font-size: clamp(30px,3.6vw,52px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.svcs { display: flex; flex-direction: column; border-top: 1px solid var(--line-14); }
.svc { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: clamp(8px,1.8vh,16px) 0; border-bottom: 1px solid var(--line-10); }
.svc-n { font-family: var(--font-mono); font-size: 10px; color: var(--grey-meta); padding-top: 4px; }
.svc-b { display: flex; flex-direction: column; gap: 6px; }
.svc-t { font-size: 17px; font-weight: 500; }
.svc-d { font-size: 14px; line-height: 1.55; color: var(--grey-body); text-wrap: pretty; }
.clients { display: flex; flex-direction: column; gap: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line-12); border-left: 1px solid var(--line-12); background: rgba(255,255,255,.85); }
.cell { display: flex; align-items: center; justify-content: center; height: clamp(48px,8vh,92px); padding: 10px 16px; border-right: 1px solid var(--line-12); border-bottom: 1px solid var(--line-12); }
.cell img { max-width: 100%; max-height: clamp(20px,4vh,34px); filter: grayscale(1); opacity: .75; transition: opacity .3s, filter .3s; }
.cell img:hover { opacity: 1; filter: grayscale(0); }

/* 03 Team */
.s-team { grid-template-columns: minmax(0,.8fr) minmax(0,1.6fr); grid-template-rows: minmax(0,1fr); gap: clamp(18px,4vw,72px); align-items: end; }
.team-left { display: flex; flex-direction: column; gap: clamp(12px,2.6vh,24px); max-width: 440px; }
.h-team, .h-contact { margin: 0; font-size: clamp(32px,3.8vw,56px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.h-contact { line-height: 1.02; }
.team-dot { display: inline-block; width: .28em; }
.team-p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey-body); text-wrap: pretty; }
.team-grid { max-height: 100%; overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); border-top: 1px solid var(--line-14); }
.member { display: flex; flex-direction: column; gap: 5px; padding: clamp(10px,1.8vh,14px) 16px clamp(10px,1.8vh,14px) 0; border-bottom: 1px solid var(--line-10); background: rgba(255,255,255,.8); }
.m-name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.m-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-label); }
.member:first-child .m-role { color: var(--accent); }

/* 04 Contact */
.s-contact { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: clamp(24px,4vw,64px); }
.c-left { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(12px,2.6vh,26px); max-width: 600px; }
.c-email { font-size: clamp(20px,2.1vw,30px); letter-spacing: -.02em; border-bottom: 1px solid rgba(22,22,21,.3); padding-bottom: 6px; align-self: flex-start; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; border-top: 1px solid var(--line-14); padding-top: clamp(12px,2vh,20px); }
.c-item { display: flex; flex-direction: column; gap: 6px; }
.c-k { font-family: var(--font-mono); font-size: 10px; color: var(--grey-label); text-transform: uppercase; letter-spacing: .08em; }
.c-addr { font-size: 15px; line-height: 1.5; }
.c-tel { font-size: 15px; }
.c-right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.map { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--line-14); background: #f1f1f1; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(1.04); }
.c-meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-label); }
.c-meta a { border-bottom: 1px solid rgba(22,22,21,.3); padding-bottom: 2px; }

/* Footer */
.ft { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px var(--pad-x); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--grey-label); z-index: 5; }
.ft-mid { display: flex; align-items: center; gap: 6px; }
.ft-bar { width: 14px; height: 2px; padding: 0; border: 0; background: rgba(22,22,21,.2); cursor: pointer; transition: width .5s, background .5s; }
.ft-bar.is-on { width: 36px; background: var(--accent); }
.ft-lbl { margin-left: 10px; }

/* Loading screen (CLAUDE.md "Decisions"; not in the design). Made only of the design's parts: the header logo in its
   place, the 1px progress line, the point with its pulse ring (6→40px, 0.7→0, every 1.67s), the big counter and the
   footer's mono label. loader.js sets --p (0–1). Everything moves by transform only, so nothing counts as a layout
   shift. Hidden without JS; if JS never starts, it hides itself at 6s (loader.js pauses that with .is-live). */
.ld { display: none; position: fixed; inset: 0; z-index: 10; background: var(--bg); color: var(--ink); animation: ld-cap 0s 6s forwards; }
@media (scripting: enabled) { .ld { display: block; } }
.ld.is-live { animation-play-state: paused; }
@keyframes ld-cap { to { visibility: hidden; } }
.ld-logo { position: absolute; top: 22px; left: var(--pad-x); }
.ld-line { position: absolute; left: var(--pad-x); right: var(--pad-x); top: 50%; height: 1px; background: var(--line-14); }
.ld-bar { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.ld-pt { position: absolute; top: 0; left: 0; width: 100%; transform: translateX(calc(var(--p, 0) * 100%)); }
.ld-dot, .ld-ring { position: absolute; left: 0; top: .5px; transform: translate(-50%, -50%); }
.ld-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ld-ring { width: 82px; height: 82px; overflow: visible; }
/* the ring scales from 6 to 40px radius; non-scaling-stroke keeps it 1px like the canvas ring */
.ld-ring circle { fill: none; stroke: var(--accent); stroke-width: 1px; vector-effect: non-scaling-stroke; animation: ld-pulse 1.67s linear infinite; }
@keyframes ld-pulse { from { transform: scale(.15); opacity: .7; } to { transform: scale(1); opacity: 0; } }
.ld-ft { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px var(--pad-x); }
.ld-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--grey-label); }
@media (prefers-reduced-motion: reduce) { .ld-ring { display: none; } }

/* Tablet: photo column widens */
@media (max-width: 1199.98px) {
  .proj { grid-template-columns: minmax(0,.55fr) minmax(0,1.6fr); }
}
/* Mobile (iPad portrait and below): single column, photo on top */
@media (max-width: 899.98px) {
  .main { top: 104px; bottom: 52px; }
  .s-proj { gap: 12px; }
  .proj { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; gap: 28px; }
  .info { gap: 8px; order: 2; }
  .title { gap: 6px; }
  .pname { font-size: 32px; }
  .arrow { display: none; font-size: 12px; }
  .prog { margin: 0; }
  .rail { height: 44px; }
  .rail a.is-on { flex: 3; }
  .s-exp { grid-template-columns: minmax(0,1fr); }
  .s-team { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
  .s-contact { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(150px,1fr); }
}
/* Compact project details: mobile or short screens */
@media (max-width: 899.98px), (max-height: 719.98px) {
  .counter, .has-specs .specs { display: none; }
  .has-client .spec-line { display: block; }
  .cat-pos { display: inline; }
}
@media (max-height: 719.98px) {
  .svc-d { display: none; }
}
/* Phone */
@media (max-width: 639.98px) {
  .logo img, .menu-top img, .ld-logo { height: 46px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .menu-open .menu { display: flex; }
  .main { top: 82px; bottom: 44px; }
  .ft { justify-content: center; }
  .ft-side, .ph-hide, .count, .loc, .svc-d { display: none; }
  .spec-line { display: block; }
  .sl-loc { display: inline; }
  .s-proj { gap: 8px; }
  .proj { gap: 26px; }
  .info { gap: 6px; }
  .title { gap: 4px; }
  .pname { font-size: 24px; }
  .rail { height: 32px; }
}
