/* ==========================================================================
   aminollahi.com — Ryan Aminollahi
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.65850a373e.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic-latin.96616af417.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --brand: #0a57e6;
  --brand-hover: #0847bd;
  --brand-bright: #0b5ff5;

  --ink: #0b1420;
  --ink-2: #1f2c3d;
  --body: #4a5768;
  --muted: #6b7889;
  --hairline: #e3e7ec;

  --bg: #ffffff;
  --bg-soft: #f1f3f5;
  --bg-panel: #f3f4f6;

  --dark: #03101e;
  --dark-2: #0a1e33;
  --on-dark: #ffffff;
  --on-dark-soft: #c3cdd9;
  --on-dark-faint: #8d9cae;

  --shell: 1160px;
  --gutter: 24px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 20, 32, 0.07);
  --shadow-lg: 0 18px 50px rgba(11, 20, 32, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.35rem + 3.4vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.45rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.014em; line-height: 1.32; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

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

/* --- Layout --------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 6.5vw, 92px); }
.section--soft { background: var(--bg-soft); }
.section--hair { border-top: 1px solid var(--hairline); }

.eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lede { font-size: 1.08rem; color: var(--body); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.section-head h2 { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-bright);
  color: #fff;
  box-shadow: 0 1px 2px rgba(7, 60, 160, 0.25);
}
.btn--primary:hover { background: var(--brand-hover); color: #fff; }

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { border-color: #c3ccd8; color: var(--ink); }

.btn .arw { transition: transform 0.2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Inline text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand);
}
.tlink .arw { transition: transform 0.2s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header[data-stuck='true'] {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 12px rgba(11, 20, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand { display: block; line-height: 1.15; flex: none; }
.brand-name {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
.brand-role {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  margin-top: 2px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav > .btn { display: none; }   /* mobile-only duplicate of .header-cta */
.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.895rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--brand); background: rgba(10, 87, 230, 0.06); }
.nav a[aria-current='page'] { color: var(--brand); font-weight: 600; }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), background-color 0.12s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open='true'] { display: flex; }
  .nav > .btn { display: inline-flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .btn { margin-top: 10px; justify-content: center; }
}

/* --- Hero ----------------------------------------------------------------- */

/* The photo leads: it gets the larger share of the hero and is never
   dimmed over the subject. Only a narrow seam blends into the copy panel. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: clamp(600px, 78vh, 880px);
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 6vw, 92px);
  /* Align the copy to the site grid, not to the column edge. */
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  padding-right: clamp(28px, 4vw, 64px);
}

.hero-media { position: relative; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Narrow blend at the left edge only, so the figure stays untouched. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(70px, 12%, 150px);
  background: linear-gradient(90deg, var(--dark) 0%, rgba(3, 16, 30, 0.55) 45%, rgba(3, 16, 30, 0) 100%);
}

.hero .eyebrow { color: var(--on-dark-faint); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-lede {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--on-dark-soft);
  max-width: 32em;
  margin-bottom: 30px;
}
.hero-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--on-dark-faint);
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(540px, 70vh, 720px); }
  .hero h1 { font-size: clamp(1.95rem, 1rem + 3vw, 2.8rem); }
  .hero-media img { object-position: 50% 28%; }
}

/* Mobile: the photo gets its own full-width band above the copy. */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media {
    order: -1;
    width: 100%;
    aspect-ratio: 4 / 4.1;
    max-height: 66vh;
  }
  .hero-media img { object-position: 50% 22%; }
  .hero-media::after {
    inset: auto 0 0 0;
    width: auto;
    height: 26%;
    background: linear-gradient(180deg, rgba(3, 16, 30, 0) 0%, var(--dark) 100%);
  }
  .hero-copy {
    padding-inline: var(--gutter);
    padding-block: 26px clamp(44px, 9vw, 62px);
  }
}

@media (max-width: 460px) {
  .hero-media { aspect-ratio: 4 / 4.5; }
  .hero-media img { object-position: 50% 20%; }
}

/* Compact hero for interior pages */
.page-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(52px, 6vw, 82px);
}
.page-hero .eyebrow { color: var(--on-dark-faint); }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p {
  color: var(--on-dark-soft);
  font-size: 1.06rem;
  max-width: 46em;
}

/* --- Approach / two column ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.qlist {
  list-style: none;
  margin: 0 0 1.3em;
  padding: 0;
}
.qlist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-2);
}
.qlist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 13px;
  height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
}

/* --- Quote panel ---------------------------------------------------------- */

.quote-panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 44px);
}
.quote-mark {
  color: var(--brand);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 10px;
}
.quote-panel blockquote {
  margin: 0;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.42rem, 1.1rem + 1.1vw, 1.82rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.quote-panel cite {
  display: block;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #dfe3e8;
}
@media (max-width: 520px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { text-align: center; }
.pillar svg { margin: 0 auto 10px; color: var(--ink-2); }
.pillar span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--body);
}

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cfd8e3;
  box-shadow: var(--shadow-md);
}

