/* About page styles */

.design-guides {
  display: none !important;
}

/* Soft seam under HERO — keep other section/footer rules hidden */
.site-main > .section::before,
.about-body > .section::before,
.site-footer::before {
  content: none !important;
  display: none !important;
}

.page-hero + .about-body > .section:first-of-type,
.about-body > .section:first-of-type {
  position: relative;
}

.about-body > .section:first-of-type::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(255 255 255 / 0.05);
  pointer-events: none;
  z-index: 3;
}

/* —— Page hero (photo background) —— */
.page-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  min-height: clamp(280px, 42svh, 420px);
  padding: clamp(56px, 8vh, 80px) 0 clamp(64px, 9vh, 96px);
  background: #050607;
  text-align: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: clamp(72px, 14vh, 140px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgb(26 26 26 / 0.12) 42%,
    rgb(26 26 26 / 0.38) 78%,
    rgb(26 26 26 / 0.55) 100%
  );
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto;
}

.page-hero__tagline,
.page-hero__title,
.page-hero__lead {
  opacity: 0;
  transform: translateY(22px);
}

.page-hero.is-ready .page-hero__tagline,
.page-hero.is-ready .page-hero__title,
.page-hero.is-ready .page-hero__lead {
  animation: about-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-hero.is-ready .page-hero__tagline {
  animation-delay: 0.08s;
}

.page-hero.is-ready .page-hero__title {
  animation-delay: 0.2s;
}

.page-hero.is-ready .page-hero__lead {
  animation-delay: 0.34s;
}

@keyframes about-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero__tagline {
  margin: 0 0 clamp(16px, 2.5vh, 24px);
  font-family: var(--font-dot);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(245 245 245 / 0.48);
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.page-hero__lead {
  margin: clamp(16px, 2.5vh, 22px) 0 0;
  max-width: 36em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: rgb(245 245 245 / 0.62);
}

@keyframes hero-media-enter {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: var(--hero-media-opacity, 0.72);
    transform: scale(1);
  }
}

@keyframes hero-fx-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-hero .hero__fx.shader-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: hero-fx-enter 1.1s ease 0.02s forwards;
}

.page-hero .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero .hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  --hero-media-opacity: 0.82;
  opacity: 0;
  filter: grayscale(1) contrast(1.08) brightness(0.78) saturate(0);
  transform: scale(1.06);
  animation: hero-media-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.page-hero .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 72% at 50% 48%, rgb(5 6 7 / 0.52) 0%, rgb(5 6 7 / 0.34) 42%, rgb(5 6 7 / 0.18) 68%, rgb(5 6 7 / 0.1) 86%),
    linear-gradient(90deg, rgb(5 6 7 / 0.28) 0%, rgb(5 6 7 / 0.12) 40%, rgb(5 6 7 / 0.14) 70%, rgb(5 6 7 / 0.32) 100%),
    linear-gradient(180deg, rgb(5 6 7 / 0.24) 0%, rgb(5 6 7 / 0.06) 36%, rgb(5 6 7 / 0.14) 62%, rgb(26 26 26 / 0.45) 88%, #1a1a1a 100%);
  pointer-events: none;
}

.page-hero .hero__fx.shader-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(5 6 7 / 0.06) 0%, transparent 42%, transparent 70%, rgb(5 6 7 / 0.08) 100%),
    linear-gradient(180deg, rgb(5 6 7 / 0.04) 0%, transparent 30%, transparent 72%, rgb(5 6 7 / 0.12) 100%);
  pointer-events: none;
}

/* —— Content body: color bends + soft terminal (radesign pricing) —— */
.about-body {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: -56px;
  padding-top: 56px;
  background: transparent;
}

.about-body__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1a1a1a;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 56px,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 56px,
    #000 100%
  );
}

.about-body__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgb(26 26 26 / 0.18) 0%, transparent 10%, transparent 88%, rgb(26 26 26 / 0.38) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 48%, rgb(10 10 12 / 0.22) 100%);
  pointer-events: none;
}

.about-body__terminal {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.48;
  filter: brightness(0.95) contrast(1.06);
}

.about-body__bends {
  position: absolute;
  inset: 0;
  top: 48px;
  z-index: 1;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 72% at 50% 52%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 72% at 50% 52%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
}

