
:root {
  /* Brand */
  --navy:       #183C54;
  --navy-deep:  #0F2637;
  --navy-soft:  #1F4A66;
  --tan:        #D1A373;
  --tan-soft:   #E2C4A2;
  --gold:       #BF9946;
 
  /* Neutrals — cooled toward the navy */
  --paper:      #FCFCFC;
  --mist:       #EDF1F4;
  --ink:        #12222D;
  --slate:      #55636E;
  --slate-dim:  #8A97A1;
 
  --rule:        rgba(24, 60, 84, .12);
  --rule-light:  rgba(252, 252, 252, .16);
 
  /* Type */
  --display: "Bricolage Grotesque", "Times New Roman", Georgia, serif;
  --body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
 
  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(46px, 5.4vw, 82px);
  --header-h: 84px;
  --header-h-sm: 66px;
 
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
 
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.33, .1, .2, 1);
}
 
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
 
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.018em;
  text-wrap: balance;              /* evens out ragged headline endings */
}
p {
  margin: 0 0 1.05em;
  text-wrap: pretty;               /* prevents single-word last lines */
  hyphens: manual;
}
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
 
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 3px; }
 
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.skip-link:focus {
  left: var(--gutter);
  top: 12px;
  padding: 10px 18px;
  background: var(--tan);
  color: var(--navy);
  border-radius: 999px;
  font-size: 14px;
}
::selection { background: var(--tan); color: var(--navy); }
 
/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }
 
.section { padding-block: var(--section-y); }
.section--half { padding-block: calc(var(--section-y) * .5); }
.section--tight-top { padding-top: calc(var(--section-y) * .45); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--navy-deep); color: var(--paper); }
 
/* ---------- Type scale ---------- */
.h-xl { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.05; }
.h-lg { font-size: clamp(29px, 3.8vw, 48px); }
.h-md { font-size: clamp(24px, 2.7vw, 34px); }
.h-sm { font-size: clamp(19px, 1.9vw, 24px); }
 
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 16px;
  font-weight: 400;
}
.section--mist .eyebrow, .cta .eyebrow { color: var(--navy-soft); }
 
.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.66;
  max-width: 58ch;
}
.muted { color: var(--slate); }
.section--navy .muted,
.section--deep .muted { color: rgba(252, 252, 252, .76); }
.prose { max-width: 60ch; }
 
/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .012em;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.btn > span, .btn__arrow { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tan);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 38, 55, .16); color: var(--navy); }
.btn:hover::before { transform: translateY(0); }
.btn__arrow { width: 14px; height: 10px; flex: 0 0 auto; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
 
.btn--tan { --btn-bg: var(--tan); --btn-fg: var(--navy); }
.btn--tan::before { background: var(--navy); }
.btn--tan:hover { color: var(--paper); }
 
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover { color: var(--navy); }
 
.tlink {
  display: inline-block;
  font-size: 14.5px;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--tan), var(--tan));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease);
}
.tlink:hover { background-size: 100% 1px; }
 
/* ==========================================================================
   Braid ornament — the recurring motif from the brand mark
   ========================================================================== */
.ornament {
  width: min(460px, 74%);
  aspect-ratio: 1120 / 78;
  margin-inline: auto;
  background: url("../img/braid-tan.webp") center / contain no-repeat;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.05s var(--ease-soft);
}
.ornament.is-visible { clip-path: inset(0 0 0 0); }
.ornament--left { margin-inline: 0; width: min(300px, 62%); }
.ornament--full { width: 100%; }
.ornament--dim { background-image: url("../img/braid-light.webp"); }
 
.divider { padding-block: clamp(18px, 2.4vw, 38px); }
 
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid,
.site-header.is-open {
  height: var(--header-h-sm);
  background: rgba(15, 38, 55, .93);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.logo { flex: 0 0 auto; }
.logo img { width: 116px; transition: width .4s var(--ease); }
.site-header.is-solid .logo img { width: 100px; }
 
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: .03em;
  white-space: nowrap;
  color: rgba(252, 252, 252, .78);
  padding-block: 7px;
  transition: color .3s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 1px;
  width: 0; height: 1px;
  background: var(--tan);
  transition: width .4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--tan); }
.nav a[aria-current="page"]::after { width: 100%; }
 
.header-cta { padding: 10px 20px; font-size: 13.5px; }
 
.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 10px 2px;
}
 
