/* ==========================================================================
   o6o International — design tokens + base styles
   Palette: deep ribbon-blue (sampled from the real logo) + burnt orange
   (fixed brand identity, not device-theme-adaptive). Display face Fraunces
   (warm, a little wilful), body/UI face Archivo (confident grotesk, not
   the default Inter).
   ========================================================================== */

/* Fraunces is used only for the pull-quote in .statement blockquote — every
   heading and UI element uses Archivo. The font stylesheet is linked directly
   in each page's <head> (next to the font preconnects) rather than @import-ed
   here, so the browser can fetch it in parallel with this file instead of
   discovering it only after style.css has downloaded. */

:root {
  /* color */
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-tint: #EAEDF1;
  --ink: #1C1C1C;
  --ink-soft: rgba(28, 28, 28, 0.68);
  --ink-faint: rgba(28, 28, 28, 0.45);
  --primary: #123A63;
  --primary-ink: #FFF9F4;
  --primary-soft: rgba(18, 58, 99, 0.08);
  --accent: #D9622B;
  --accent-soft: rgba(217, 98, 43, 0.12);
  --accent-ink: #FFF9F4;
  --line: rgba(18, 58, 99, 0.16);

  /* type */
  --font-display: 'Fraunces', Georgia, 'Iowan Old Style', serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* layout */
  --content-width: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }

a {
  color: var(--primary);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-body);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.visually-hidden:focus {
  left: 1rem;
  top: 1rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--tint { background: var(--surface-tint); }

.section--primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.section--primary .eyebrow { color: var(--accent); }

.section-head { max-width: 46ch; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section--primary .section-head p { color: rgba(255, 249, 244, 0.8); }

/* ---- scroll reveal ----
   Only hidden pre-animation when JS has actually run (html.js, set
   synchronously in <head>) so the page stays fully visible if JS fails. */

.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #C1541F; color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 98, 43, 0.28); }

.btn--ghost { background: transparent; color: var(--primary-ink); border-color: rgba(255, 249, 244, 0.4); }
.btn--ghost:hover { background: rgba(255, 249, 244, 0.1); color: var(--primary-ink); border-color: rgba(255, 249, 244, 0.7); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--outline:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* ---- logomark (real logo image, cropped from the client's brand file —
   see README.md "Image credits") ---- */

.mark {
  display: inline-block;
  height: 1.5em;
  width: auto;
  margin-right: 0.45em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.wordmark:hover .mark { transform: scale(1.06); }

/* ---- header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 1.1rem; }
  .nav .btn { align-self: flex-start; }
}

/* ---- hero ---- */

.hero { padding: 4.5rem 0 5rem; overflow: hidden; }

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; width: 140px; margin: 0 auto; }
}

.hero .pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  margin-bottom: 1.2rem;
}

.hero .lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 0.6rem; }

.hero-note { margin-top: 1.5rem; font-size: 0.86rem; color: var(--ink-faint); }

.hero-graphic {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(18, 58, 99, 0.22);
}

.hero-graphic img {
  width: 78%;
  height: auto;
  position: relative;
  filter: drop-shadow(0 12px 24px rgba(18, 58, 99, 0.18));
}

/* ---- photo bands ----
   Both photos are the client's own (see README.md "Image credits"),
   tinted with the brand blue so they read as "ours" rather than clashing
   with the palette. */

.band {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  color: var(--primary-ink);
}

.band--dublin {
  background-image:
    linear-gradient(155deg, rgba(18, 58, 99, 0.88) 0%, rgba(18, 58, 99, 0.4) 45%, rgba(18, 58, 99, 0.88) 100%),
    url('/images/dublinconferencecenter.jpg');
  background-position: center 65%;
}

.band--dublin .band-inner {
  margin-bottom: 2rem;
  padding: 1.5rem 1.7rem;
  background: rgba(10, 35, 60, 0.88);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}