.about-body__bends canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.about-body__terminal canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* About page: filmstrip glow instead of character terminal */
.about-body--filmstrip .about-body__fx {
  --pointer-x: 50%;
  background: #121214;
}

.about-body--filmstrip .about-body__fx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05) 0 0.5px, transparent 0.7px 4px),
    repeating-radial-gradient(circle at 78% 71%, rgba(0, 0, 0, 0.35) 0 0.5px, transparent 0.8px 5px);
  mix-blend-mode: soft-light;
}

.about-body--filmstrip .about-body__fx::after {
  content: none;
  display: none;
}

.about-body--filmstrip .about-body__vignette {
  background:
    linear-gradient(180deg, rgb(18 18 20 / 0.18) 0%, transparent 10%, transparent 88%, rgb(18 18 20 / 0.38) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 48%, rgb(10 10 12 / 0.22) 100%);
}

.about-body--filmstrip .about-body__bends {
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(
    ellipse 42% 38% at 52% 48%,
    #000 0%,
    rgb(0 0 0 / 0.88) 42%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 42% 38% at 52% 48%,
    #000 0%,
    rgb(0 0 0 / 0.88) 42%,
    transparent 78%
  );
}

.about-body > .section {
  position: relative;
  z-index: 1;
}

/* —— Footer: solid surface distinct from content —— */
.site-footer {
  position: relative;
  z-index: 2;
  background: #101014 !important;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__tagline,
  .page-hero__title,
  .page-hero__lead {
    opacity: 1;
    transform: none;
  }

  .page-hero.is-ready .page-hero__tagline,
  .page-hero.is-ready .page-hero__title,
  .page-hero.is-ready .page-hero__lead {
    animation: none;
  }

  .page-hero .hero__media-img {
    opacity: var(--hero-media-opacity, 0.82);
    transform: none;
    animation: none !important;
  }

  .page-hero .hero__fx.shader-frame {
    opacity: 1;
    animation: none !important;
  }
}

/* —— Ordered content system —— */
.about-body > .about-section {
  padding: clamp(56px, 7vh, 88px) 0;
}

.about-body > .about-section:has(+ .about-section) {
  padding-bottom: clamp(36px, 4.5vh, 56px);
}

.about-body > .about-section + .about-section {
  padding-top: clamp(36px, 4.5vh, 56px);
}

.about-block {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 960px) {
  .about-block {
    grid-template-columns: minmax(200px, 0.34fr) minmax(0, 0.66fr);
    column-gap: clamp(32px, 5vw, 64px);
  }
}

.about-block__head {
  max-width: none;
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
}

.about-block__head .section__title {
  margin: 0;
}

.about-block__head .section__desc {
  margin-top: 12px;
  max-width: 22em;
}

.about-block__body {
  display: grid;
  gap: 18px;
  max-width: none;
  min-width: 0;
}

.about-prose {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* About page card lists: one card per row */
#who-we-are .about-grid,
#philosophy .about-grid,
#vision .about-grid,
.about-grid--rows {
  grid-template-columns: 1fr;
}

.about-grid--2,
.about-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .about-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .about-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Team — title above, content below */
.about-block--stack {
  grid-template-columns: 1fr;
}

.about-block--stack .about-block__head {
  position: static;
  max-width: none;
}

.about-block--stack .about-block__head .section__desc {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .about-block--stack .about-block__head .section__desc {
    white-space: normal;
  }
}

.team-papers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
  min-width: 0;
  align-items: stretch;
}

.team-paper {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 1932;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: transparent;
  isolation: isolate;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.22);
}

.team-paper.threeui-background,
.team-paper .threeui-background {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.team-paper iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
}

@media (max-width: 719px) {
  .team-papers {
    grid-template-columns: 1fr;
  }
}

/* Team values — denser equal cards under member papers */
.team-values {
  gap: clamp(14px, 1.8vw, 20px);
}

.team-value {
  gap: 10px;
  min-height: 0;
  padding: clamp(22px, 2.2vw, 28px);
}

.team-value .about-card__index {
  margin-bottom: 2px;
}

.team-value .about-card__title {
  font-size: clamp(18px, 1.55vw, 21px);
  letter-spacing: -0.01em;
}

.team-value .about-card__text {
  max-width: 28em;
  font-size: 13.5px;
  line-height: 1.7;
}

