/* ================================
   Lianor 麟诺 — China landing page
   Academic boutique / high-achievement visual system
================================ */

:root {
  --ink: #081a2c;
  --ink-2: #102b46;
  --accent: #742b3e;
  --accent-hover: #602234;
  --accent-soft: #b86679;
  --accent-pale: #e4bdc6;
  --accent-tint: #f3e4e8;
  --muted: #606874;
  --line: rgba(8, 26, 44, 0.16);
  --line-strong: rgba(8, 26, 44, 0.30);

  --paper: #f7f4ed;
  --paper-deep: #e9e2d8;
  --cream: #fbf8f1;
  --white: #fffefb;

  --font-serif: Georgia, "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", sans-serif;

  --page: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  --header-h: 76px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --section-space: clamp(54px, 6vw, 78px);

  --shadow: 0 20px 55px rgba(8, 26, 44, 0.10);
  --shadow-soft: 0 8px 24px rgba(8, 26, 44, 0.07);
}

@view-transition {
  navigation: auto;
}

/* ================================
   Reset and base
================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-h);
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(116, 43, 62, 0.09), transparent 30rem),
    radial-gradient(circle at 2% 44%, rgba(116, 43, 62, 0.055), transparent 27rem),
    linear-gradient(180deg, #f8f6f1 0%, #f1ede6 100%);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.20;
  background-image:
    linear-gradient(rgba(8, 26, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 44, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

p {
  margin-top: 0;
}

/* ================================
   Typography
================================ */

h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2,
h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.22rem, 1.55vw, 1.48rem);
  line-height: 1.22;
}

.eyebrow,
.card-label,
.micro-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(0.78rem, 0.84vw, 0.9rem);
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.45;
}

.lead {
  max-width: 820px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.25vw, 1.2rem);
  line-height: 1.72;
}

.prose,
.credential-list,
.founder-summary,
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.08vw, 1.1rem);
  line-height: 1.68;
}

/* ================================
   Masthead
================================ */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  color: var(--paper);
  border-bottom: 1px solid rgba(184, 102, 121, 0.28);
  background: rgba(8, 26, 44, 0.985);
  box-shadow: 0 7px 24px rgba(8, 26, 44, 0.15);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.masthead.is-scrolled {
  background: rgba(6, 21, 36, 0.995);
  box-shadow: 0 10px 30px rgba(8, 26, 44, 0.20);
}

.masthead-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: var(--paper);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}

.brand-name {
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
  gap: 0.34em;
  font-size: 1.82rem;
  font-weight: 600;
}

.brand-latin {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.brand-cn {
  font-family: var(--font-sans);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 0.91rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.primary-nav a {
  position: relative;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--accent-soft);
  transition: right 220ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-self: end;
}

.header-email {
  min-width: max-content;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--white);
  background: var(--accent);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-email:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 16px;
  height: 1px;
  display: block;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}

/* ================================
   Shared layout
================================ */

main {
  display: block;
  overflow-x: clip;
}

.page-width,
.section,
.footer-inner {
  width: var(--page);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(22px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 4vw, 52px);
}

.section-heading.single-heading {
  grid-template-columns: 1fr;
}

.section-heading.single-heading > div {
  max-width: 900px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(34px, 5vw, 64px);
}

.split > :first-child {
  max-width: 600px;
}