.band--dublin .eyebrow {
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.band--dublin p {
  color: var(--primary-ink);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}

.band--sailing {
  background-image:
    linear-gradient(155deg, rgba(18, 58, 99, 0.82) 0%, rgba(18, 58, 99, 0.35) 45%, rgba(18, 58, 99, 0.82) 100%),
    url('/images/hughsailing.png');
  background-position: center 40%;
}

/* text sits over open sail/water instead of overlapping Hugh's face */
.band--sailing .band-inner {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 780px) {
  .band--sailing .band-inner { margin-left: 0; text-align: left; }
}

@media (max-width: 780px) {
  .band { min-height: 320px; }
  .band--dublin .band-inner {
    margin: 0 1rem 1.25rem;
    padding: 1.2rem 1.3rem;
  }
}

.band-inner {
  padding: 2.5rem 0;
  max-width: 46ch;
}

.band .eyebrow { color: var(--accent); }

.band p {
  font-size: 1.05rem;
  color: rgba(255, 249, 244, 0.92);
}

/* ---- statement (pull-quote) ---- */

.statement {
  padding: 5rem 0;
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement blockquote {
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  line-height: 1.25;
  color: var(--primary);
  text-wrap: balance;
}

.statement cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---- audience split ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

.split-panel {
  padding: 4rem 2.5rem;
}

.split-panel--dark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--primary);
  color: var(--primary-ink);
  text-align: right;
}
.split-panel--light { background: var(--bg); color: var(--ink); }

.split-panel .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.split-panel h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.split-panel p {
  max-width: 40ch;
  font-size: 1rem;
}
.split-panel--dark p { color: rgba(255, 249, 244, 0.82); }
.split-panel--light p { color: var(--ink-soft); }

/* ---- services (bento) ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 1.8rem;
  grid-column: span 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18, 58, 99, 0.12);
  border-color: var(--primary);
}

.service-card--wide { grid-column: span 4; }
.service-card--narrow { grid-column: span 2; }

@media (max-width: 900px) {
  .service-card, .service-card--wide, .service-card--narrow { grid-column: span 6; }
}

.service-card .icon { margin-bottom: 1.1rem; }
.service-card .icon svg { width: 34px; height: 34px; display: block; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---- engagement formats ---- */

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.engagement-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.8rem;
}

.engagement-type {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.engagement-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.engagement-card p { color: var(--ink-soft); font-size: 0.94rem; }
.engagement-card .engagement-output { margin-top: 1rem; color: var(--ink); }
.engagement-note { margin-top: 1.25rem; color: var(--ink-faint); font-size: 0.82rem; }

@media (max-width: 780px) {
  .engagements-grid { grid-template-columns: 1fr; }
}

/* ---- approach ----
   Dublin Docklands (CC BY-SA 2.0, William Murphy, via Wikimedia Commons)
   as a heavily tinted texture — mostly covered by the overlay, adds depth
   at a glance rather than legibility risk. See README.md for full credit. */

#approach {
  background-image:
    linear-gradient(rgba(18, 58, 99, 0.93), rgba(18, 58, 99, 0.93)),
    url('/images/dublin-docks.jpg');
  background-size: cover;
  background-position: center;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 780px) {
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.approach-item .num {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  font-variant-numeric: tabular-nums;
}

.approach-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--primary-ink); }
.approach-item p { color: rgba(255, 249, 244, 0.78); font-size: 0.96rem; max-width: 34ch; }

/* ---- about ---- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.photo-frame { position: relative; }

.photo-frame::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  bottom: -1rem;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
}

.photo-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center 30%;
}

/* fallback styling if used as an empty div (no photo yet) rather than an <img> */
div.photo-placeholder {
  background:
    repeating-linear-gradient(135deg, var(--surface-tint), var(--surface-tint) 10px, var(--surface) 10px, var(--surface) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem;
}

.about-body h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.about-body p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 60ch; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
}

.credentials li {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

/* ---- contact banner ---- */

.contact-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-banner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 18ch;
}

.contact-details { display: grid; gap: 0.4rem; font-size: 0.98rem; }
.contact-details a { color: var(--primary-ink); }
.contact-details .label {
  color: rgba(255, 249, 244, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- footer ---- */

.site-footer { background: var(--ink); color: rgba(247, 245, 239, 0.7); padding: 3rem 0 2rem; }

.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }

.footer-grid .wordmark { color: var(--primary-ink); }

.footer-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(247, 245, 239, 0.75); text-decoration: none; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4em; }
.footer-links a:hover { color: var(--accent); }

.footer-cookie-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247, 245, 239, 0.75);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}
.footer-cookie-button:hover { color: var(--accent); }

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}
.text-button:hover { color: var(--accent); }

/* ---- icon links (WhatsApp, etc.) ---- */
.icon-link { display: inline-flex; align-items: center; gap: 0.45em; }
.icon-link svg { flex-shrink: 0; width: 1.15em; height: 1.15em; }
.contact-details .icon-link,
.contact-info .icon-link { color: inherit; }

