/* Conchubar: direction A "Cinematic". Tokens from DESIGN.md. */
:root {
  --bg: #2D1219;
  --bg-deep: #240D14;
  --bg-card: #3A1820;
  --sep: #5C2D38;
  --maroon: #9B2335;
  --maroon-brand: #6E1B2A;
  --maroon-lt: #D4687A;
  --label: #C9A0A8;
  --gold: #F59E0B;
  --text: #FFFFFF;
  --text-body: #B0BEC5;
  --text-muted: #A78088;

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --font-display: var(--font-sans);
  --display-weight: 300;
  --display-track: -0.015em;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 900px 600px at 10% 30%, rgba(155, 35, 53, 0.22), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 70%, rgba(110, 27, 42, 0.30), transparent 60%);
  background-attachment: fixed;
  color: var(--text-body);
  font: 300 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon-lt); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--maroon-lt); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--text); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--sep);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 400 19px/1 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button.nav-btn {
  font: 400 13px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label); text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
  transition: color 0.15s ease;
}
.nav a:hover, .nav button.nav-btn:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-btn::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; top: calc(100% + 18px); left: -20px; min-width: 300px;
  list-style: none; margin: 0; padding: 8px 0; background: var(--bg-card); border: 1px solid var(--sep);
}
.has-sub.open .sub { display: block; }
.sub a { display: block; padding: 14px 20px; font: 400 15px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.sub a small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.sub a:hover { background: var(--bg); }
.sub .sub-item { display: block; padding: 14px 20px; font: 400 15px/1.3 var(--font-sans); color: var(--text-body); }
.sub .sub-item small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
div.company:hover { background: var(--bg-card); }
.draft-tag { font: 400 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-left: 8px; }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--text); font: 400 13px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  }
  .menu-toggle .bars { width: 22px; height: 2px; background: currentColor; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .menu-toggle .bars::before { top: -7px; } .menu-toggle .bars::after { top: 7px; }
  .nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg-deep);
    overflow-y: auto; overscroll-behavior: contain; padding: 24px var(--gutter) 48px;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--sep); }
  .nav a, .nav button.nav-btn { display: block; width: 100%; text-align: left; padding: 20px 0; font-size: 15px; color: var(--text); }
  .nav-btn::after { display: none; }
  .sub { display: block; position: static; min-width: 0; border: 0; background: none; padding: 0 0 12px; }
  .sub a { padding: 12px 0 12px 16px; border-left: 2px solid var(--maroon); }
  .sub a:hover { background: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (cinematic) ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); }
@media (max-width: 767px) { .hero > .hero-img { object-position: var(--hero-pos-m, center); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 13, 20, 0.15) 0%, rgba(36, 13, 20, 0.35) 40%, rgba(36, 13, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(45, 18, 25, 0.85) 0%, rgba(45, 18, 25, 0.2) 70%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.hero-kicker { font: 400 13px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin-bottom: 28px; }
.hero h1 {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  font-size: clamp(56px, 10vw, 128px); line-height: 0.95; margin-bottom: 32px;
}
/* Jacob 2026-10-23: key message, white and a little larger (the title stays the largest). */
.hero-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--text); font-weight: 400; max-width: 32em; }

.feature-card {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start;
  background: var(--bg-card); border-left: 3px solid var(--maroon); padding: 18px; color: inherit; text-decoration: none;
  transition: background-color 0.15s ease;
}
.feature-card:hover { background: #45202A; color: inherit; }
.feature-card img { width: 120px; height: 120px; object-fit: cover; }
.feature-card .k { font: 400 12px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); margin-bottom: 8px; }
.feature-card h2 { font: 400 19px/1.3 var(--font-sans); margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; line-height: 1.5; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card .more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--maroon-lt); }

/* ---------- Strip ---------- */
/* Jacob 2026-10-24: looks like the top bar (same background, thin line, nav type and colour);
   words spread so the space from edge to word and between words is equal. */
