/* ==========================================================================
   About and Contact.

   Three ideas carry both pages:
     1. The flow-lines hero: a canvas of crossing curves behind the headline
        (static/js/modules/flow-lines.js).
     2. Generous type: Libre Baskerville for the big statements, Inter for
        everything you act on.
     3. Content is never hidden without JavaScript. Scroll-reveal only applies
        under `html.js`, and reduced-motion readers get everything at once.
   ========================================================================== */

/* Where the hero canvas replaces the ambient field, switch that off. */
body.page-flow .ambient { display: none; }
body.page-flow .footer { margin-top: 0; }

/* --- Hero ----------------------------------------------------------------- */
.fhero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 780px);
  display: flex; align-items: flex-start;
  background: var(--ivory);
}
.fhero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
  /* Lines leave through the bottom edge; fade them so they do not look cut off. */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.fhero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 7vh, 5rem) clamp(11rem, 25vh, 14rem); }
.fhero__title {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  font-size: clamp(2.7rem, 1.4rem + 5.6vw, 5.4rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 var(--sp-5);
}
.fhero__title span { display: block; }
.fhero__lead { max-width: 34rem; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); margin-bottom: var(--sp-5); }
.fhero .eyebrow { margin-bottom: var(--sp-4); }
.fhero--compact { min-height: clamp(340px, 46vh, 460px); }
.fhero--compact .fhero__title { font-size: clamp(2.6rem, 1.3rem + 5vw, 4.6rem); margin-bottom: var(--sp-4); }
.fhero--compact .fhero__title span { display: inline; }

@media (max-width: 720px) {
  .fhero { min-height: 0; display: block; }
  .fhero__inner { padding-bottom: 20rem; }
  .fhero--compact .fhero__inner { padding-bottom: 13rem; }
  .fhero__canvas { top: auto; bottom: 0; height: 19rem; }
  .fhero--compact .fhero__canvas { height: 12.5rem; }
}

/* --- Section furniture ---------------------------------------------------- */
.sechead { max-width: 46rem; margin-bottom: var(--sp-6); }
.sechead h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; }
.sechead p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.6; margin-bottom: 0; }
.sechead--dark h2 { color: var(--on-dark); }
.sechead--dark p:not(.eyebrow) { color: var(--on-dark-2); }
.sechead--dark .eyebrow { color: var(--on-dark-3); }
.btn--onDark { background: transparent; color: var(--on-dark); border-color: rgba(251, 248, 240, .38); }
.btn--onDark:hover { background: rgba(251, 248, 240, .1); border-color: var(--on-dark); color: var(--on-dark); }

/* Scroll reveal: only when JS has opted in, so nothing is ever hidden by default. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- Pillars -------------------------------------------------------------- */
.pillars__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pillar {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pillar:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.pillar__no { position: absolute; top: 1.3rem; right: 1.5rem; font-family: var(--font-label); font-weight: 500; font-size: .75rem; letter-spacing: .1em; color: var(--muted-2); }
.pillar__art { width: 132px; height: 70px; margin: 0 0 var(--sp-4); overflow: visible; }
.pillar h3 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
.pillar p { color: var(--muted); font-size: var(--step-0); line-height: 1.62; flex: 1; }
.pillar__link { font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); align-self: flex-start; padding-bottom: 1px; }
.pillar__link:hover { color: var(--accent-text); }
.pillar__link span { display: inline-block; transition: transform .2s ease; }
.pillar__link:hover span { transform: translateX(3px); }
.pa { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pa--coral { stroke: var(--accent); } .pa--teal { stroke: var(--ink); } .pa--butter { stroke: #E2D3A0; }
.pd { fill: var(--accent); } .pd--teal { fill: var(--ink); }
.js [data-reveal] .pa { stroke-dasharray: 240; stroke-dashoffset: 240; }
.js [data-reveal] .pd { opacity: 0; }
.js [data-reveal].is-in .pa { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.4, .1, .2, 1) .25s; }
.js [data-reveal].is-in .pa:nth-of-type(2) { transition-delay: .4s; }
.js [data-reveal].is-in .pa:nth-of-type(3) { transition-delay: .55s; }
.js [data-reveal].is-in .pd { opacity: 1; transition: opacity .4s ease 1.5s; }

/* --- The idea (text + schematic) ------------------------------------------ */
.idea__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.idea__text h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; }
.idea__text p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.65; }
.fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem .9rem; box-shadow: var(--shadow); }
.fig__svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig__grid { stroke: var(--line-soft); stroke-width: 1; }
.fig__axis { stroke: var(--ink-3); stroke-width: 1.2; }
.fig__tick, .fig__axis-title { font-family: var(--font-label); font-weight: 500; font-size: 11px; fill: var(--muted); }
.fig__label { font-family: var(--font-label); font-weight: 600; font-size: 12px; fill: var(--ink); }
.fig__line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fig__line--pde { stroke: var(--accent); } .fig__dot--pde { fill: var(--accent); }
.fig__line--bc { stroke: var(--ink); } .fig__dot--bc { fill: var(--ink); }
.fig__line--ic { stroke: var(--muted-2); stroke-dasharray: 7 6; } .fig__dot--ic { fill: var(--muted-2); }
.fig__reveal { transform-box: fill-box; transform-origin: left center; }
.js .fig .fig__reveal { transform: scaleX(0); }
.js .fig.is-in .fig__reveal { transform: scaleX(1); transition: transform 2.4s cubic-bezier(.45, .05, .25, 1) .3s; }
.fig__caption { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; align-items: center; padding: .6rem .3rem 0; border-top: 1px solid var(--line-soft); margin-top: .4rem; }
.fig__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-family: var(--font-label); font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.fig__legend li { display: inline-flex; align-items: center; gap: .45rem; }
.key { display: inline-block; width: 20px; height: 0; border-top: 3px solid; border-radius: 2px; }
.key--pde { border-color: var(--accent); } .key--bc { border-color: var(--ink); } .key--ic { border-top-style: dashed; border-color: var(--muted-2); }
.fig__note { font-size: .78rem; color: var(--muted); font-style: italic; font-family: var(--font-display); }

