/* ============================================================
   Tamlyn Beaumont-Thomas — BT Services
   Stylesheet
   ============================================================ */

:root {
  --navy: #1b2631;
  --navy-2: #141c24;
  --navy-3: #3f4e4f;
  --bone: #f0f4f8;
  --bone-2: #d9e4e0;
  --cream: #f7fafb;
  --gold: #a5c8d6;
  --gold-light: #c3dce6;
  --gold-dark: #6f9bb0;
  --ink: #232f39;
  --muted: #5b6b74;
  --line: #d9e4e0;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(40, 40, 40, 0.25);
  --shadow-sm: 0 8px 24px -12px rgba(40, 40, 40, 0.18);
  --maxw: 1180px;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a:focus-visible, button:focus-visible, .filter-btn:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(165,200,214,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--bone); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(165,200,214,0.6); background: var(--gold-light); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-ghost-light { background: transparent; border-color: rgba(240,244,248,0.5); color: var(--bone); }
.btn-ghost-light:hover { background: rgba(240,244,248,0.12); border-color: var(--bone); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,244,248,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-mark { width: 34px; height: 32px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand-tag { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 0.92rem; color: var(--navy); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }
.icon-link {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--bone); flex-shrink: 0; transition: transform .18s ease, background .18s ease;
}
.icon-link:hover { transform: translateY(-2px); background: var(--gold-dark); }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  background: radial-gradient(120% 140% at 85% -10%, rgba(165,200,214,0.16), transparent 60%), var(--bone);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { color: var(--gold-dark); font-style: normal; border-bottom: 3px solid var(--gold); }
.hero p.lead { font-size: 1.12rem; max-width: 520px; }
.hero .discipline-line { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .01em; margin: 0 0 14px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 36px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.hero-stat span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-visual {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  border-radius: 28px; padding: 34px; color: var(--bone); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(165,200,214,0.35), transparent 70%);
}
.hero-visual .hero-visual-label { font-family: var(--serif); font-weight: 600; color: var(--bone); font-size: 1.05rem; margin-bottom: 18px; }
.hero-card-list { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.hero-card-item {
  display: flex; align-items: center; gap: 12px; background: rgba(240,244,248,0.07);
  border: 1px solid rgba(240,244,248,0.14); border-radius: 12px; padding: 12px 14px;
}
.hero-card-item .ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.hero-card-item div b { display: block; font-size: 0.9rem; color: var(--bone); }
.hero-card-item div span { font-size: 0.76rem; color: rgba(240,244,248,0.65); }

/* ---------- Logo ticker ---------- */
.ticker-wrap {
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; overflow: hidden; white-space: nowrap;
}
.ticker-label { text-align:center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;}
.ticker-track { display: inline-flex; gap: 56px; animation: scroll-left 38s linear infinite; align-items: center; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track img { height: 30px; width: auto; opacity: 0.75; filter: grayscale(15%); }
.ticker-track span.word { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--navy-2); opacity: .8; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Publications banner ---------- */
.pubs-wrap { background: var(--bone-2); padding: 56px 0 60px; overflow: hidden; }
.pubs-track { display: inline-flex; gap: 28px; animation: scroll-left 62s linear infinite; align-items: flex-start; white-space: normal; }
.pubs-wrap:hover .pubs-track { animation-play-state: paused; }
.pub-book { position: relative; flex: 0 0 auto; width: 148px; }
.pub-cover {
  width: 148px; height: 210px; border-radius: 3px 6px 6px 3px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 14px;
  box-shadow: 0 10px 24px rgba(27,38,49,0.16), inset -3px 0 0 rgba(0,0,0,0.12);
}
.pub-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,0.14); }
.pub-cover.c1 { background: linear-gradient(155deg, var(--navy), var(--navy-3)); }
.pub-cover.c2 { background: linear-gradient(155deg, var(--gold-dark), var(--gold)); }
.pub-cover.c3 { background: linear-gradient(155deg, var(--navy-3), var(--gold-dark)); }
.pub-cover.c4 { background: linear-gradient(155deg, var(--gold), var(--navy-2)); }
.pub-cover-title { font-family: var(--serif); color: var(--bone); font-size: 0.98rem; line-height: 1.28; font-weight: 600; }
.pub-cover-imprint { margin-top: 14px; font-size: 0.6rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,244,248,0.7); }
.pub-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.pub-caption { margin-top: 10px; font-size: 0.74rem; color: var(--muted); text-align: center; line-height: 1.3; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p.desc { font-size: .93rem; margin-bottom: 16px; }
.service-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex-grow: 1; }
.service-list li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink); align-items: flex-start; }
.service-list li::before { content: "•"; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: var(--bone); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-light); }
.stat span { font-size: 0.82rem; color: rgba(240,244,248,0.72); }