@media (max-width: 959px) and (min-width: 720px) {
  .team-values.about-grid--3 {
    grid-template-columns: 1fr;
  }

  .team-value {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "index title"
      "index text";
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
  }

  .team-value .about-card__index {
    grid-area: index;
    padding-top: 2px;
  }

  .team-value .about-card__title {
    grid-area: title;
  }

  .team-value .about-card__text {
    grid-area: text;
    max-width: none;
  }
}

@property --card-trace-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes card-trace-spin {
  to {
    --card-trace-angle: 360deg;
  }
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: clamp(24px, 2.6vw, 32px);
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 20px;
  background: rgb(68 68 74 / 0.13);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(20px) saturate(106%);
  backdrop-filter: blur(20px) saturate(106%);
  box-shadow:
    0 24px 70px rgb(0 0 0 / 0.14),
    inset 0 1px 1px rgb(255 255 255 / 0.1);
  transition:
    box-shadow 0.42s ease,
    background-color 0.42s ease,
    transform 0.42s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.48),
    rgb(255 255 255 / 0.18),
    transparent 48%,
    rgb(255 255 255 / 0.12) 76%,
    rgb(255 255 255 / 0.38)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.34;
  transition: opacity 0.42s ease;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--card-trace-angle),
    transparent 0deg,
    transparent 300deg,
    rgb(229 57 53 / 0.08) 316deg,
    rgb(229 57 53 / 0.45) 330deg,
    #e53935 338deg,
    #ff8a80 344deg,
    rgb(229 57 53 / 0.35) 352deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 10px rgb(229 57 53 / 0.18);
}

.about-card:hover {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgb(229 57 53 / 0.14), transparent 58%),
    linear-gradient(180deg, rgb(84 84 92 / 0.28) 0%, rgb(52 52 58 / 0.2) 100%);
  background-blend-mode: normal, luminosity;
  box-shadow:
    0 28px 80px rgb(0 0 0 / 0.22),
    0 0 0 1px rgb(229 57 53 / 0.08),
    inset 0 1px 1px rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}

.about-card:hover::before {
  opacity: 0.2;
}

.about-card:hover::after {
  opacity: 1;
  animation: card-trace-spin 2.2s linear infinite;
}

.about-card__index,
.about-card__title,
.about-card__text,
.about-card--prose .about-prose {
  position: relative;
  z-index: 1;
}

.about-card__watermark {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.12);
  pointer-events: none;
  user-select: none;
}

.about-card--prose {
  gap: 16px;
  padding: clamp(26px, 3vw, 34px);
}

.about-card__index {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.about-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.about-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-note {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 16px;
  background: rgb(68 68 74 / 0.12);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(16px) saturate(106%);
  backdrop-filter: blur(16px) saturate(106%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.08);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 959px) {
  .about-block__head {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-body__bends canvas {
    opacity: 0.75;
  }

  .about-card:hover {
    transform: none;
  }

  .about-card:hover::after {
    animation: none;
    opacity: 0.85;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .about-card,
  .about-note {
    background: rgb(28 28 30 / 0.88);
  }
}

/* —— Reveal —— */
.reveal-section:not(.is-in) .about-block__head,
.reveal-section:not(.is-in) .about-block__body,
.reveal-section:not(.is-in) .about-card,
.reveal-section:not(.is-in) .about-note,
.reveal-section:not(.is-in) .team-paper {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-section .about-block__head,
.reveal-section .about-block__body,
.reveal-section .about-card,
.reveal-section .about-note,
.reveal-section .team-paper {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.is-in:not(.is-settled) .about-block__head {
  transition-delay: 0.04s;
}

.reveal-section.is-in:not(.is-settled) .about-block__body,
.reveal-section.is-in:not(.is-settled) .about-note {
  transition-delay: 0.1s;
}

.reveal-section.is-in:not(.is-settled) .about-card:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-section.is-in:not(.is-settled) .team-paper:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-section.is-in:not(.is-settled) .team-paper:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal-section.is-in:not(.is-settled) .about-card:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal-section.is-in:not(.is-settled) .about-card:nth-child(3) {
  transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section:not(.is-in) .about-block__head,
  .reveal-section:not(.is-in) .about-block__body,
  .reveal-section:not(.is-in) .about-card,
  .reveal-section:not(.is-in) .about-note,
  .reveal-section:not(.is-in) .team-paper {
    opacity: 1;
    transform: none;
  }

  .reveal-section .about-block__head,
  .reveal-section .about-block__body,
  .reveal-section .about-card,
  .reveal-section .about-note,
  .reveal-section .team-paper {
    transition: none;
  }
}

/* —— Consult modal (shared with home) —— */
html.is-consult-open,
html.is-consult-open body {
  overflow: hidden;
}

button.header-cta {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.4);
  cursor: pointer;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.consult-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  outline: none;
}

.consult-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28);
  color: rgb(245 245 245 / 0.92);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.consult-modal__close:hover {
  background: rgb(0 0 0 / 0.45);
  border-color: rgb(255 255 255 / 0.36);
  color: #fff;
}

.consult-modal__close [data-lucide] {
  width: 15px;
  height: 15px;
}

.consult-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
  color: #f2f2f2;
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.55);
}

.consult-card__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #111;
}

