/* ==========================================================================
   Base — reset, typography, layout primitives, buttons, motion utilities
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  text-wrap: balance;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout ------------------------------------------------------------ */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.on-dark {
  --focus: var(--accent);
  color: rgba(255, 255, 255, 0.78);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

@media (max-width: 480px) {
  .eyebrow {
    gap: 0.6rem;
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
  }

  .eyebrow::before {
    width: 1.1rem;
  }
}

.on-dark .eyebrow,
.eyebrow--light {
  color: var(--accent);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38rem;
}

.on-dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.section-head h2 {
  margin-top: 0.25rem;
}

.section-head--split {
  grid-template-columns: var(--split);
  column-gap: var(--split-gap);
  align-items: end;
}

.section-head--split .lead {
  justify-self: start;
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.125rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-bd: var(--accent-hover);
  box-shadow: 0 12px 28px -12px rgba(242, 106, 27, 0.7);
}

.btn--dark {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  --btn-bd: var(--ink-900);
}

.btn--dark:hover {
  --btn-bg: var(--ink-700);
  --btn-bd: var(--ink-700);
  box-shadow: 0 12px 28px -14px rgba(11, 22, 38, 0.7);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bd: #fff;
}

.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-bd: var(--stone-300);
}

.btn--ghost-dark:hover {
  --btn-bd: var(--ink-900);
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* Text-style link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--ink-900);
  text-decoration: none;
}

.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover .icon,
.link-arrow:focus-visible .icon {
  transform: translateX(4px);
}

/* ---- Icons ------------------------------------------------------------- */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Scroll reveal ----------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease) var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms);
}

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

/* Image reveal: a curtain wipes away while the photo settles */
.reveal-img {
  position: relative;
  overflow: hidden;
}

.js .reveal-img img {
  transform: scale(1.12);
  transition: transform 1.3s var(--ease) var(--d, 0ms);
}

.js .reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--curtain, var(--stone-100));
  transform-origin: top;
  transition: transform 0.95s var(--ease) var(--d, 0ms);
  pointer-events: none;
}

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

.js .reveal-img.is-visible::after {
  transform: scaleY(0);
}

/* ---- Placeholder markers ----------------------------------------------
   Everything the company still needs to supply is tagged data-placeholder.
   Remove the data-show-placeholders attribute from <html> before launch to
   hide the dotted underlines, notes and chips in one go.                    */

html[data-show-placeholders] [data-placeholder] {
  text-decoration: underline dotted var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}

.ph-note,
.ph-chip {
  display: none;
}

html[data-show-placeholders] .ph-note {
  display: block;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px dashed var(--accent);
  border-radius: var(--r-sm);
  font: 500 0.6875rem/1.5 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: rgba(242, 106, 27, 0.06);
}

.on-dark .ph-note {
  color: var(--accent);
  background: rgba(242, 106, 27, 0.1);
}

html[data-show-placeholders] .ph-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  font: 500 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(242, 106, 27, 0.07);
}

.on-dark .ph-chip {
  color: var(--accent);
}

/* ---- Reduced motion ---------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js .reveal-img::after {
    display: none;
  }

  .js .reveal-img img {
    transform: none;
  }
}