/* ---------- Press band ---------- */
.press-band { background: var(--bone-2); text-align: center; }
.press-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.press-badge {
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem; letter-spacing: .02em;
  background: var(--white); border: 1px solid var(--line); padding: 12px 22px; border-radius: 100px; color: var(--navy);
}

/* ---------- About teaser ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo span { font-family: var(--serif); font-size: 4rem; color: var(--navy); font-weight: 700; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-copy .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { font-size: 1.3rem; color: var(--gold-dark); transition: transform .2s ease; flex-shrink:0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }
.faq-a p { margin: 0; font-size: 0.94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  border-radius: 28px; padding: 64px 48px; text-align: center; color: var(--bone);
  margin: 0 24px; max-width: calc(var(--maxw) - 48px); margin-left: auto; margin-right: auto;
}
.cta-banner h2 { color: var(--bone); }
.cta-banner p { color: rgba(240,244,248,0.78); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(240,244,248,0.75); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-mark { width: 34px; height: 34px; flex-shrink: 0; }
.footer-brand .brand-name { color: var(--bone); }
.footer-brand p { color: rgba(240,244,248,0.6); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--bone); font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--sans); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(240,244,248,0.72); }
.footer-col a:hover { color: var(--gold-light); }
.footer-col a.linkedin-inline { display: inline-flex; align-items: center; gap: 8px; }
.footer-col a.linkedin-inline svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(240,244,248,0.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(240,244,248,0.55); }

/* ---------- Portfolio page ---------- */
.page-hero { padding: 64px 0 40px; background: var(--bone); text-align: center; }
.page-hero .eyebrow { }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 30px 0 10px; }
.filter-btn {
  padding: 10px 22px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 600; font-size: 0.86rem; cursor: pointer; color: var(--navy); transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--navy); color: var(--bone); border-color: var(--navy); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-tile {
  aspect-ratio: 16/10; position: relative; display: flex; flex-direction: column;
  background: var(--bone-2); overflow: hidden;
}
.tile-chrome {
  height: 32px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--line);
}
.tile-chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(74,74,74,0.32); }
.tile-chrome .url-pill {
  margin-left: 8px; flex: 1; min-width: 0; background: var(--white); border-radius: 100px; padding: 4px 12px;
  font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--sans);
}
.tile-media { flex: 1; position: relative; overflow: hidden; }
.tile-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.tile-placeholder svg { width: 34px; height: 34px; stroke: var(--gold); opacity: 0.55; }
.tile-placeholder .ph-label {
  font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.work-tile .cat-chip {
  position: absolute; top: 10px; right: 10px; font-size: 0.62rem; text-transform: uppercase; letter-spacing: .07em;
  background: var(--navy); color: var(--bone); padding: 5px 11px; border-radius: 100px; font-weight: 700;
}
/* subtle per-category accent on the chrome bar */
.work-card[data-category*="email"] .tile-chrome { background: #dbe7ec; }
.work-card[data-category*="web"] .tile-chrome { background: #dfe6e8; }
.work-card[data-category="other"] .tile-chrome { background: #dde6e1; }
.work-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.work-body h3 { font-size: 1.05rem; margin: 0; }
.work-body .tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); font-weight: 700; }
.work-body p { font-size: 0.88rem; margin: 0; flex-grow: 1; }
.work-body a.visit { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-top: 6px; }
.work-body a.visit:hover { color: var(--gold-dark); }

/* ---------- Timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bone); box-shadow: 0 0 0 2px var(--gold); }
.tl-date { font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.tl-item h3 { font-size: 1.15rem; margin-bottom: 2px; }
.tl-item .tl-role { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; display: block; }
.tl-item ul { display: flex; flex-direction: column; gap: 6px; }
.tl-item li { font-size: 0.92rem; color: var(--ink); padding-left: 18px; position: relative; }
.tl-item li::before { content: "•"; position: absolute; left: 0; color: var(--gold-dark); }

/* ---------- Qualifications ---------- */
.quals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.qual-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px; }
.qual-card h4 { font-size: 1rem; margin-bottom: 12px; color: var(--navy); font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.qual-card ul { display: flex; flex-direction: column; gap: 8px; }
.qual-card li { font-size: 0.9rem; color: var(--ink); padding-left: 16px; position: relative; }
.qual-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

/* ---------- Skills tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { background: var(--white); border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--navy-2); }

/* ---------- CV request CTA panel ---------- */
.cv-cta-panel { max-width: 640px; margin: 0 auto; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 56px 40px; }
.cv-cta-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(165,200,214,0.12); }
.cv-cta-icon svg { width: 26px; height: 26px; stroke: var(--gold-dark); }
.cv-cta-panel h3 { font-size: 1.4rem; margin-bottom: 14px; }
.cv-cta-panel p { color: var(--muted); margin-bottom: 26px; }
@media (max-width: 640px) {
  .cv-cta-panel { padding: 40px 22px; }
}

/* ---------- Contact page ---------- */
.contact-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 44px; box-shadow: var(--shadow-sm); }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700; color: var(--navy); background: var(--bone-2); padding: 18px 30px; border-radius: 100px; margin: 22px 0; word-break: break-all;
}
.contact-email:hover { background: var(--gold-light); }
.contact-meta { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.contact-meta div { text-align: center; }
.contact-meta b { display: block; font-family: var(--serif); color: var(--navy); }
.contact-meta span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-secondary { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-secondary p { margin-bottom: 14px; font-size: 0.92rem; }

/* ---------- Contact form ---------- */
.contact-form { text-align: left; margin: 8px 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: .02em;
}
.form-group .word-count { font-weight: 500; color: var(--muted); font-size: 0.74rem; text-transform: none; letter-spacing: 0; }
.form-group .word-count.limit { color: #b5473f; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(165,200,214,0.25);
}
.form-group textarea { resize: vertical; min-height: 130px; font-family: var(--sans); line-height: 1.5; }
.form-group input:invalid:not(:placeholder-shown), .form-group textarea:invalid:not(:placeholder-shown) { border-color: #c98a84; }
/* Honeypot: visually hidden from real visitors, but present in the DOM for bots that ignore CSS */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; margin: 14px 0 0; font-size: 0.88rem; font-weight: 600; }
.form-status.success { color: #2f7d5c; }
.form-status.error { color: #b5473f; }
.form-status.sending { color: var(--muted); font-weight: 500; }
#cf-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Utility / reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(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;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quals-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line);
    z-index: 99; box-shadow: var(--shadow-sm);
  }
  .nav.open .nav-links li { width: 100%; }
  .nav.open .nav-links a { display: block; padding: 8px 0; }
  .services-grid, .stats-grid, .work-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 24px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; width: 100%; }
  .about-copy .btn, .about-copy .icon-link { width: 100%; justify-content: center; }
  .work-grid { gap: 20px; }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { padding: 14px 18px; }
  .hero-stats { gap: 22px; }
  .hero-visual { padding: 24px; }
  .cta-banner, .contact-card { padding: 34px 20px; }
  .contact-email { padding: 14px 18px; font-size: 1.05rem; flex-wrap: wrap; justify-content: center; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
  .work-body { padding: 18px; }
  .footer-grid { gap: 30px; }
  .pub-book, .pub-cover { width: 118px; }
  .pub-cover { height: 168px; }
}
