/* ============================================================
   Fierce Minds — AI agency site (shared stylesheet)
   Layout and motion follow the Ritovex template; colours, type
   and components follow the GadgetAR style guide: monochrome,
   Mona Sans, pill buttons, 20px cards with a soft shadow.
   ============================================================ */

/* ---- Fonts (Mona Sans via Google Fonts) ---- */
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* color — GadgetAR primary + neutral scale */
  --ink:        #080808;   /* Primary 100 / Neutral 800 */
  --ink-soft:   #121212;   /* Neutral 700 */
  --gray:       #454545;   /* Neutral 600 */
  --gray-light: #454545;   /* Neutral 600 — #A1A1A1 is too faint for text on white */
  --muted:      #a1a1a1;   /* Neutral 500 */
  --line-strong:#dbdbdb;   /* Neutral 400 */
  --line:       #efefef;   /* Neutral 300 */
  --surface:    #fafafa;   /* Neutral 200 */
  --white:      #ffffff;   /* Neutral 100 */
  /* "accent" is the emphasis colour: ink on light surfaces, white on dark ones */
  --accent:     var(--ink);
  --accent-dk:  var(--ink-soft);
  --on-accent:  var(--white);   /* text/icons placed on an --accent fill */
  /* brand orange: text only on dark surfaces (7.8:1 on ink); on light surfaces
     only as small non-text markers, since it is 2.6:1 on white */
  --brand:      #ff7a52;
  --brand-dk:   #f0602f;
  --on-dark:   #a1a1a1;   /* body text on dark surfaces */

  --shadow-card:  0 1px 1px rgba(14, 14, 14, .06), 0 4px 4px rgba(211, 211, 211, .06);
  --shadow-lift:  0 1px 1px rgba(14, 14, 14, .06), 0 20px 40px -24px rgba(8, 8, 8, .22);

  /* type */
  --font: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --fw-light: 400;
  --fw-regular: 400;   /* Default */
  --fw-medium: 600;    /* Mid */
  --fw-bold: 600;      /* headings */
  --fw-black: 700;     /* Strong */
  --tracking: -0.42px;

  --t-display: clamp(4.5rem, 14vw, 7.5rem);   /* footer wordmark */
  --t-xl:      clamp(2.6rem, 6vw, 3.75rem);   /* Display 9 · 60px */
  --t-h1:      clamp(2.25rem, 5vw, 3rem);     /* Display 8 · 48px */
  --t-h2:      clamp(1.875rem, 4vw, 2.25rem); /* Display 7 · 36px */
  --t-h3:      clamp(1.5rem, 3vw, 1.875rem);  /* Display 6 · 30px */
  --t-h4:      1.5rem;                         /* Display 5 · 24px */
  --t-h5:      1.25rem;                        /* Display 4 · 20px */
  --t-h6:      1.125rem;                       /* Display 3 · 18px */
  --t-lg:      1.125rem;                       /* Paragraph Large */
  --t-md:      1rem;                           /* Paragraph Default */
  --t-sm:      0.875rem;                       /* Paragraph Small */

  /* spacing / shape */
  --gap:        110px;
  --gap-md:     80px;
  --gap-sm:     60px;
  --maxw:       1240px;
  --radius:     20px;    /* cards */
  --radius-sm:  16px;    /* text areas, small panels */
  --radius-lg:  24px;
  --radius-pill: 300px;  /* buttons, inputs, badges */
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

/* Dark surfaces flip the emphasis colour to white */
.section--dark, .site-footer, .cta { --accent: var(--brand); --accent-dk: var(--brand-dk); --on-accent: var(--ink); }
::selection { background: var(--brand); color: var(--ink); }

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking);
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; letter-spacing: inherit; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: var(--fw-bold);
  line-height: 1.125;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
h5 { font-size: var(--t-h5); }
h6 { font-size: var(--t-h6); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--gap); }
.section--sm { padding-block: var(--gap-sm); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--white); }
.section--surface { background: var(--surface); }

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.measure { max-width: 620px; }
.measure.text-center { margin-inline: auto; }

/* ---- Eyebrow label (Ritovex section subtitle: grey chip, 4px corners, 22px tall) ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-sm); font-weight: var(--fw-medium); line-height: 1;
  color: var(--ink); text-transform: capitalize;
  padding: 4px 6px; border-radius: 4px;
  background: #f6f6f9;   /* Ritovex light grey, kept exact for this label */
}
.section--dark .eyebrow { color: var(--white); background: rgba(246, 246, 246, .1); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; font-size: var(--t-md); }

