/* =========================================================
   Paragon Architectural Signs & Metals
   Design system — architectural, restrained, image-led
   ========================================================= */

:root {
  /* Brand palette — pulled directly from the logo */
  --ink: #2A3542;            /* deepest blue-grey */
  --steel: #46586B;          /* primary blue-grey (logo wordmark) */
  --steel-soft: #6A7A8C;
  --gold: #B89355;           /* primary gold (logo mark) */
  --gold-deep: #8F6F3C;
  --bone: #F4F1EA;           /* warm ivory surface */
  --bone-2: #EDE8DD;
  --paper: #FAF8F3;
  --line: #DCD6C8;
  --line-cool: #D5DBE2;
  --shadow: 0 1px 2px rgba(25,35,48,.04), 0 8px 30px rgba(25,35,48,.06);

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing / rhythm */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 2px;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 2.2vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 3vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 4.2vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 6vw, 4.75rem);
  --text-hero: clamp(3rem, 7.2vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Typography utilities ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.display-italic { font-style: italic; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--light { color: var(--gold); }
.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--steel);
  max-width: 62ch;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 60px; width: auto; }
.nav__links {
  display: none;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  padding-block: 6px;
  transition: color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__contact {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.nav__contact .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 16px; height: 1px; background: var(--ink);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__contact { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  padding: 16px 0 28px;
  border-top: 1px solid var(--line);
}
.nav__drawer.is-open { display: block; }
.nav__drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav__drawer a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__drawer .drawer-contact {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--steel);
  display: grid;
  gap: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,28,38,.35) 0%, rgba(20,28,38,.15) 40%, rgba(20,28,38,.85) 100%);
}
.hero__inner {
  padding-block: clamp(64px, 10vh, 120px) clamp(64px, 8vh, 100px);
  width: 100%;
}
.hero__eyebrow {
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: #E7D2A3;
  font-weight: 300;
}
.hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 720px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
}
.hero__meta span { display: inline-flex; gap: 10px; align-items: center; }
.hero__meta span::before {
  content: ""; width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
}

/* Page hero (interior) */
.page-hero {
  background: var(--bone);
  padding-block: clamp(100px, 14vw, 180px) clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow { margin-bottom: 22px; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
}
.page-hero__title em { font-style: italic; color: var(--steel); }
.page-hero__lead { margin-top: 32px; max-width: 62ch; color: var(--steel); font-size: var(--text-lg); line-height: 1.55; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.section-head__title em { font-style: italic; color: var(--steel); }
.section-head__body {
  color: var(--steel);
  max-width: 52ch;
  font-size: var(--text-lg);
  line-height: 1.6;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- Capability cards ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transition: background .3s ease;
}
.cap__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}
.cap__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
  line-height: 1.15;
}
.cap__body { color: var(--steel); max-width: 60ch; }
.cap__tags {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--steel-soft);
  margin-top: 4px;
}
.cap__tags span { position: relative; }
.cap__tags span + span::before {
  content: "·"; margin-right: 14px; color: var(--line);
}
@media (min-width: 900px) {
  .cap { grid-template-columns: 120px 1.1fr 1.4fr; gap: 40px; align-items: start; padding: 48px 0 56px; }
  .cap__body { margin: 0; }
  .cap__tags { grid-column: 2 / span 2; margin-top: 8px; }
}

/* ---------- Work grid / project cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .work-card.is-wide { grid-column: 1 / -1; }
  .work-grid .work-card.is-offset { transform: translateY(40px); }
}
.work-card { display: block; }
.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bone-2);
}
.work-card.is-wide .work-card__media { aspect-ratio: 16 / 9; }
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  gap: 20px;
}
.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
  line-height: 1.1;
}
.work-card__loc {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-soft);
  white-space: nowrap;
}
.work-card__tags {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- Split / feature block ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.is-reverse > :first-child { order: 2; }
}
.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { max-width: 54ch; }
.split__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.split__title em { font-style: italic; color: var(--steel); }
.split__body p { color: var(--steel); font-size: var(--text-lg); line-height: 1.6; }

/* ---------- Process ---------- */
.process-list { counter-reset: step; border-top: 1px solid var(--line); }
.process-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.process-item__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
}
.process-item__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
}
.process-item__body { color: var(--steel); max-width: 60ch; }
@media (min-width: 900px) {
  .process-item {
    grid-template-columns: 180px 1fr 1.6fr;
    gap: 48px;
    align-items: baseline;
    padding: 44px 0;
  }
}

/* ---------- Stats / facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.fact__num em { color: var(--gold-deep); font-style: normal; }
.fact__label {
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Materials palette ---------- */
.materials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) { .materials { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .materials { grid-template-columns: repeat(6, 1fr); } }
.material {
  aspect-ratio: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid transparent;
}
.material small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--steel-soft);
  margin-bottom: 4px;
}
.m-corten   { background: linear-gradient(160deg, #8E4A2B, #63321C); color: #F4E3CD; }
.m-corten small { color: #EFC79C; }
.m-brass    { background: linear-gradient(160deg, #C9A961, #8F6F3C); color: #2A2014; }
.m-brass small { color: #4A3820; }
.m-steel    { background: linear-gradient(160deg, #7A8894, #46586B); color: #ECF0F4; }
.m-steel small { color: #C9D3DD; }
.m-stone    { background: linear-gradient(160deg, #C6BEB0, #8D8474); color: #2C2822; }
.m-stone small { color: #554E42; }
.m-alum     { background: linear-gradient(160deg, #D8D8DA, #9FA2A8); color: #2A2D32; }
.m-alum small { color: #55595E; }
.m-bronze   { background: linear-gradient(160deg, #6E4B2A, #3C2814); color: #E4C99E; }
.m-bronze small { color: #BB9C6E; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding-block: clamp(64px, 8vw, 96px) 32px;
}
.site-footer a { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 56px; }
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.footer-tag { color: rgba(255,255,255,0.6); max-width: 34ch; font-size: 0.95rem; line-height: 1.55; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-col a { color: rgba(255,255,255,0.82); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* ---------- Micro-interactions ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap .3s ease, color .2s ease, border-color .2s ease;
}
.quiet-link:hover { gap: 16px; color: var(--gold-deep); border-color: var(--gold); }
.quiet-link--light { color: #fff; border-color: rgba(255,255,255,0.6); }
.quiet-link--light:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Marquee / wordmark ribbon ---------- */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  overflow: hidden;
  padding: 28px 0;
}
.ribbon__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: drift 42s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--steel);
  letter-spacing: -0.01em;
}
.ribbon__track span { display: inline-flex; gap: 64px; }
.ribbon__track span::after {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  align-self: center;
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } }
