:root {
  --ink: #0f1a33;
  --ink-2: #1c2b52;
  --concrete: #f5f5f3;
  --concrete-2: #e6e8ec;
  --line: #d7dae0;
  --muted: #636b70;
  --accent: #b9122b;
  --navy: #00247d;
  --accent-ink: #ffffff;
  --white: #ffffff;
  --radius: 2px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--concrete); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 92px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-foot img { height: 44px; filter: brightness(0) invert(1); opacity: .92; }
.brand b { font-family: var(--head); font-size: 26px; font-weight: 900; letter-spacing: 0.04em; }
.brand b i { font-style: normal; color: var(--accent); }
.brand span { font-size: 12px; color: #b9bcc1; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }
.nav a.btn, .nav a.btn:hover { color: var(--white); padding: 10px 18px; }
.nav .btn { border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 0; color: var(--navy); font: 600 15px var(--body); cursor: pointer; padding: 8px 0; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 700 15px var(--body); padding: 14px 22px; border-radius: var(--radius); border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: #96101f; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink-2); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.hero-media.ready { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,45,.25) 0%, rgba(10,20,45,.55) 45%, rgba(10,20,45,.92) 100%); }
.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; max-width: 1200px; }
.hero h1 { max-width: 14ch; margin: 18px 0 24px; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; color: #e3e4e6; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 24px; z-index: 1; font-size: 13px; color: #c7c9cc; text-decoration: none; }
.hero-caption:hover { color: var(--white); }

/* stats strip */
.strip { background: var(--navy); color: var(--white); display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 28px var(--gutter); border-right: 1px solid rgba(255,255,255,.18); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-family: var(--head); font-size: 22px; font-weight: 800; }
.strip span { font-size: 14px; color: #c9d2ea; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr 1fr; } .strip div:nth-child(2) { border-right: 0; } .strip div { border-bottom: 1px solid rgba(255,255,255,.18); } }

/* services */
.section:not(.dark):not(.cta) h2 { color: var(--navy); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services article { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--concrete); }
.services article .num { font-family: var(--head); color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.services h3 { margin: 18px 0 10px; }
.services p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* project cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: block; }
.card .ph { aspect-ratio: 4 / 3; background: var(--concrete-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.card h3 { font-size: 20px; }
.card .yr { font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 14px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dark { background: var(--ink); color: var(--white); }
.dark .card p, .dark .muted { color: #b8bfcc; }
.dark .card .ph { background: var(--ink-2); }

/* portfolio */
.page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: 40px; }
.page-head h1 { font-size: clamp(40px, 6vw, 80px); margin: 14px 0 18px; color: var(--navy); }
.page-head p { max-width: 60ch; color: var(--muted); font-size: 19px; }
.years { position: sticky; top: 72px; z-index: 10; background: var(--concrete); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.years button { flex: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px 16px; font: 700 15px var(--head); color: var(--ink); cursor: pointer; }
.years button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.year-block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 64px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.year-block .y { font-family: var(--head); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: .9; color: var(--navy); position: sticky; top: 150px; align-self: start; }
.year-block .y small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.year-block .grid { grid-template-columns: repeat(2, 1fr); padding-bottom: 40px; }
@media (max-width: 860px) { .year-block { grid-template-columns: 1fr; gap: 20px; } .year-block .y { position: static; } }
@media (max-width: 600px) { .year-block .grid { grid-template-columns: 1fr; } }
.status { padding: 40px 0; color: var(--muted); }

/* project detail */
.p-hero { position: relative; background: var(--ink); color: var(--white); }
.p-hero .cover { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; opacity: .85; }
@media (max-width: 700px) { .p-hero .cover { aspect-ratio: 4 / 3; } }
.p-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
@media (max-width: 860px) { .p-body { grid-template-columns: 1fr; } }
.p-body h1 { font-size: clamp(36px, 5vw, 68px); margin: 14px 0 24px; color: var(--navy); }
.p-body .desc { font-size: 19px; max-width: 60ch; }
.facts { border-top: 3px solid var(--navy); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.gallery { columns: 3 320px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; background: var(--concrete-2); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; }
@media (max-width: 600px) { .gallery img { max-height: 70vh; object-fit: cover; } }
.lightbox { position: fixed; inset: 0; background: rgba(10, 11, 12, .94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.backlink { display: inline-block; margin-bottom: 8px; text-decoration: none; color: var(--muted); font-size: 15px; }
.backlink:hover { color: var(--ink); }

/* about / contact */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 40px; } }
.prose p { font-size: 18px; margin-bottom: 20px; max-width: 62ch; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic a { aspect-ratio: 1; background: var(--concrete-2); overflow: hidden; display: block; }
.mosaic a:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { margin: 12px 0 8px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: 21px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(.4); }

/* cta + footer */
.cta { background: var(--accent); color: var(--white); }
.cta .inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 18ch; }
.cta .btn { background: var(--ink); }
.cta .btn:hover { background: #000; }
.site-footer { background: var(--ink); color: #b8bfcc; padding-top: 56px; padding-bottom: 32px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer h4 { color: var(--white); font-family: var(--head); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { padding-top: 24px; font-size: 13px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.hero .eyebrow { color: #fff; border-left: 3px solid var(--accent); padding-left: 10px; }
.card .ph-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--ink)); color: #c9d2ea; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
