/* Shared styles for service and portfolio pages; tokens match the homepage */
/* Self-hosted fonts (latin subset): no render-blocking request to Google Fonts */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bodoni-moda-latin.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/bodoni-moda-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jost-latin.woff2) format('woff2'); }
:root {
  --night: #061833; --brand-blue: #083774; --gold: #FFC10D; --gold-deep: #8A6500; --gold-line: rgba(255,193,13,0.3);
  --ivory: #EFE9DD; --paper: #F3EFE6; --ink: #0B1B33; --ink-muted: #45536B; --ink-label: #5A6782;
  --muted: #BCC6DA; --label: #A3B2D1; --ivory-line: rgba(239,233,221,0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Jost', system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.on-light :focus-visible { outline-color: var(--brand-blue); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: 48px; padding-right: 48px; } }

/* Type */
.display { font-family: 'Bodoni Moda', Didot, serif; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; margin: 0; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin: 0; }
.h1 em, .h2 em { font-style: italic; }
.title { font-family: 'Jost', system-ui, sans-serif; font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0; }
.lead { font-size: 18px; max-width: 36em; margin: 0; }
.label { font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.eyebrow { font-weight: 500; font-size: 12px; letter-spacing: 0.30em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; margin: 0; }
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--gold); flex: none; }

/* Header */
.site-header { background: var(--night); border-bottom: 1px solid var(--gold-line); color: var(--ivory); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 80px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo-mark { display: inline-flex; align-items: center; min-height: 44px; }
.logo-mark img { height: 52px; width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; letter-spacing: 0.04em; }
.nav a { text-decoration: none; padding: 12px 0; color: var(--ivory); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid var(--gold); font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.btn-primary { background: var(--gold); color: var(--brand-blue); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { border-color: var(--ivory); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.text-link { color: var(--brand-blue); font-weight: 500; text-underline-offset: 6px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--ink-label); margin: 0; padding-top: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-label); }
.crumbs a { color: var(--ink-label); text-underline-offset: 4px; }

/* Hero */
.hero { padding: 32px 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { color: var(--ink-muted); }
.hero-photo { margin: 0; border: 1px solid var(--gold); padding: 8px; background: var(--ivory); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { font-size: 13px; color: var(--ink-label); padding: 10px 4px 2px; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.band { background: var(--ivory); }
.dark { background: var(--night); color: var(--ivory); }
.dark .eyebrow { color: var(--label); }
.dark .lead { color: var(--muted); }

.cards { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin: 0; }
.card { border-top: 2px solid var(--gold); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--ink-label); padding: 8px 14px; font-size: 15px; color: var(--ink); }

.projects { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); list-style: none; padding: 0; margin: 0; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night); }
.project .meta { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); }
.project p { margin: 0; color: var(--ink-muted); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-label); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink-label); }
td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid rgba(11,27,51,0.15); color: var(--ink-muted); }
td:first-child { color: var(--ink); font-weight: 500; }

.steps { counter-reset: step; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: 'Bodoni Moda', Didot, serif; font-style: italic; font-size: 48px; line-height: 1; color: var(--gold-deep); }
.steps p { margin: 0; color: var(--ink-muted); }

.related { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.related a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid rgba(11,27,51,0.2); text-decoration: none; min-height: 44px; transition: border-color .3s; }
.related a:hover { border-color: var(--brand-blue); }
.related span { color: var(--ink-muted); font-size: 15px; }

/* Articles: one readable column (~65 characters) */
.article { max-width: 760px; }
.article-meta { font-size: 14px; color: var(--ink-label); margin: 16px 0 20px; }
.article h2 { font-family: 'Jost', system-ui, sans-serif; font-weight: 500; font-size: 24px; line-height: 1.3; margin: 48px 0 12px; }
.article h3 { font-family: 'Jost', system-ui, sans-serif; font-weight: 500; font-size: 19px; line-height: 1.35; margin: 28px 0 8px; color: var(--ink); }
.article p, .article li { color: var(--ink-muted); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); font-weight: 500; }
.article a { color: var(--brand-blue); text-underline-offset: 4px; }
.article .table-scroll { margin: 8px 0 20px; }
.project h2.title a { color: var(--ink); }
.project h2.title a:hover { color: var(--brand-blue); }

.cta { display: flex; flex-direction: column; gap: 24px; }
.cta .contact { color: var(--muted); font-size: 15px; margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: var(--label); border-top: 1px solid var(--gold-line); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--ivory); }
