/* FIXD — reset, typography primitives, buttons, image frames, focus. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: 'wdth' var(--wdth-tight);
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: var(--track-huge);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--black); }

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

.section { padding-block: var(--sect-y); background: var(--bg); color: var(--fg); }

.is-dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--white-72);
  --rule: var(--white-16);
}
.is-yellow {
  --bg: var(--yellow);
  --fg: var(--black);
  --muted: rgba(11, 11, 10, .72);
  --rule: rgba(11, 11, 10, .22);
}

/* --- micro labels ------------------------------------------------------ */
.label {
  font-family: var(--font-display);
  font-size: var(--t-label);
  font-weight: 700;
  font-variation-settings: 'wdth' var(--wdth-normal);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label--yellow { color: var(--yellow); }

.lede { font-size: var(--t-lede); color: var(--muted); max-width: var(--maxw-text); }

/* The signature FIXD line: a 3px yellow rule that draws itself in.
   It sits above headings, between steps and along section seams. */
.fixd-line {
  display: inline-block;
  vertical-align: middle;
  width: clamp(38px, 4vw, 52px);
  height: var(--line-w);
  margin-right: .85rem;
  margin-bottom: .12em;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-md) var(--ease-snap);
}
.is-in .fixd-line, .fixd-line.is-in { transform: scaleX(1); }

/* Yellow full stop that ends the wordmark and every hard statement. */
.dot { color: var(--yellow); }

/* --- buttons -----------------------------------------------------------
   Square, heavy, no glow. The hover contract is: background block grows
   from the left, the arrow steps 5px right. Nothing eases slowly. */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1.05em 1.6em;
  border: 0;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 800;
  font-variation-settings: 'wdth' var(--wdth-normal);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur-sm) var(--ease-snap);
  -webkit-tap-highlight-color: transparent;
}
.btn > * { position: relative; z-index: 1; }
.btn::after {                       /* the block that expands on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-sm) var(--ease-snap);
}
.btn:hover { color: var(--yellow); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost::after { background: var(--yellow); }
.btn--ghost:hover { color: var(--black); }

.btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); }
.btn--dark::after { background: var(--yellow); }
.btn--dark:hover { color: var(--black); }

.btn .arrow { transition: transform var(--dur-sm) var(--ease-snap); }
.btn:hover .arrow { transform: translateX(5px); }

/* Text link that doubles as a CTA inside editorial blocks. */
.tlink {
  display: inline-flex;
  align-items: center;
  justify-self: start;      /* the block sits inside grids; never stretch it */
  align-self: start;
  gap: .55em;
  padding: .35em 0;
  border: 0;
  background-color: transparent;
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 800;
  font-variation-settings: 'wdth' var(--wdth-normal);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--dur-sm) var(--ease-snap);
}
.tlink:hover { background-size: 100% 2px; }
.tlink .arrow { transition: transform var(--dur-sm) var(--ease-snap); }
.tlink:hover .arrow { transform: translateX(5px); }

.arrow { display: inline-block; width: 1em; height: 1em; }

/* --- image frames ------------------------------------------------------
   Every photograph lives in a hard-edged clipping box. The crops already
   removed the promotional typography; object-position does the fine art
   direction per breakpoint. */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  border-radius: var(--r);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease-out);
}
a.frame:hover img, .frame--hover:hover img { transform: scale(var(--img-zoom)); }

/* --- focus -------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.is-dark :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }
.is-yellow :focus-visible { outline-color: var(--black); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .9em 1.4em;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur-sm) var(--ease-snap);
}
.skip:focus { top: 12px; }

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