/* About and Contact pages. Tokens and footer come from home.css. */

/* ───────────── About ───────────── */
.ab-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 0%, #0B2A3A 0%, var(--night) 60%);
  color: #fff; padding: clamp(150px, 18vw, 210px) 0 clamp(230px, 22vw, 300px);
}
.ab-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(46px, 6.6vw, 104px); max-width: 16ch; text-wrap: balance;
  opacity: 0; transform: translateY(20px); animation: fade 1s .1s var(--ease) forwards;
}
.ab-lead {
  margin-top: 28px; max-width: 36rem; color: #D1D5DB; font-size: clamp(18px, 1.5vw, 21px);
  opacity: 0; animation: fade 1s .35s var(--ease) forwards;
}
.ab-pulse { position: absolute; z-index: -1; left: 0; right: 0; bottom: 36px; width: 100%; height: 220px; }
.ab-pulse-line {
  fill: none; stroke: url(#ab-fade); stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.6s .5s cubic-bezier(.6, .1, .2, 1) forwards;
}
.ab-pulse-dot { fill: var(--pulse); filter: drop-shadow(0 0 10px rgba(244, 63, 94, .9)); offset-path: path("M0 130 H520 l26 -14 l18 14 H640 l16 22 l30 -150 l30 196 l22 -68 H790 l34 -22 l34 22 H1600"); offset-distance: 0%; opacity: 0; animation: travel 2.6s .5s cubic-bezier(.6, .1, .2, 1) forwards, beat 1.1s 3.2s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { opacity: 1; offset-distance: 0%; } 100% { opacity: 1; offset-distance: 100%; } }
@keyframes beat { 50% { r: 10; } }

.ab-why { background: var(--paper); padding: clamp(96px, 12vw, 160px) 0; }
.ab-why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.ab-why h2 { font-size: clamp(34px, 4.2vw, 60px); text-wrap: balance; }
.ab-why-text p { color: var(--ink-2); font-size: 19px; line-height: 1.7; }
.ab-why-text p + p { margin-top: 20px; }

.ab-facts { background: var(--paper); padding-bottom: clamp(80px, 10vw, 130px); }
.ab-facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.ab-facts-row > div { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.ab-facts-row > div + div { padding-left: 24px; border-left: 1px solid rgba(11, 43, 46, .14); }
.ab-facts-row b { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--teal); font-variant-numeric: tabular-nums; }
.ab-facts-row span { color: var(--ink-2); font-size: 16px; max-width: 16rem; }

.ab-principles { background: #fff; padding: clamp(96px, 12vw, 160px) 0; }
.ab-principles h2 { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); }
.ab-principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ab-principle-grid article {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--paper);
  transition: background-color .3s var(--ease);
}
.ab-principle-grid article:hover { background: #EAF5F2; }
.ab-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #CCFBF1; color: #0F766E; margin-bottom: 22px; }
.ab-principle-grid h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.ab-principle-grid p { color: var(--ink-2); font-size: 17px; }

.ab-product { background: var(--deep); color: #fff; padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.ab-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ab-product h2 { font-size: clamp(38px, 4.8vw, 68px); color: var(--foam); margin-bottom: 22px; }
.ab-product p { color: rgba(255, 255, 255, .78); font-size: 19px; max-width: 32rem; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ab-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
.ab-btn-ghost:hover { border-color: #fff; }
.ab-fan { position: relative; height: clamp(380px, 42vw, 560px); }
.ab-fan img {
  position: absolute; top: 50%; left: 50%; width: clamp(150px, 16vw, 230px); height: auto;
  border-radius: 30px; border: 7px solid #0b1215; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  transition: transform .8s var(--ease);
}
.ab-fan img:nth-child(1) { transform: translate(-115%, -48%) rotate(-10deg); }
.ab-fan img:nth-child(2) { transform: translate(-50%, -52%); z-index: 2; }
.ab-fan img:nth-child(3) { transform: translate(15%, -48%) rotate(10deg); }
.ab-fan:hover img:nth-child(1) { transform: translate(-128%, -46%) rotate(-14deg); }
.ab-fan:hover img:nth-child(3) { transform: translate(28%, -46%) rotate(14deg); }

.ab-next { background: var(--paper); padding: clamp(80px, 10vw, 120px) 0; }
.ab-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-next-card {
  position: relative; display: grid; gap: 8px; padding: 32px 80px 32px 32px; border-radius: var(--radius-lg);
  background: #fff; text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ab-next-card::after {
  content: ""; position: absolute; right: 30px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .35s var(--ease);
}
.ab-next-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(11, 43, 46, .45); }
.ab-next-card:hover::after { transform: translateX(5px); }
.ab-next-card b { font-size: 22px; }
.ab-next-card span { color: var(--ink-2); }

/* ───────────── Contact ───────────── */
.ct-hero { background: linear-gradient(180deg, #F6E4DA 0%, #DCEFEA 100%); padding: clamp(140px, 17vw, 200px) 0 clamp(64px, 8vw, 100px); }
.ct-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.05em; line-height: .95;
  font-size: clamp(64px, 11vw, 168px);
}
.ct-lead { margin-top: 24px; max-width: 34rem; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); }
.ct-mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 44px;
}
.ct-mail-address {
  font-weight: 800; letter-spacing: -.03em; font-size: clamp(26px, 3.6vw, 48px); color: var(--ink);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .45s var(--ease);
}
.ct-mail-address:hover { background-size: 100% 3px; }
.ct-copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(11, 43, 46, .2); background: rgba(255, 255, 255, .6); cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.ct-copy:hover { border-color: var(--ink); background: #fff; }
.ct-copy[data-done] { border-color: var(--teal); color: var(--teal); }

.ct-body { background: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ct-grid h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 22px; }
.ct-topics { display: grid; gap: 10px; }
.ct-topic {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  width: 100%; text-align: left; padding: 18px 20px; border-radius: 22px; cursor: pointer;
  background: #fff; border: 1.5px solid transparent; color: var(--ink);
  transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ct-topic:hover { transform: translateX(3px); }
.ct-topic[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 20px 40px -30px rgba(13, 148, 136, .7); }
.ct-topic .ab-ic { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
.ct-topic b { font-size: 18px; }
.ct-topic span:not(.ab-ic) { color: var(--ink-2); font-size: 15px; }

.ct-form { position: sticky; top: 110px; padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: #fff; box-shadow: 0 40px 80px -50px rgba(11, 43, 46, .45); }
.ct-field { display: grid; gap: 8px; margin-bottom: 18px; }
.ct-field label { font-weight: 600; font-size: 15px; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid rgba(11, 43, 46, .14); background: var(--paper);
  transition: border-color .2s, background-color .2s;
}
.ct-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.ct-hint { color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.ct-send { width: 100%; border: 0; cursor: pointer; }
.ct-send:disabled { opacity: .6; cursor: progress; }
.ct-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ct-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FDECEE; color: #9F1D2F; font-size: 15px; line-height: 1.45; }
.ct-form[hidden], .ct-error[hidden] { display: none; }
.ct-sent { display: grid; gap: 12px; justify-items: start; align-content: start; outline: none; }
.ct-sent .ab-ic { margin: 0; width: 52px; height: 52px; }
.ct-sent h2 { margin: 4px 0 0; }
.ct-sent p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.ct-again { margin-top: 8px; border: 1px solid var(--line, rgba(11, 43, 46, .15)); background: transparent; cursor: pointer; }

.ct-links { background: #fff; padding: clamp(64px, 8vw, 100px) 0; }
.ct-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ct-links-grid a {
  display: grid; gap: 6px; padding: 22px; border-radius: 22px; background: var(--paper);
  text-decoration: none; color: var(--ink); transition: background-color .2s;
}
.ct-links-grid a:hover { background: #EAF5F2; }
.ct-links-grid b { font-size: 17px; }
.ct-links-grid span { color: var(--ink-2); font-size: 14px; }
.ct-sos {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 24px; border-radius: 22px;
  background: #FFF1F2; color: #9F1239;
}
.ct-sos b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .ab-why-grid, .ab-product-grid, .ab-next-grid, .ct-grid { grid-template-columns: 1fr; }
  .ab-facts-row { grid-template-columns: 1fr 1fr; border-top: 0; }
  .ab-facts-row > div, .ab-facts-row > div + div { padding: 22px 0; border-left: 0; border-top: 2px solid var(--ink); }
  .ab-facts-row > div:nth-child(even) { padding-left: 16px; }
  .ab-principle-grid { grid-template-columns: 1fr; }
  .ab-fan { height: 380px; }
  .ab-fan img { width: 150px; border-radius: 24px; border-width: 5px; }
  .ab-pulse { bottom: 10px; height: 140px; }
  .ct-form { position: static; }
  .ct-links-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-pulse-line { stroke-dashoffset: 0; }
  .ab-pulse-dot { display: none; }
}