.consult-card__bends {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 72% at 50% 48%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 72% at 50% 48%,
    #000 0%,
    rgb(0 0 0 / 0.82) 54%,
    transparent 100%
  );
}

.consult-card__bends canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.consult-card__corner {
  display: none;
}

.consult-card__top {
  position: relative;
  z-index: 1;
  padding: 36px 48px 48px 28px;
  background: transparent;
}

.consult-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #f5f5f5;
}

.consult-card__en {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #f0f0f0;
}

.consult-card__desc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: rgb(245 245 245 / 0.82);
}

.consult-card__bullet {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-top: 7px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #f5f5f5;
}

.consult-card__qr {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.consult-card__qr::before,
.consult-card__qr::after {
  content: none;
  display: none;
}

.consult-card__qr img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(240px, 62vw);
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.consult-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 28px 28px 36px;
  background: transparent;
  color: #fff;
  text-align: center;
}

.consult-card__chevron {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 14px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-135deg);
  opacity: 0.9;
}

.consult-card__cta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.consult-card__hint {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.55);
}

.consult-modal.is-open .consult-modal__backdrop {
  animation: consult-fade-in 220ms ease forwards;
}

.consult-modal.is-open .consult-modal__dialog {
  animation: consult-rise-in 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes consult-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes consult-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult-modal.is-open .consult-modal__backdrop,
  .consult-modal.is-open .consult-modal__dialog {
    animation: none;
  }
}

/* —— Contact cards —— */
.contact-grid {
  gap: clamp(14px, 1.8vw, 20px);
}

.contact-card {
  gap: 10px;
  min-height: 188px;
  padding: clamp(22px, 2.4vw, 28px);
}

.contact-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)),
    rgb(255 255 255 / 0.03);
  color: rgb(255 255 255 / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-card__icon i,
.contact-card__icon svg {
  width: 18px;
  height: 18px;
}

.contact-card .about-card__index {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgb(229 57 53 / 0.92);
}

.contact-card .about-card__title {
  margin-top: 2px;
  font-size: clamp(18px, 1.6vw, 21px);
}

.contact-card .about-card__text {
  margin-top: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: 15px !important;
  letter-spacing: 0.02em;
  color: var(--text-secondary) !important;
  word-break: break-word;
}

.contact-card__value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-card__value a:hover {
  color: var(--accent-warm);
}

.contact-card:hover .contact-card__icon {
  border-color: rgb(229 57 53 / 0.32);
  background:
    linear-gradient(160deg, rgb(229 57 53 / 0.22), rgb(229 57 53 / 0.06)),
    rgb(255 255 255 / 0.03);
  color: #ff8a80;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 0 18px rgb(229 57 53 / 0.16);
}

.contact-card--cta {
  gap: 12px;
}

.contact-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-card__action i,
.contact-card__action svg {
  width: 14px;
  height: 14px;
}

.contact-card__action:hover {
  border-color: rgb(229 57 53 / 0.4);
  background: rgb(229 57 53 / 0.16);
  color: #fff;
}

.contact-card:hover .contact-card__action {
  border-color: rgb(229 57 53 / 0.35);
  background: rgb(229 57 53 / 0.14);
}

@media (max-width: 959px) and (min-width: 720px) {
  .contact-grid.about-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card__action:hover {
    transform: none;
  }
}