.prose {
  max-width: 700px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose p + p {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ================================
   Hero
================================ */

.gateway-hero {
  position: relative;
  padding-top: clamp(62px, 6.6vw, 88px);
  padding-bottom: clamp(58px, 6.3vw, 84px);
  display: grid;
  align-content: center;
}

.gateway-heading {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.gateway-mark {
  position: absolute;
  right: -8vw;
  top: 4vh;
  width: min(52vw, 700px);
  z-index: -1;
  opacity: 0.028;
  pointer-events: none;
}

.hero-actions {
  margin-top: clamp(22px, 2.5vw, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "↗";
  font-size: 0.95em;
}

.button.primary {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ================================
   Service cards
================================ */

.service-card,
.step,
.quote,
.founder-photo-frame,
.founder-tag,
.info-panel {
  position: relative;
  overflow: hidden;
}

.service-card,
.step,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.service-card {
  min-height: 214px;
  padding: clamp(22px, 2.3vw, 30px);
  background: rgba(251, 248, 241, 0.95);
  box-shadow: var(--shadow-soft);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.01vw, 1.05rem);
  line-height: 1.66;
}

.service-card.featured {
  color: var(--paper);
  background: linear-gradient(145deg, var(--accent), #5a1d2f);
  border-color: rgba(184, 102, 121, 0.42);
}

.service-card.featured::before {
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%);
}

.service-card.featured p {
  color: rgba(247, 244, 237, 0.76);
}

/* ================================
   Results / proof section
================================ */

.section.dark {
  width: 100%;
  padding-inline: max(calc((100% - 1180px) / 2), clamp(16px, 5vw, 72px));
  color: var(--paper);
  border-top: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(184, 102, 121, 0.22), transparent 28rem),
    var(--ink);
}

.section.dark .eyebrow {
  color: var(--accent-pale);
}

.section.dark h2 {
  color: var(--white);
}

.step {
  min-height: 176px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 48px;
  height: 2px;
  background: var(--accent-soft);
}

.step h3 {
  margin-bottom: 14px;
  color: var(--white);
}

.step p {
  margin-bottom: 0;
  color: rgba(247, 244, 237, 0.72);
  font-size: clamp(0.96rem, 1vw, 1.04rem);
  line-height: 1.58;
}

#results .step {
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#results .step h3 {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 3.6vw, 3.55rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

#results .step:last-child h3 {
  max-width: 8ch;
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* ================================
   Credentials
================================ */

.credentials {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}

.quote {
  padding: clamp(28px, 3.2vw, 40px);
  border: 1px solid rgba(184, 102, 121, 0.34);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 95% 0%, rgba(184, 102, 121, 0.32), transparent 20rem),
    var(--ink);
}

.quote p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.credential-list {
  max-width: 720px;
}

.credential-list p {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.credential-list p:first-child {
  padding-top: 0;
  border-top: 0;
}

.credential-list p:last-child {
  padding-bottom: 0;
}

.credential-list strong {
  color: var(--ink);
  font-weight: 750;
}

/* ================================
   Founder profile
================================ */

.founder-section {
  display: grid;
  grid-template-columns: minmax(390px, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(38px, 5vw, 66px);
}

.founder-media {
  width: 100%;
  max-width: 560px;
  justify-self: start;
}

.founder-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 834 / 626;
  border: 1px solid rgba(184, 102, 121, 0.32);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.founder-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(8, 26, 44, 0.09) 100%);
}

.founder-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.founder-copy {
  max-width: 720px;
}

.founder-copy h2 {
  max-width: 680px;
}

.founder-name {
  margin: 22px 0 8px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.founder-summary {
  max-width: 700px;
  margin-bottom: 0;
}

.founder-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.founder-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(184, 102, 121, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(243, 228, 232, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ================================
   Contact and footer
================================ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: start;
  gap: clamp(34px, 5vw, 70px);
  margin-block: var(--section-space);
  padding: clamp(30px, 4.2vw, 50px);
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, var(--accent), #581d2e);
  box-shadow: 0 24px 58px rgba(88, 29, 46, 0.20);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact h2 {
  color: var(--white);
}

.contact-copy {
  max-width: 660px;
}

.contact-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.email-link {
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  display: inline-block;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  word-break: break-word;
}

.email-link:hover {
  color: var(--accent-tint);
  border-bottom-color: var(--accent-tint);
}

.contact-form-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 254, 251, 0.98);
  box-shadow: 0 16px 38px rgba(61, 16, 30, 0.16);
}

.contact-form-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 1.75vw, 1.6rem);
  font-weight: 750;
  line-height: 1.2;
}

.contact-form-intro {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 26, 44, 0.20);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input {
  min-height: 46px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(116, 43, 62, 0.10);
}

.contact-form textarea::placeholder {
  color: #8d929a;
}

.form-submit {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--white);
  background: var(--accent);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.form-submit:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.form-note {
  margin: -3px 0 0;
  color: #767d86;
  font-size: 0.76rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid rgba(116, 43, 62, 0.16);
}

.footer-inner {
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

/* ================================
   Motion
================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.delay-1 {
  transition-delay: 90ms;
}

.js .reveal.delay-2 {
  transition-delay: 180ms;
}

.js .reveal.delay-3 {
  transition-delay: 270ms;
}

/* ================================
   Responsive: tablet
================================ */

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
    --section-space: clamp(46px, 6vw, 64px);
  }

  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.58rem;
  }

  .primary-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 8px);
    padding: 14px;
    display: grid;
    justify-items: stretch;
    gap: 4px;
    color: var(--paper);
    border: 1px solid rgba(184, 102, 121, 0.26);
    border-radius: 14px;
    background: rgba(8, 26, 44, 0.992);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav a {
    padding: 11px 12px;
    border-radius: 8px;
    white-space: normal;
  }

  .primary-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .split,
  .section-heading,
  .credentials,
  .founder-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway-mark {
    width: 78vw;
    right: -28vw;
    top: 7vh;
  }

  .founder-media {
    width: min(100%, 680px);
    max-width: 680px;
  }

  .contact {
    align-items: start;
  }
}

/* ================================
   Responsive: mobile
================================ */

@media (max-width: 700px) {
  :root {
    --page: calc(100% - 32px);
    --header-h: 64px;
    --section-space: 42px;
  }

  body::before {
    background-size: 56px 56px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.8vw, 3.35rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }

  .masthead-inner {
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .header-email {
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  .gateway-hero {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .service-card,
  .step {
    min-height: auto;
  }

  #results .step {
    min-height: 164px;
  }

  .founder-section {
    gap: 30px;
  }

  .founder-media {
    width: 100%;
    max-width: none;
  }

  .founder-photo-frame {
    aspect-ratio: 834 / 626;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    display: none;
  }

  .brand-name {
    font-size: 1.28rem;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 1.18rem;
  }
}


@media (max-width: 700px) {
  .contact {
    gap: 28px;
    margin-block: 36px;
    padding: 26px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