/* --- Blocks band ---------------------------------------------------------- */
.band { position: relative; background: var(--teal); color: var(--on-dark); padding-block: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.band::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 103, 79, .16), transparent); pointer-events: none; }
.band__inner { position: relative; }
.blocks { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3) 2.1rem; }
.blk {
  position: relative; display: grid; gap: .45rem; justify-items: start; min-width: 7.2rem;
  padding: .85rem 1rem .8rem; border-radius: 10px; background: rgba(251, 248, 240, .06);
  border: 1px solid rgba(251, 248, 240, .16); border-top: 3px solid var(--c);
  transition: transform .2s ease, background .2s ease;
}
.blk:hover { transform: translateY(-3px); background: rgba(251, 248, 240, .1); }
.blk b { font-family: var(--font-label); font-weight: 700; font-size: .68rem; letter-spacing: .06em; color: #04211E; background: var(--c); border-radius: 4px; padding: .12rem .4rem; }
.blk span { font-weight: 500; font-size: .95rem; color: var(--on-dark); }
/* The wire between blocks: a dashed line that keeps moving toward the next one. */
.blk + .blk::before {
  content: ""; position: absolute; left: -2.1rem; top: 1.7rem; width: 2.1rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 11px 2px;
  animation: wire 1.1s linear infinite;
}
@keyframes wire { to { background-position: 11px 0; } }
@media (max-width: 900px) { .blk + .blk::before { display: none; } .blocks { gap: var(--sp-3); } .blk { min-width: 8.2rem; } }

/* --- Promises ------------------------------------------------------------- */
.promises__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promises__grid li { border-top: 2px solid var(--ink); padding-top: var(--sp-4); position: relative; }
.promises__grid li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.promises__grid h3 { font-size: var(--step-2); }
.promises__grid p { color: var(--muted); line-height: 1.62; margin: 0; }

/* --- Team ----------------------------------------------------------------- */
.team { margin-top: 0; background: linear-gradient(180deg, transparent, var(--accent-wash) 140%); }
.team .team__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: var(--sp-7) var(--sp-7); }
.team .team__member:nth-child(n) { margin-top: 0; }
.team .team__photo { max-width: 200px; position: relative; overflow: visible; border: 0; background: none; }
.team .team__photo img { border-radius: 50%; border: 1px solid var(--line); background: var(--accent-wash); position: relative; z-index: 1; }
.team .team__photo::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% 46%, 0 46%); transition: transform .5s ease; }
.team .team__member:hover .team__photo::after { transform: rotate(180deg); }
.team .team__member:hover .team__photo { transform: none; }
.team .sechead { margin-inline: auto; text-align: center; }
.team .sechead .eyebrow { justify-content: center; }
.team .team__role { color: var(--accent-text); }

/* --- Closing band --------------------------------------------------------- */
.cta { position: relative; background: var(--teal); color: var(--on-dark); overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(251, 248, 240, .16); }
.cta__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  /* Keep the lines off the words: they fade in from the right. */
  -webkit-mask-image: linear-gradient(to right, transparent 28%, #000 62%); mask-image: linear-gradient(to right, transparent 28%, #000 62%);
}
@media (max-width: 720px) {
  .cta__canvas { -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 70%); mask-image: linear-gradient(to bottom, transparent 30%, #000 70%); }
  .cta__inner { padding-bottom: 9rem; }
}
.cta__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 6.5rem); }
.cta h2 { color: var(--on-dark); font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.1; max-width: 18ch; margin-bottom: var(--sp-5); letter-spacing: -.015em; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-block: var(--sp-7) var(--sp-9, 6rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__side > * + * { margin-top: var(--sp-5); }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.channel__label { font-family: var(--font-label); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.channel__label svg { color: var(--accent-text); }
.channel__value { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem); color: var(--ink); overflow-wrap: anywhere; margin: 0 0 var(--sp-3); }
.channel__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.btn--sm { padding: .4rem .8rem; font-size: var(--step--1); }
.topics__title { font-family: var(--font-label); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-3); }
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.topic {
  font: inherit; font-weight: 500; font-size: var(--step--1); cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.topic:hover { border-color: var(--accent); background: var(--accent-wash); transform: translateY(-1px); }
.topic[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.topic:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact__note { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.cform { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow-lift); position: relative; }
.cform::before { content: ""; position: absolute; left: 2rem; top: -1px; width: 56px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.cform h2 { font-size: var(--step-3); margin-bottom: var(--sp-5); }
.cform .field:last-of-type { margin-bottom: var(--sp-5); }
.cform__status { min-height: 1.4em; }
.cform__status.is-ok { color: var(--ok); }

@media (max-width: 900px) {
  .idea__grid, .contact__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-reveal] .pa { stroke-dashoffset: 0; }
  .js [data-reveal] .pd { opacity: 1; }
  .js .fig .fig__reveal { transform: none; }
  .blk + .blk::before { animation: none; }
  .blk, .pillar, .topic, .team .team__photo::after { transition: none; }
}