/* Official venture logos: different artwork, one optical height. */
.card-logo {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 18px;
}
.card-logo img {
  width: auto;
  height: 26px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
/* Wordmark-only marks read smaller at the same pixel height, so nudge them. */
.card-logo img[src*='abodefinder'] { height: 34px; }
.card-logo img[src*='verantrix']   { height: 30px; }
.card-logo img[src*='apreview']    { height: 30px; }

.card-kicker {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9rem;
  line-height: 1.58;
  margin-bottom: 18px;
}
.card .tlink { margin-top: auto; font-size: 0.88rem; }

/* --- Book + newsletter band ----------------------------------------------- */

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 980px) {
  .band { grid-template-columns: 1fr; text-align: left; }
  .band-cover { max-width: 250px; margin-inline: auto; order: -1; }
}

.band-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease);
}
.band-cover:hover img { transform: translateY(-5px) rotate(-0.6deg); }

.band h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); }
.band p { font-size: 0.975rem; }

/* --- Newsletter form ------------------------------------------------------ */

.sub-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.sub-form input[type='email'] {
  flex: 1 1 210px;
  min-width: 0;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.sub-form input[type='email']::placeholder { color: #97a3b3; }
.sub-form input[type='email']:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(11, 95, 245, 0.16);
}
.sub-form .btn { flex: none; }

.form-note {
  margin-top: 11px;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-msg {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-msg[data-state='ok'] {
  background: #e8f3ec;
  border: 1px solid #b9dcc7;
  color: #1c5733;
}
.form-msg[data-state='err'] {
  background: #fdeced;
  border: 1px solid #f3c2c6;
  color: #8f2029;
}
.form-msg[hidden] { display: none; }

/* --- Articles ------------------------------------------------------------- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post { display: flex; gap: 16px; align-items: flex-start; }
.post-thumb {
  flex: none;
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-thumb img,
.post-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.post h3 { margin-bottom: 6px; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand); }
.post p { font-size: 0.875rem; line-height: 1.55; margin-bottom: 8px; }
.post-meta { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 600px) { .post-thumb { width: 88px; } }

/* --- Contact form --------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(11, 95, 245, 0.16);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[aria-busy='true'] { opacity: 0.72; pointer-events: none; }

/* --- Prose ---------------------------------------------------------------- */

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.55em; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.08rem; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.fact {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 20px;
}
.fact b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.fact p { font-size: 0.885rem; line-height: 1.55; margin: 0; }

/* Numbered list (the five designs) */
.numbered { display: grid; gap: 2px; }
.numbered-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.numbered-item:last-child { border-bottom: 1px solid var(--hairline); }
.numbered-item .n {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.numbered-item h3 { margin-bottom: 5px; }
.numbered-item p { font-size: 0.93rem; margin: 0; }
@media (max-width: 560px) {
  .numbered-item { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--hairline);
  padding-block: 38px;
  font-size: 0.86rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px 32px;
  align-items: center;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
@media (max-width: 900px) { .footer-nav { justify-content: flex-start; } }
.footer-nav a { color: var(--body); font-weight: 500; }
.footer-nav a:hover { color: var(--brand); }

.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 900px) { .footer-end { align-items: flex-start; } }

.social { display: flex; gap: 6px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.social a:hover { color: var(--brand); background: rgba(10, 87, 230, 0.07); }

.footer-legal { color: var(--muted); font-size: 0.79rem; line-height: 1.5; text-align: right; }
@media (max-width: 900px) { .footer-legal { text-align: left; } }

/* --- Reveal on scroll ----------------------------------------------------- */

/* Content is hidden only to be animated in. If scripting is unavailable the
   page must still be readable, so the hidden state is scoped away. */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Touch targets & pointer affordance ---------------------------------- */

a[href], button, [role='button'], label, summary { cursor: pointer; }
button:disabled, .btn[aria-busy='true'] { cursor: not-allowed; }

@media (pointer: coarse) {
  .nav a,
  .footer-nav a,
  .tlink,
  .social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .social a { min-width: 44px; justify-content: center; }
  .btn { padding-block: 14px; min-height: 44px; }
}

/* Reserve image space to keep CLS near zero */
.post-thumb, .band-cover, .hero-media { contain: layout paint; }

/* Inline field errors */
.field-error {
  display: block;
  margin-top: 6px;
  color: #b4232e;
  font-size: 0.82rem;
  line-height: 1.45;
}
.field-error[hidden] { display: none; }
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #d9636c;
  background: #fffafa;
}
.field input[aria-invalid='true']:focus,
.field textarea[aria-invalid='true']:focus {
  border-color: #b4232e;
  box-shadow: 0 0 0 3px rgba(180, 35, 46, 0.14);
}

/* Focusable error summary (skill: Forms/Accessibility — High) */
.error-summary {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #fdeced;
  border: 1px solid #f3c2c6;
  border-left: 3px solid #b4232e;
  border-radius: 8px;
}
.error-summary[hidden] { display: none; }
.error-summary h2 {
  margin: 0 0 8px;
  color: #8f2029;
  font-size: 0.98rem;
}
.error-summary ul { margin: 0; padding-left: 1.15em; }
.error-summary li { margin-bottom: 3px; font-size: 0.88rem; }
.error-summary a { color: #8f2029; text-decoration: underline; }
.error-summary:focus-visible { outline-color: #b4232e; }
