/* ==========================================================================
   Base — reset, typography defaults, shared primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-on-ivory);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* <picture> must not sit between a sized frame and its image */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--coral); color: #fff; }

/* --- focus ---------------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  /* no border-radius here — the outline follows each element's own corners */
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--text-on-ink);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

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

.section { padding-block: var(--section-y); position: relative; }
.section--flush { padding-block: 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-on-ivory-mute);
}
.section-label::before,
.section-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--rule-dark);
}
.section-label--start::before { display: none; }
.section-label--start { justify-content: flex-start; }
.section-label--start::after { max-width: 90px; }

/* --- headings ------------------------------------------------------------- */
.display,
.statement,
.panel-title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.statement { font-size: var(--fs-h1); }

.lede {
  max-width: var(--measure);
  color: var(--text-on-ivory-mute);
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
}

.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-on-ivory-mute);
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--coral:hover { --btn-bg: var(--coral-deep); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); border-color: #fff; }

.btn--outline-dark {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--rule-dark);
}
.btn--outline-dark:hover { --btn-bg: var(--ink); --btn-fg: var(--ivory); }

/* --- text link with animated arrow --------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  padding-block: .35rem;
  position: relative;
}
.link-arrow::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) linear;
}
.link-arrow:hover::before { transform: scaleX(1.06); opacity: .9; }
.link-arrow .arrow {
  width: 30px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--dur-fast) var(--ease-out);
}
.link-arrow .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.link-arrow:hover .arrow { width: 44px; }

/* --- image frames --------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--nude);
}

/* Media that rises slightly under the cursor. `translate` is used instead of
   `transform` so it composes with the reveal and parallax transforms. */
@media (hover: hover) and (pointer: fine) {
  .lift:hover,
  .lift:focus-visible {
    translate: 0 var(--lift);
    box-shadow: var(--lift-shadow);
  }
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-chip {
  display: inline-block;
  margin-left: .5rem;
  padding: .12rem .5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .5625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  vertical-align: middle;
}

/* --- line icons ------------------------------------------------------------ */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 32px;
  height: 32px;
  vector-effect: non-scaling-stroke;
}
.icon--sm { width: 20px; height: 20px; stroke-width: 1.35; }
.icon--xs { width: 17px; height: 17px; stroke-width: 1.5; }