/* ---- Buttons (GadgetAR primary / secondary pills) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-size: var(--t-md); font-weight: var(--fw-medium); line-height: 1.25;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 16px; height: 16px; }
/* primary */
.btn--dark   { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gray); }
/* secondary: outlined with an inset 1px ring */
.btn--accent, .btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.btn--accent:hover, .btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn--light  { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--line); }
.cta .btn--light, .plan--featured .btn--light { background: var(--brand); color: var(--ink); }
.cta .btn--light:hover, .plan--featured .btn--light:hover { background: var(--brand-dk); }
.section--dark .btn--dark { background: var(--white); color: var(--ink); }
.section--dark .btn--dark:hover { background: var(--line); }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 85px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 25px;
  margin-inline: auto;
}
.nav__links a {
  font-size: var(--t-lg); font-weight: var(--fw-medium); color: var(--ink);
  position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__meta { display: flex; align-items: center; gap: 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: transparent; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: var(--surface); }
.nav__toggle:active { transform: scale(.94); }
.nav__cta { display: none; }   /* phones: the header CTA moves into the open menu */
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: 72px 0; }
.hero__inner { text-align: center; max-width: 860px; margin-inline: auto; }
.hero__inner .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: var(--t-xl); font-weight: var(--fw-black); }
.hero p { margin: 22px auto 30px; font-size: var(--t-lg); max-width: 620px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Home: Ritovex split hero — text left, stepped image right */
.hero--split { padding-block: 75px 110px; }
.hero__row { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 631px); justify-content: space-between; gap: 48px; align-items: center; }
.hero--split .eyebrow { margin-bottom: 14px; padding: 3px 11px; border-radius: 0; font-size: var(--t-md); line-height: 24px; } /* Ritovex banner subtitle */
.hero--split p { margin: 20px 0 45px; max-width: 525px; }
.hero--split .hero__actions { justify-content: flex-start; }
/* Stepped shape traced from the Ritovex banner (631×590): left half flush at the top,
   right half dropped 48px, 20px outer corners and 20px inward fillets at the step */