.nav-mobile {
  position: fixed;
  inset: var(--header-h-sm) 0 auto 0;
  max-height: calc(100svh - var(--header-h-sm));
  overflow-y: auto;
  background: var(--navy-deep);
  border-top: 1px solid var(--rule-light);
  padding: 6px var(--gutter) 30px;
  display: none;
  flex-direction: column;
}
.nav-mobile.is-open { display: flex; }
/* Entrance animation applies to every item, including the button… */
.nav-mobile a {
  opacity: 0;
  transform: translateY(10px);
  animation: navIn .42s var(--ease) forwards;
}
/* …but the menu-row styling must not leak onto .btn, or it would zero out the
   button's horizontal padding and inherit the 24px display size. */
.nav-mobile a:not(.btn) {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-light);
}
.nav-mobile.is-open a:nth-child(1) { animation-delay: .04s; }
.nav-mobile.is-open a:nth-child(2) { animation-delay: .08s; }
.nav-mobile.is-open a:nth-child(3) { animation-delay: .12s; }
.nav-mobile.is-open a:nth-child(4) { animation-delay: .16s; }
.nav-mobile.is-open a:nth-child(5) { animation-delay: .20s; }
.nav-mobile.is-open a:nth-child(6) { animation-delay: .24s; }
.nav-mobile .btn { margin-top: 22px; align-self: flex-start; animation-delay: .28s; }
@keyframes navIn { to { opacity: 1; transform: none; } }
 
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}
 
/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(720px, 84svh);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 44px) clamp(52px, 6vw, 84px);
  color: var(--paper);
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease-soft) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 30%, rgba(24,60,84,.55) 0%, rgba(15,38,55,.9) 70%),
    linear-gradient(180deg, rgba(15,38,55,.6) 0%, rgba(15,38,55,.88) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 12ch; margin-bottom: 22px; }
.hero__sub {
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 400;
  margin: 0 0 20px;
}
.hero__text { color: rgba(252, 252, 252, .84); }
.hero .ornament { margin-top: clamp(30px, 4vw, 52px); }
 
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(252, 252, 252, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll i {
  width: 1px; height: 32px;
  background: linear-gradient(var(--tan), transparent);
  animation: scrollPulse 2.4s var(--ease-soft) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(.65); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}
@media (max-width: 820px) { .hero__scroll { display: none; } }
 
/* Interior page hero */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  padding-block: calc(var(--header-h) + clamp(42px, 5.5vw, 78px)) clamp(48px, 6vw, 82px);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -55%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(209,163,115,.16) 0%, transparent 68%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; margin-bottom: 18px; }
.page-hero .lede { color: rgba(252, 252, 252, .82); }
 
/* ==========================================================================
   Editorial two-column
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--mid { align-items: center; }
@media (max-width: 920px) {
  .split, .split--even { grid-template-columns: 1fr; gap: clamp(24px, 4.5vw, 36px); }
}
 
.sticky-head { position: sticky; top: calc(var(--header-h-sm) + 28px); }
@media (max-width: 920px) { .sticky-head { position: static; } }
 
.stack-heading { max-width: 22ch; margin-bottom: 18px; }
 
/* ---------- Media ---------- */
.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-deep);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall   { aspect-ratio: 4 / 5; }
.media--wide   { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--band   { aspect-ratio: 21 / 8; }
 
/* ==========================================================================
   Feature pair (home)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}
.feature-grid .media { aspect-ratio: auto; min-height: clamp(240px, 34vw, 420px); }
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .media { min-height: 0; aspect-ratio: 16 / 10; }
}
 
/* ---------- Pull quote ---------- */
.quote p {
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.42;
  letter-spacing: -.014em;
  margin-bottom: 20px;
}
.quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tan);
}
 
/* ==========================================================================
   Numbered rows
   ========================================================================== */
.numbered { display: grid; }
.numbered__item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 36px);
  padding-block: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.section--navy .numbered__item,
.section--deep .numbered__item { border-color: var(--rule-light); }
.numbered__item:last-child { border-bottom: 1px solid var(--rule); }
.section--navy .numbered__item:last-child,
.section--deep .numbered__item:last-child { border-color: var(--rule-light); }
.numbered__num {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--tan);
  padding-top: .23em;
}
.numbered__body h3 { margin-bottom: 8px; }
.numbered__body p { max-width: 62ch; }
@media (max-width: 620px) {
  .numbered__item { grid-template-columns: 1fr; gap: 6px; }
  .numbered__num { padding-top: 0; }
}
 