.strip { background: var(--bg-deep); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
.strip ul { list-style: none; margin: 0; padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 10px 0; justify-content: space-evenly; }
.strip li { color: var(--label); font: 400 13px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 600px) { .strip ul { padding: 18px var(--gutter); justify-content: space-between; } .strip li { font-size: 11px; letter-spacing: 0.1em; } }
@media (max-width: 360px) { .strip li { font-size: 10px; letter-spacing: 0.05em; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-bottom: 56px; align-items: end; }
h2.big {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05;
}
.section-head p { font-size: 19px; color: var(--text-body); max-width: 36em; }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.about .statement { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  color: var(--text); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; }
.philosophy { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--sep); }
.philosophy img { width: 44px; height: 44px; flex: none; }
.philosophy p { font-style: italic; color: var(--text-body); font-size: 16px; }

/* Companies */
.companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.company {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px;
  padding: 36px; background: var(--bg-card); color: inherit; text-decoration: none; border-top: 3px solid var(--maroon);
  transition: background-color 0.15s ease;
}
.company:hover { background: #45202A; color: inherit; }
.company > * { position: relative; z-index: 1; }
.company.has-img { overflow: hidden; }
.company .company-bg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.company.has-img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(58,24,32,0.97) 0%, rgba(58,24,32,0.85) 50%, rgba(58,24,32,0.45) 100%); }
.contact { position: relative; overflow: hidden; }
.contact .contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,13,20,0.96) 0%, rgba(36,13,20,0.88) 55%, rgba(36,13,20,0.6) 100%); }
.contact .wrap { position: relative; z-index: 1; }
.company h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.company p { margin-top: 16px; font-size: 17px; }
.company .go { margin-top: 32px; color: var(--maroon-lt); font-size: 15px; }
.pending { color: var(--gold); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* What we do: cinematic photo panels */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.panel { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; color: inherit; text-decoration: none; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,13,20,0.2) 0%, rgba(36,13,20,0.7) 50%, rgba(36,13,20,0.97) 100%); }
.panel .inner { position: relative; z-index: 1; padding: 32px; }
.panel h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.panel p { color: #D9DEE1; font-size: 16px; max-width: 32em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.panel:hover { color: inherit; }
@media (prefers-reduced-motion: no-preference) { .panel:hover img { transform: scale(1.03); } }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.card figure { margin: 0; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .k { margin-top: 18px; font: 400 12px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.more-link { display: inline-block; margin-top: 48px; font-size: 16px; }

/* Work page groups */
.group + .group { margin-top: var(--section); }
.group-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-bottom: 40px; }
.group-head .paras p { font-size: 17px; }

/* Contact */
.contact { background: var(--bg-card); }
/* Quiet sign-off (Jacob 2026-10-23: "don't make it that big"). */
.contact .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.contact-h { font: 400 13px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
/* Jacob 2026-10-23: statement runs across the page; the logo note sits directly under it (no empty corner). */
.about-stack .statement { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  color: var(--text); font-weight: 400; font-size: clamp(19px, 2vw, 26px); line-height: 1.45; max-width: 40em; }
/* Jacob 2026-10-24: About us section holds the intro (moved out of the hero) and the experience statement. */
.about-stack h2.big { margin-bottom: 32px; }
/* Hero: "Established 2001" sits under the title (Jacob 2026-10-24). */
.hero-est { font: 400 13px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin-top: 4px; }
.hero h1 { margin-bottom: 16px; }
.leadership { padding-top: clamp(24px, 4vw, 48px); }
.leadership h2.big { margin-bottom: 40px; }
/* Same size and style as the statement below it; both a size smaller (Jacob 2026-10-24). */
.about-stack .about-lead { font-family: var(--font-display); letter-spacing: var(--display-track); color: var(--text); font-weight: 400; font-size: clamp(19px, 2vw, 26px); line-height: 1.45; max-width: 40em; margin-bottom: 0.8em; }
.about-stack .philosophy { margin-top: 48px; max-width: 46em; }
.philosophy:first-child, .about > .philosophy { margin-top: 0; padding-top: 0; border-top: 0; align-self: end; }
.contact .mail {
  display: inline-block; margin-top: 14px; font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--text); text-decoration-color: var(--maroon); text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact .mail:hover { color: var(--maroon-lt); }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 56svh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 56px; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,13,20,0.45), rgba(36,13,20,0.95)); }