.hero__media {
  aspect-ratio: 631 / 590; border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 631 590' preserveAspectRatio='none'%3E%3Cpath d='M20 0H295A20 20 0 0 1 315 20V28A20 20 0 0 0 335 48H611A20 20 0 0 1 631 68V570A20 20 0 0 1 611 590H335A20 20 0 0 1 315 570V566A20 20 0 0 0 295 546H20A20 20 0 0 1 0 526V20A20 20 0 0 1 20 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 631 590' preserveAspectRatio='none'%3E%3Cpath d='M20 0H295A20 20 0 0 1 315 20V28A20 20 0 0 0 335 48H611A20 20 0 0 1 631 68V570A20 20 0 0 1 611 590H335A20 20 0 0 1 315 570V566A20 20 0 0 0 295 546H20A20 20 0 0 1 0 526V20A20 20 0 0 1 20 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__media > .ph { border-radius: 0; }
/* Inline artwork in the GOAT style (home hero, Who we are) */
.goat-art { display: block; width: 100%; height: 100%; }

/* Media placeholder — swap for real imagery */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 0% 0%, #454545 0%, #121212 55%),
    var(--ink);
  border-radius: inherit; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #ffffff40; font-size: var(--t-sm); font-weight: var(--fw-medium);
  letter-spacing: .04em; text-transform: uppercase;
}
.ph--light { background: linear-gradient(135deg, #efefef, #fafafa); }
.ph--light::after { color: #08080833; }
.ph--accent { background: linear-gradient(135deg, #a1a1a1, #454545); }
.ph--accent::after { color: #ffffff80; }

/* ============================================================
   Logo marquee
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: var(--t-h5); font-weight: var(--fw-bold); color: var(--muted); white-space: nowrap; }

/* Partner strip (Ritovex company section): hairline with a centred pill label, then dark names
   separated by dots, no edge fade. Spacing uses margins (not gap) so the -50% loop is seamless. */
.partners__head { display: flex; align-items: center; }
.partners__head::before, .partners__head::after { content: ""; flex: 1; height: 1px; background: rgba(8, 8, 8, .2); }
.partners__label { flex: 0 1 auto; padding: 5px 20px; border-radius: var(--radius-pill); background: #f6f6f9;
  font-size: var(--t-sm); font-weight: 500; line-height: 27px; color: var(--ink); text-align: center; }   /* Ritovex: 14px medium */
.partners .marquee { padding-block: 60px; -webkit-mask-image: none; mask-image: none; }
.partners .marquee__track { gap: 0; align-items: center; }
.partners .marquee__item { display: inline-flex; align-items: center; margin-right: 48px; color: var(--ink); }
.partners .marquee__item::before { content: ""; width: 5px; height: 5px; margin-right: 48px; border-radius: 50%; background: var(--gray); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Tag marquee (dark) */
.tagline-marquee { border-block: 1px solid #ffffff18; padding-block: 26px; }
.tagline-marquee .marquee__track { gap: 40px; animation-duration: 26s; }
.tag-pill { display: inline-flex; align-items: center; gap: 14px; font-size: var(--t-h4); font-weight: var(--fw-medium); color: var(--white); white-space: nowrap; }
.tag-pill svg { width: 20px; height: 20px; color: var(--accent); }

/* ============================================================
   About / who-we-are + stats
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about-grid .eyebrow { margin-bottom: 16px; }
.about-grid h2 { margin-bottom: 14px; }
.about-grid p { font-size: var(--t-md); margin-bottom: 26px; }
/* Home "Who we are": image stretches to the text column's height; stepped shape drawn in JS ([data-step-shape]) */
.about-grid--match { align-items: stretch; }
.about-grid--match .img-reveal { border-radius: var(--radius); min-height: 360px; }
.about-grid--match .img-reveal[style*="clip-path"] { border-radius: 0; }
.about-grid--match .img-reveal > .ph { position: absolute; inset: 0; height: auto; aspect-ratio: auto; border-radius: 0; }
.about-grid--match .img-reveal > .goat-art { position: absolute; inset: 0; }
/* About "Team at work" board: SVG letterboxes (meet), so the frame paints the Bone ground + dot grid */
.img-reveal--board { background: radial-gradient(circle, rgba(14, 14, 13, .08) 1px, transparent 1.5px) 0 0 / 24px 24px, #EDEAE0; }

.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 28px 0; }
.value h4 { font-size: var(--t-h6); margin-bottom: 8px; }
.value p { font-size: var(--t-sm); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-card);
}
.stat__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.stat__icon--goat { background: #0E0E0D; }   /* GOAT Ink tile; glyph colours are set in the SVG */
.stat__num { font-size: var(--t-h2); font-weight: var(--fw-black); color: var(--ink); }
.stat p { font-size: var(--t-sm); margin-top: 6px; }

/* ============================================================
   Services accordion
   ============================================================ */
.accordion { border-top: 1px solid #ffffff1f; }
.acc-item { border-bottom: 1px solid #ffffff1f; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 24px;
  padding: 30px 0; text-align: left;
}
.acc-num { font-size: var(--t-md); color: var(--accent); font-weight: var(--fw-medium); width: 34px; flex: none; }
.acc-title { font-size: var(--t-h3); font-weight: var(--fw-bold); color: var(--white); flex: 1; transition: color .25s; }
.acc-item:hover .acc-title { color: var(--accent); }
.acc-item:hover .acc-icon { border-color: var(--accent); }
.acc-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff33; display: grid; place-items: center; color: var(--white); flex: none; transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.acc-item[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-item[aria-expanded="true"] .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--on-dark); font-size: var(--t-md); padding-bottom: 30px; padding-left: 58px; max-width: 760px; }

/* Light accordion variant (services page) */
.accordion--light { border-top-color: var(--line); }
.accordion--light .acc-item { border-bottom-color: var(--line); }
.accordion--light .acc-title { color: var(--ink); }
.accordion--light .acc-icon { border-color: var(--line); color: var(--ink); }
.accordion--light .acc-panel p { color: var(--gray); }
.acc-panel p:not(:last-child) { padding-bottom: 14px; }   /* multi-paragraph panels */

/* ============================================================
   Portfolio / cards grid
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }   /* Services: four cards as 2×2 */
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card__media { aspect-ratio: 16 / 11; }
.card__media .ph { border-radius: 0; }
.card__body { padding: 24px; }
.card__meta { display: flex; gap: 10px; align-items: center; font-size: var(--t-sm); color: var(--gray-light); margin-bottom: 12px; }
.card__meta .badge { background: var(--ink); color: var(--white); padding: 4px 12px; border-radius: var(--radius-pill); font-weight: var(--fw-medium); }
.card__body h4 { font-size: var(--t-h6); margin-bottom: 8px; }
.card__body p { font-size: var(--t-sm); }

/* ============================================================
   Process
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-card {
  padding: 34px 28px; border-radius: var(--radius); background: #ffffff0a;
  border: 1px solid #ffffff14;
}
.process-card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 24px; }
.process-card__num { font-size: var(--t-sm); color: var(--accent); font-weight: var(--fw-medium); margin-bottom: 8px; }
.process-card h4 { color: var(--white); font-size: var(--t-h6); margin-bottom: 10px; }
.process-card p { font-size: var(--t-sm); color: var(--on-dark); }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px;
}
.testi__stars { display: flex; gap: 3px; color: var(--accent); }
.testi__stars svg { width: 18px; height: 18px; }
.testi p { font-size: var(--t-md); color: var(--gray); flex: 1; }
.testi__person { display: flex; align-items: center; gap: 12px; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.testi__person strong { display: block; color: var(--ink); font-size: var(--t-md); }
.testi__person small { color: var(--gray-light); font-size: var(--t-sm); }

/* ============================================================
   Team
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { border-radius: var(--radius); overflow: hidden; }
.team-card__media { aspect-ratio: 3 / 4; }
.team-grid--compact .team-card__media { aspect-ratio: 1 / 1; }   /* About: shorter portraits */
/* Without the role line the name sits in the card's rounded bottom corner; the portrait keeps its own clip */
.team-grid--compact .team-card { overflow: visible; }
.team-card__body { padding-top: 18px; }
.team-card h4 { font-size: var(--t-h6); }
.team-card small { color: var(--gray-light); font-size: var(--t-sm); }

/* ============================================================
   Awards
   ============================================================ */
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.awards .ph { aspect-ratio: 1/1; border-radius: var(--radius); }
/* About milestones: artwork matches the list's height; SVG letterboxes (meet) on the Ink frame */
.awards--match { align-items: stretch; }
.awards--match .img-reveal { min-height: 280px; }
/* Ink ground only once the cover panels start to part (same .5s delay), so no dark hairline shows around them before */
.awards--match .img-reveal.in { background: #0E0E0D; transition: background-color 0s .5s; }
.awards--match .img-reveal > .goat-art { position: absolute; inset: 0; }
.section--surface .img-reveal__overlay span { background: var(--surface); }
.award-row { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.award-row:first-child { border-top: 1px solid var(--line); }
.award-row .num { color: var(--gray-light); font-size: var(--t-sm); }
.award-row h4 { font-size: var(--t-h6); }
.award-row .org { font-size: var(--t-sm); color: var(--gray-light); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.faq-aside { background: var(--surface); border-radius: var(--radius); padding: 34px; }
.faq-aside h3 { font-size: var(--t-h4); margin-bottom: 14px; }
.faq-aside p { font-size: var(--t-sm); margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.faq-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-weight: var(--fw-medium); color: var(--ink); font-size: var(--t-md); }
.faq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--ink); transition: transform .3s var(--ease); }
.faq-icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq-icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item[aria-expanded="true"] .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 24px 22px; font-size: var(--t-sm); }

/* ============================================================
   CTA "Let's Start Talk"
   ============================================================ */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink);
  background-image: repeating-linear-gradient(0deg, #ffffff0d 0 1px, transparent 1px 9px);
  text-align: center; padding: 72px 24px;
}
.cta small { color: var(--line-strong); font-size: var(--t-md); }
.cta h2 { font-size: var(--t-xl); font-weight: var(--fw-black); color: var(--white); margin: 14px 0 30px; }

/* ============================================================
   Newsletter strip + footer
   ============================================================ */
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-block: 56px; border-bottom: 1px solid #ffffff1a; }
.newsletter h3 { color: var(--white); font-size: var(--t-h5); max-width: 460px; }
.newsletter__form { display: flex; gap: 12px; background: #ffffff0f; border: 1px solid #ffffff26; border-radius: var(--radius-pill); padding: 6px 6px 6px 20px; min-width: 380px; }
.newsletter__form input { flex: 1; background: none; border: none; color: var(--white); outline: none; }
.newsletter__form input::placeholder { color: #ffffff66; }

.site-footer { background: var(--ink); color: var(--muted); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-block: 64px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { font-size: var(--t-sm); max-width: 300px; }
.footer-col h5 { color: var(--white); font-size: var(--t-md); margin-bottom: 18px; }
.footer-col a { display: block; font-size: var(--t-sm); padding: 5px 0; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; border-top: 1px solid #ffffff1a; font-size: var(--t-sm); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff26; display: grid; place-items: center; color: var(--white); transition: background-color .2s, border-color .2s, color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-wordmark { font-size: var(--t-display); font-weight: var(--fw-black); letter-spacing: -0.04em; line-height: .8; color: transparent; -webkit-text-stroke: 1px #ffffff2e; text-align: center; padding-bottom: 20px; user-select: none; }

/* ============================================================
   Forms (contact)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; }
.info-item h4 { font-size: var(--t-h6); margin-bottom: 4px; }
.info-item p { font-size: var(--t-sm); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--t-sm); font-weight: var(--fw-medium); color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 130px; padding: 16px 12px; border-radius: var(--radius-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: var(--t-sm); margin-top: 14px; }
.form-note.ok { color: var(--ink); }

/* ============================================================
   Home: About + Services motion (mirrors the Ritovex reference)
   ============================================================ */
/* About image: two panels split away (left up, right down) while the image settles from 1.1 to 1 */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-reveal > .ph, .img-reveal > .goat-art { transform: scale(1.1); transition: transform 1s cubic-bezier(.25, 1, .5, 1) .5s; }
.img-reveal__overlay { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; }
.img-reveal__overlay span { width: 50%; height: 100%; background: var(--white); transition: transform 1s cubic-bezier(.25, 1, .5, 1) .5s; }
.img-reveal.in > .ph, .img-reveal.in > .goat-art { transform: scale(1); }
.img-reveal.in .img-reveal__overlay span:first-child { transform: translateY(-100%); }
.img-reveal.in .img-reveal__overlay span:last-child { transform: translateY(100%); }
/* Artwork stays hidden until the panels start to part (same .5s delay), so no dark hairline shows at their edges or seam */
.img-reveal > .goat-art { opacity: 0; transition: transform 1s cubic-bezier(.25, 1, .5, 1) .5s, opacity 0s .5s; }
.img-reveal.in > .goat-art { opacity: 1; }

/* About stats: 2-up cards that converge on scroll (transform set in JS) + rolling digits */
.about-grid .stats { grid-template-columns: 1fr 1fr; }
.stats[data-converge] .stat { will-change: transform; }
.odo { display: inline-flex; align-items: flex-start; line-height: 1.1; font-variant-numeric: tabular-nums; }
.odo__col { display: inline-block; height: 1.1em; overflow: hidden; }
.odo__strip { display: block; height: 1.1em; transition: transform 2.5s cubic-bezier(.784, .325, .222, .98); }
.odo__strip > span { display: block; height: 1.1em; line-height: 1.1em; }

/* Section entrance: Webflow "slide in bottom" */
.reveal.reveal--up { transform: translateY(100px); transition: opacity 1s cubic-bezier(.25, 1, .5, 1) .3s, transform 1s cubic-bezier(.25, 1, .5, 1) .3s; }

/* Services: hover row -> number/title go accent, arrow pill fills, text expands, tilted image pops in */
.accordion--hover .acc-item { position: relative; }
.accordion--hover .acc-num { color: rgba(255, 255, 255, .6); transition: color .5s ease; }
.accordion--hover .acc-title { transition: color .5s ease; }
.accordion--hover .acc-item:hover .acc-title { color: var(--white); }
.accordion--hover .acc-icon { width: 60px; height: 48px; border-radius: 100px; border-color: var(--gray); transition: border-color .5s ease, background-color .5s ease; }
.accordion--hover .acc-icon svg { width: 18px; height: 18px; }
.accordion--hover .acc-panel { transition: grid-template-rows .5s ease; }
.accordion--hover .acc-panel p { max-width: min(760px, calc(100% - 533px)); }
.accordion--hover .acc-item[aria-expanded="true"] .acc-num { color: var(--accent); }
.accordion--hover .acc-item[aria-expanded="true"] .acc-title { color: var(--accent-dk); }
.accordion--hover .acc-item[aria-expanded="true"] .acc-icon { transform: none; background: var(--accent-dk); border-color: var(--accent-dk); color: var(--on-accent); }
.acc-media {
  position: absolute; top: -36px; right: 200px; z-index: 3;
  width: 309px; height: 309px; border-radius: var(--radius); overflow: hidden; pointer-events: none;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: scale(.8) rotate(-11.92deg);
}
.acc-item[aria-expanded="true"] .acc-media {
  opacity: 1; visibility: visible; transform: scale(1) rotate(11.92deg);
  transition: opacity .5s ease, transform .5s ease;
}
@media (max-width: 960px) { .acc-media { display: none; } .accordion--hover .acc-panel p { max-width: none; } }

/* ============================================================
   Reveal-on-scroll + reduced motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .goat-art .motion { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  :root { --gap: 72px; --gap-md: 56px; --gap-sm: 44px; }
  .nav__links { display: none; position: absolute; top: 85px; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 6px; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: block; }
  .nav__links { margin-inline: 0; }
  .nav__meta { margin-left: auto; }   /* the menu list is out of flow here, so push CTA + toggle right */
  .about-grid, .awards, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__row { grid-template-columns: 1fr; gap: 48px; }
  .about-grid--match .img-reveal { aspect-ratio: 584 / 516; min-height: 0; }
  .about-grid--match .img-reveal--board { aspect-ratio: 568 / 460; }
  .awards--match .img-reveal { aspect-ratio: 572 / 336; min-height: 0; }
  .hero--split { padding-block: 56px 72px; }
  .hero__media { width: 100%; max-width: 631px; }
  .cards, .process-grid, .testi-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__form { min-width: 0; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .process-grid, .testi-grid, .team-grid, .stats, .value-list, .footer-cols { grid-template-columns: 1fr; }
  .nav__meta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__cta { display: block; padding-top: 14px; }
  .nav__links { padding-bottom: 26px; }
  .nav__links .nav__cta a.btn { display: flex; justify-content: center; padding: 14px 26px; border-bottom: 0; color: var(--white); font-size: var(--t-md); }
  .hero { padding-top: 48px; }
  .goat-art .lbl-sm { display: none; }   /* too small to read at phone width */
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   Nav dropdowns (Ritovex "Company" list + "Pages" mega menu)
   ============================================================ */
.nav__dd { position: relative; }
.nav__dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding-block: 4px;
  font-size: var(--t-lg); font-weight: var(--fw-medium); color: var(--ink);
}
.nav__dd-toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__dd-toggle.is-current { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.nav__dd-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; z-index: 120;
  min-width: 220px; padding: 12px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
.nav__dd.open .nav__dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dd.open .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__links .nav__dd-panel a {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-size: var(--t-md); font-weight: var(--fw-regular); color: var(--gray);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__links .nav__dd-panel a::after { display: none; }
.nav__links .nav__dd-panel a:hover, .nav__links .nav__dd-panel a:focus-visible { background: var(--surface); color: var(--ink); }
.nav__links .nav__dd-panel a[aria-current="page"] { color: var(--ink); font-weight: var(--fw-medium); }
.nav__dd-panel--mega { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px 16px; padding: 20px; }
.nav__dd-panel h6 { font-size: var(--t-sm); color: var(--muted); padding: 0 12px 8px; font-weight: var(--fw-medium); }

/* ============================================================
   Inner banner (listing + detail pages)
   ============================================================ */
.page-banner { padding-block: 100px 60px; }
.page-banner h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: var(--fw-black); line-height: 1.115; } /* Display 10 */
.page-banner p { margin-top: 22px; font-size: var(--t-lg); max-width: 820px; }
.page-banner .eyebrow { margin-bottom: 20px; }
.page-banner .hero__actions { justify-content: flex-start; margin-top: 30px; }
.page-banner--center { text-align: center; }
.page-banner--center p { margin-inline: auto; }
.page-banner--center .hero__actions { justify-content: center; }

.media-wide { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }

/* ============================================================
   Pricing
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  padding: 36px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plan--featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); --accent: var(--brand); --accent-dk: var(--brand-dk); --on-accent: var(--ink); }
.plan--featured .feature-list li:not(.no) svg { color: var(--brand); }
.plan--featured h3, .plan--featured h4, .plan--featured .plan__price { color: var(--white); }
.plan .badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: var(--fw-medium); border: 1px solid var(--line); }
.plan--featured .badge { border-color: transparent; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 14px; color: var(--ink); font-size: var(--t-xl); font-weight: var(--fw-black); line-height: 1; }
.plan__price small { font-size: var(--t-md); font-weight: var(--fw-medium); }
.plan h3 { font-size: var(--t-h5); line-height: 1.3; margin-bottom: 26px; }
.plan .btn { width: 100%; justify-content: center; }
.plan h4 { font-size: var(--t-h4); margin: 34px 0 18px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); }
.feature-list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.feature-list .no { opacity: .45; }

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.compare__row { display: grid; grid-template-columns: 2fr repeat(3, 1fr); }
.compare__row > * { padding: 18px 24px; border-left: 1px solid var(--line); display: flex; align-items: center; }
.compare__row > :first-child { border-left: 0; }
.compare__row > :not(:first-child) { justify-content: center; text-align: center; }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__row:nth-child(even):not(.compare__head) { background: var(--surface); }
.compare__head { background: var(--line); }
.compare__head > * { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-block: 28px; }
.compare__head > :not(:first-child) { align-items: center; }
.compare__head h3 { font-size: var(--t-h3); }
.compare__head h5 { font-size: var(--t-h6); margin-bottom: 18px; }
.compare__head strong { color: var(--ink); font-size: var(--t-h2); font-weight: var(--fw-black); }
.compare__head small { font-size: var(--t-sm); margin-top: 6px; }
.compare svg { width: 22px; height: 22px; color: var(--ink); }
.compare .dash { color: var(--muted); }

/* ============================================================
   Projects — sticky horizontal strip (Ritovex portfolio)
   ============================================================ */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 85px; overflow: hidden; padding-block: 40px; }
.hscroll__track { display: flex; gap: 24px; width: max-content; padding-inline: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); will-change: transform; }
.work { width: min(900px, 80vw); flex: none; }
.work__thumb { position: relative; display: block; aspect-ratio: 900 / 579; border-radius: var(--radius); overflow: hidden; }
.work__thumb .ph { transition: transform .6s var(--ease); }
.work__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 8, .45), transparent 50%); pointer-events: none; }
.work__view {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--ink); font-size: var(--t-sm); font-weight: var(--fw-medium);
  opacity: 0; transform: scale(.4); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.work__thumb:hover .work__view, .work__thumb:focus-visible .work__view { opacity: 1; transform: scale(1); }
.work__thumb:hover .ph { transform: scale(1.04); }
/* Flat GOAT artwork instead of photos: no darkening overlay, same hover zoom */
.work__thumb .goat-art { transition: transform .6s var(--ease); }
.work__thumb:hover .goat-art { transform: scale(1.04); }
.work__thumb:has(.goat-art)::after { display: none; }
.work__thumb .goat-art .cap { display: none; }   /* the slide's own category pill takes that corner */
.work__meta {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: var(--fw-medium);
}
.work__meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.work h3 { font-size: var(--t-h4); margin: 22px 0 8px; }
.work h3 a { transition: opacity .2s var(--ease); }
.work h3 a:hover { opacity: .7; }
.work p { font-size: var(--t-md); }

/* ============================================================
   Detail pages: meta row, rich text, author, member
   ============================================================ */
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.meta-row small { display: block; font-size: var(--t-sm); color: var(--gray); margin-bottom: 4px; }
.meta-row strong { color: var(--ink); font-size: var(--t-md); font-weight: var(--fw-medium); }
.gh-link { display: inline-flex; align-items: center; gap: 8px; transition: opacity .2s var(--ease); }
.gh-link:hover { opacity: .7; }
.btn-row-inline { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn svg[viewBox="0 0 16 16"] { width: 18px; height: 18px; }

.rich { max-width: 900px; }
.rich > * + * { margin-top: 18px; }
.rich h2 { font-size: var(--t-h2); margin-top: 48px; }
.rich h3 { font-size: var(--t-h3); margin-top: 44px; }
.rich h5 { font-size: var(--t-h5); margin-top: 32px; }
.rich h6 { font-size: var(--t-h6); margin-top: 26px; }
.rich > :first-child { margin-top: 0; }
.rich p, .rich li { font-size: var(--t-lg); line-height: 1.7; }
.rich ul { list-style: disc; padding-left: 22px; }
.rich li::marker { color: var(--brand); }
.rich li + li { margin-top: 8px; }
.rich figure { margin-block: 40px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.rich blockquote { margin-block: 36px; padding: 28px 32px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.rich blockquote p { font-size: var(--t-h5); color: var(--ink); font-weight: var(--fw-medium); line-height: 1.5; }

.post-share { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-weight: var(--fw-medium); }
.post-share a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color .2s var(--ease); }
.post-share a:hover, .post-share a:focus-visible { background: var(--line); }
.post-author { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px 48px; }
.post-author__who { display: flex; align-items: center; gap: 14px; }
.post-author__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.post-author__avatar img { width: 34px; }
.post-author small { display: block; font-size: var(--t-sm); }
.post-author strong { color: var(--ink); font-size: var(--t-lg); font-weight: var(--fw-medium); }
.post-author__facts { display: flex; gap: 24px; font-size: var(--t-sm); }

.member { display: grid; grid-template-columns: 410px 1fr; gap: 56px; align-items: start; }
.member__media { aspect-ratio: 410 / 500; border-radius: var(--radius); overflow: hidden; }
.member h2 { font-size: var(--t-h2); }
.member__role { display: block; margin: 8px 0 20px; color: var(--ink); font-weight: var(--fw-medium); }
.member .info-item:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.member__social { display: flex; gap: 10px; margin-top: 24px; }
.member__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease); }
.member__social a:hover, .member__social a:focus-visible { background: var(--ink); color: var(--white); }
.member-about { margin-top: 64px; }
.member-about h3 { font-size: var(--t-h3); margin-bottom: 16px; }

/* Team list cards: socials slide up on hover */
.team-card__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.team-card__social { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.team-card:hover .team-card__social, .team-card:focus-within .team-card__social { opacity: 1; transform: none; }
.team-card__social a { width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease); }
.team-card__social a:hover { transform: translateY(-2px); }
/* Linked card titles (blog, projects, team, services) */
h4 a { transition: opacity .2s var(--ease); }
h4 a:hover, h4 a:focus-visible { opacity: .7; }

/* ============================================================
   Auth + password-protected
   ============================================================ */
.auth { display: grid; grid-template-columns: 440px 1fr; gap: 56px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.auth__media { aspect-ratio: 440 / 560; border-radius: var(--radius); overflow: hidden; }
/* 401: artwork takes the form's height (SVG letterboxes on the Ink frame) */
.auth--match { align-items: stretch; }
.auth--match .auth__media { aspect-ratio: auto; position: relative; background: #0E0E0D; }
.auth--match .auth__media > .goat-art { position: absolute; inset: 0; }
.auth__form { max-width: 420px; width: 100%; margin-inline: auto; text-align: center; }
.auth__form h1 { font-size: var(--t-h1); }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 12px 0 30px; font-size: var(--t-sm); }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.auth .field { text-align: left; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--gray); pointer-events: none; }
.input-icon input { padding-left: 48px; }
.auth .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth__alt { margin-top: 22px; font-size: var(--t-md); color: var(--ink); }
.auth__alt a { display: inline-block; margin-top: 4px; font-size: var(--t-sm); color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.auth__alt a:hover { color: var(--ink); }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; font-size: var(--t-sm); text-align: left; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

.notfound { text-align: center; padding-block: 120px; }
.notfound__code { font-size: clamp(7rem, 26vw, 15rem); font-weight: var(--fw-black); line-height: .9; color: var(--ink); letter-spacing: -0.04em; }
.notfound__code span { color: var(--brand); }
.notfound h1 { margin-top: 28px; font-size: var(--t-h1); }
.notfound p { margin: 14px auto 30px; font-size: var(--t-lg); max-width: 520px; }

/* ---- New-page responsive ---- */
@media (max-width: 960px) {
  .nav__dd { width: 100%; }
  .nav__dd-toggle { width: 100%; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__dd-panel, .nav__dd-panel--mega { position: static; display: none; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px 12px; grid-template-columns: 1fr; }
  .nav__dd.open .nav__dd-panel { display: block; transform: none; }
  .nav__links .nav__dd-panel a { border-bottom: 0; padding: 8px 0; }
  .nav__dd-panel h6 { padding: 8px 0 4px; }
  .nav__links { max-height: calc(100vh - 85px); overflow-y: auto; align-items: stretch; }
  .nav__links > li > a { display: block; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .compare { overflow-x: auto; }
  .compare__row { min-width: 640px; }
  .meta-row { grid-template-columns: 1fr 1fr; }
  .member, .auth { grid-template-columns: 1fr; gap: 32px; }
  .member__media { max-width: 410px; }
  .auth__media { display: none; }
  .hscroll__sticky { position: static; overflow-x: auto; scroll-snap-type: x mandatory; }
  .work { scroll-snap-align: start; }
  .work__view { opacity: 1; transform: scale(.8); }
}
@media (max-width: 600px) {
  .page-banner { padding-block: 64px 40px; }
  .post-author__facts { flex-direction: column; gap: 4px; }
  .auth { padding: 20px; }
}