.footer-bottom {
  border-top: 1px solid rgba(247, 245, 239, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- simple page (contact / 404) ---- */

.simple-page { padding: 4.5rem 0 6rem; }
.simple-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.simple-page > .container > p.lede { color: var(--ink-soft); max-width: 55ch; margin-bottom: 2.5rem; font-size: 1.05rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info dl { margin: 0 0 2rem; }
.contact-info dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.2rem; }
.contact-info dd { margin: 0 0 1.2rem; font-size: 1.02rem; }

/* ---- form ----
   HubSpot's embed renders its own form in an iframe, so it can't be
   styled from this stylesheet — colors/fonts/spacing are set from
   HubSpot's own "Style and preview" tab on the form. This just gives the
   embed a placeholder size/frame so the page doesn't jump on load. */

.hs-form-frame {
  display: block;
  min-height: 420px;
  width: 100%;
}

.form-privacy { margin-top: 1rem; color: var(--ink-soft); font-size: 0.82rem; }

/* ---- privacy notice ---- */

.legal-copy { max-width: 72ch; }
.legal-copy h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.legal-copy p, .legal-copy ul { color: var(--ink-soft); margin: 0 0 1rem; }
.legal-copy li + li { margin-top: 0.45rem; }
.legal-updated { color: var(--ink-faint); font-size: 0.85rem; }

.cookie-table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.cookie-table th,
.cookie-table td { padding: 0.7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cookie-table th { background: var(--surface-tint); color: var(--ink); }

/* ---- cookie consent ---- */

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 249, 244, 0.2);
  border-radius: 8px;
  background: #102A44;
  color: var(--primary-ink);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
  gap: 2rem;
}
.cookie-banner__copy { max-width: 68ch; }
.cookie-banner h2 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.cookie-banner p { color: rgba(255, 249, 244, 0.82); font-size: 0.9rem; }
.cookie-banner a { color: var(--primary-ink); }
.cookie-banner__actions { display: flex; flex: 0 0 auto; gap: 0.7rem; }
.cookie-banner .btn--outline { border-color: rgba(255, 249, 244, 0.5); color: var(--primary-ink); }
.cookie-banner .btn--outline:hover { background: rgba(255, 249, 244, 0.1); border-color: var(--primary-ink); }

@media (max-width: 720px) {
  .cookie-banner { right: 0.6rem; bottom: 0.6rem; left: 0.6rem; padding: 1rem; }
  .cookie-banner__inner { display: block; }
  .cookie-banner__actions { margin-top: 1rem; flex-wrap: wrap; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cookie-table { display: block; overflow-x: auto; }
}

/* ---- profile and credentials ---- */

.profile-page .lede { max-width: 58ch; }

.profile-overview {
  min-height: 3rem;
  margin-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.profile-overview h2,
.credential-section > h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 1.25rem;
}

.credential-section { padding-top: 3.5rem; }

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.credential-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
}

.credential-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.credential-card p { color: var(--ink-soft); font-size: 0.94rem; }
.credential-card p + p { margin-top: 0.75rem; }

.credential-card--has-image {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.credential-card--has-image:hover,
.credential-card--has-image:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(18, 58, 99, 0.12);
  transform: translateY(-3px);
}

.credential-card--has-image:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.credential-view {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.credential-view::after { content: "  ↗"; color: var(--accent); }

.credential-external {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.credential-meta {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.profile-note { color: var(--ink-soft); max-width: 70ch; margin-bottom: 1.4rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.credential-modal {
  width: min(92vw, 1050px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.credential-modal::backdrop { background: rgba(12, 24, 38, 0.78); }

.credential-modal__panel { padding: 1rem; }
.credential-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.credential-modal__header h2 { font-size: 1rem; }
.credential-modal__close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}
.credential-modal__close:hover { border-color: var(--accent); color: var(--accent); }
.credential-modal img {
  width: 100%;
  max-height: calc(92vh - 5.5rem);
  object-fit: contain;
}

body:has(.credential-modal[open]) { overflow: hidden; }

@media (max-width: 720px) {
  .credential-grid, .credential-list { grid-template-columns: 1fr; }
  .credential-modal__panel { padding: 0.7rem; }
}

/* ---- 404 ---- */

.error-page { text-align: center; padding: 7rem 0; }
.error-page .eyebrow { display: block; margin-bottom: 1rem; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.error-page p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2rem; }