.page-hero.plain { min-height: 44svh; background: linear-gradient(135deg, var(--maroon-brand) 0%, var(--bg) 70%); }
.page-hero.plain::after { background: none; }
.page-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(44px, 7vw, 96px); line-height: 1; }
.page-hero p { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); max-width: 36em; color: #D9DEE1; }

/* About Us page (Jacob 2026-10-24): statement, then people with name + bio only. */
.about-copy p { font-size: 19px; line-height: 1.65; max-width: 42em; color: var(--text-body); }
.about-copy p + p { margin-top: 1.1em; }
.people-h { margin-top: var(--section); margin-bottom: 40px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.people li { padding: 32px; background: var(--bg-card); border-top: 3px solid var(--maroon); }
.people h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin-bottom: 14px; }
.people p { font-size: 16px; line-height: 1.65; }

/* The Conchubar Group (home section) */
.group-grid { display: block; }
/* Jacob 2026-10-23: no photo here; the two companies sit side by side across the full width. */
.group-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.group-list li { padding: 36px 32px; border-top: 3px solid var(--maroon); background: var(--bg-card); }

.group-list h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.group-list p { margin-top: 10px; font-size: 17px; max-width: 34em; }
.group-fig { margin: 0; }
.group-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.75) brightness(0.85); }
/* Phone photos (bright, saturated) sit closer to the graded project photos. */
.card img, .panel img { filter: saturate(0.9); }

/* Footer */
.site-footer .footer-group h2 { color: var(--text); font-size: 13px; }
.site-footer .footer-group li { color: var(--text-body); }
.site-footer .footer-group strong { display: block; color: var(--text); font-weight: 400; font-size: 17px; }
.site-footer .footer-group .ft-tag { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.site-footer .footer-group li + li { margin-top: 16px; }
.draft-marker { color: var(--gold); font: 400 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-left: 12px; }
.site-footer { border-top: 1px solid var(--sep); padding: 56px 0 40px; color: var(--text-muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: max-content max-content 1fr; column-gap: clamp(56px, 9vw, 140px); row-gap: 32px; }
.site-footer h2 { font: 400 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text-body); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sep); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .section-head, .about, .group-head { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-group { grid-column: 1 / -1; }
  .group-grid { grid-template-columns: 1fr; gap: 32px; }
  .group-fig img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  /* Featured title: place name on its own line on phones (no orphaned "Blue"). */
  .feature-card .feat-loc { display: block; color: var(--label); font-size: 15px; margin-top: 2px; }
  .feature-card .feat-dot { display: none; }
  .panels { grid-template-columns: 1fr; }
  .panel { min-height: 360px; }
  .feature-card { grid-template-columns: 88px minmax(0, 1fr); }
  .feature-card img { width: 88px; height: 88px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .company { padding: 28px; min-height: 0; }
}
/* Jacob 2026-10-24: About Us holds two boxes, the leadership team and the group. */
.about-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 72px); align-items: stretch; }
.about-box { background: var(--bg-card); border-top: 3px solid var(--maroon); padding: clamp(24px, 3vw, 40px); }
.about-box-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin-bottom: 8px; }
.about-box ul { list-style: none; margin: 0; padding: 0; }
.about-box li { padding: 22px 0; border-top: 1px solid var(--sep); }
.about-box li:first-child { border-top: 0; }
.about-box li:last-child { padding-bottom: 0; }
.about-box h4 { font: 400 13px/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); margin: 0 0 8px; }
.about-box p { font-size: 16px; line-height: 1.6; color: var(--text-body); margin: 0; }
@media (max-width: 860px) { .about-boxes { grid-template-columns: 1fr; } }
/* Jacob 2026-10-24: with About Us moved down, What we do needs its own space under the strip,
   and About Us shares the section gap with Selected work instead of doubling it. */
.what-home { padding-top: var(--section); }
.section + #about { padding-top: 0; }
/* Jacob 2026-10-24: tighter spacing inside About Us. */
.about-stack .philosophy { margin-top: 32px; padding-top: 24px; }
.about-boxes { margin-top: 40px; }
/* Jacob 2026-10-24: What we do pictures sit inside the page width like the rest of the site, and are shorter. */
.what-home .panels { gap: 28px; }
.what-home .panel { min-height: 340px; }
@media (max-width: 860px) { .what-home .panel { min-height: 300px; } }