/* ==========================================================================
   Cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 1.9vw, 26px);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--rule);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 38, 55, .13), 0 0 0 1px var(--rule);
}
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-deep); }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .85s var(--ease-soft);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(18px, 1.9vw, 26px); }
.card__num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--tan);
  margin-bottom: 10px;
}
.card__body h3 { font-size: clamp(18px, 1.6vw, 21px); margin-bottom: 8px; }
.card__body p { color: var(--slate); font-size: 15px; line-height: 1.62; }
 
/* ==========================================================================
   Services tabs
   ========================================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 3.2vw, 44px);
}
.tab {
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14.5px;
  color: var(--slate);
  transition: color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--tan); }
.tab[aria-selected="true"] {
  background: var(--navy);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--navy);
}
 
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
 
.service-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 13px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  transition: padding-left .4s var(--ease), color .4s var(--ease);
}
.service-list li:first-child { border-top: 1px solid var(--rule); }
.service-list li:hover { padding-left: 8px; color: var(--navy); }
.service-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tan);
  transform: translateY(-3px);
}
 
/* ==========================================================================
   Team collage
   ========================================================================== */
.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
}
.collage .media { aspect-ratio: 4 / 5; }
.collage .media:nth-child(2) { margin-top: clamp(14px, 3vw, 40px); }
.collage .media:nth-child(3) { margin-top: clamp(6px, 1.4vw, 18px); }
@media (max-width: 780px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .collage .media:nth-child(2) { margin-top: 0; }
  .collage .media:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 9; margin-top: 0; }
}
 
/* Credential line — replaces the old scrolling marquee */
.credential {
  max-width: 42ch;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.42;
  letter-spacing: -.012em;
}
 
/* ==========================================================================
   Contact band
   ========================================================================== */
.contact-band .split { align-items: center; }
.contact-band .media { aspect-ratio: 4 / 5; }
.contact-band h2 { margin-bottom: 14px; }
.contact-band p { max-width: 42ch; margin-bottom: 24px; }
 
/* ---------- Form ---------- */
.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tan);
}
.field input, .field textarea {
  font: inherit;
  width: 100%;
  color: var(--paper);
  background: rgba(252, 252, 252, .05);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(252, 252, 252, .38); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: rgba(252, 252, 252, .09);
  box-shadow: inset 0 0 0 1px var(--tan);
}
.field textarea { min-height: 130px; resize: vertical; }
 
.info-list { display: grid; gap: 22px; }
.info-list dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 5px;
}
.info-list dd { margin: 0; font-size: 16.5px; line-height: 1.6; }
 
/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: var(--mist); color: var(--navy); padding-block: clamp(40px, 4.6vw, 66px); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 42ch; color: var(--slate); }
 
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(42px, 4.8vw, 66px) 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
  gap: clamp(24px, 3vw, 46px);
  padding-bottom: clamp(32px, 4vw, 52px);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
 
.footer-brand img { width: 104px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; line-height: 1.62; max-width: 34ch; }
.footer-brand .footer-email { color: var(--tan); display: inline-block; padding-block: 6px; }
 
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 14px;
}
.footer-col li { margin-bottom: 4px; }
.footer-col li a { display: inline-block; padding-block: 5px; }
/* :not(.social) keeps these text-link rules off the icon button — otherwise the
   hover colour would win over .social:hover and paint tan on tan. */
.footer-col a:not(.social),
.footer-col address,
.footer-col p { font-size: 14.5px; line-height: 1.6; color: rgba(252, 252, 252, .76); }
.footer-col a:not(.social) { transition: color .3s var(--ease); }
.footer-col a:not(.social):hover { color: var(--tan); }
.footer-col address { font-style: normal; }
.footer-col address + h4 { margin-top: 20px; }
 
.social-row { display: flex; gap: 8px; margin-top: 4px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-light);
  color: var(--paper);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.social:hover { background: var(--tan); color: var(--navy); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }
 
/* Footer rule: braid spans the full footer width, matching the brand sheet */
.footer-mark { text-align: center; }
.footer-mark .ornament { width: 100%; }
 
.footer-bottom {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: rgba(252, 252, 252, .6);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--tan); }
 
/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease-soft), transform .75s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
 
/* Hero entrance */
.hero-in { opacity: 0; transform: translateY(22px); animation: heroIn .9s var(--ease-soft) forwards; }
.hero__sub.hero-in  { animation-delay: .12s; }
.hero h1.hero-in    { animation-delay: .24s; }
.hero__text.hero-in { animation-delay: .38s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
 
/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 720px) {
  .footer-col li { margin-bottom: 0; }
  .footer-col li a,
  .footer-brand .footer-email { padding-block: 9px; }
}
 
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lede { font-size: 16.5px; }
  .stack-heading { max-width: none; }
  .hero h1 { max-width: none; }
  .page-hero h1 { max-width: none; }
  .credential { max-width: none; }
  .cta__inner { align-items: flex-start; }
  .cta .btn, .contact-band .btn { width: 100%; justify-content: center; }
  .tabs { gap: 6px; }
  .tab { padding: 10px 16px; font-size: 13.5px; }
}
 
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-in { opacity: 1; transform: none; }
  .ornament { clip-path: none; }
  .hero__bg { transform: none; }
}