/* Raft components: reusable pieces built from tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.4;
  background: var(--bg);
  color: var(--fg);
  transition: background-color var(--ease-theme), color var(--ease-theme);
  overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: var(--ls-serif); }
.serif--italic { font-style: italic; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Type styles ---- */
.t-display   { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.t-h2-xl     { font-size: var(--fs-h2-xl); line-height: var(--lh-h2-tight); letter-spacing: var(--ls-h2); }
.t-h2-cta    { font-size: var(--fs-h2-cta); line-height: var(--lh-h2-tight); letter-spacing: -.055em; }
.t-h2-lg     { font-size: var(--fs-h2-lg); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.t-h2-md     { font-size: var(--fs-h2-md); line-height: 1.06; letter-spacing: -.045em; }
.t-statement { font-size: var(--fs-statement); line-height: var(--lh-statement); letter-spacing: var(--ls-statement); }
.t-lead      { font-size: var(--fs-lead); line-height: 1.375; letter-spacing: -.025em; }
.t-body-lg   { font-size: var(--fs-body-lg); line-height: 1.6; }
.t-label-lg  { font-size: var(--fs-body-lg); line-height: 1.4; }
.t-body      { font-size: var(--fs-body); line-height: 1.625; }
.t-small     { font-size: var(--fs-small); line-height: 1.45; }
.t-label     { font-size: var(--fs-label); line-height: 1.33; }
.t-eyebrow   { font-size: var(--fs-body); line-height: 1; letter-spacing: .075em; text-transform: uppercase; }
.giant       { font-family: var(--font-serif); font-weight: 400; line-height: var(--lh-giant); letter-spacing: var(--ls-giant); }

/* ---- Icon: masks the exported Figma SVGs so they take the current text color ---- */
.icon {
  display: inline-block; flex: none; width: 28px; height: 28px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: transform var(--ease-ui);
}
.icon--arrow { --icon: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block%3B%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Arrow%22%3E %3Cpath id=%22Vector%22 d=%22M5.83333 22.1667L22.1667 5.83333M22.1667 22.1667V5.83333H5.83333%22 stroke-width=%221.45833%22 stroke=%22%23171916%22/%3E %3C/g%3E %3C/svg%3E"); }
.icon--arrow-pause { --icon: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block%3B%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Arrow%22%3E %3Cpath id=%22Vector%22 d=%22M5.83333 22.1667L22.1667 5.83333M22.1667 22.1667V5.83333H5.83333%22 stroke-width=%221.45833%22 stroke=%22%23EDF0D5%22/%3E %3C/g%3E %3C/svg%3E"); }
.icon--arrow-small { --icon: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block%3B%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Arrow%22%3E %3Cpath id=%22Vector%22 d=%22M14 25.5496V2.45075M25.5494 14.0002L14 2.45075L2.45057 14.0002%22 stroke-width=%221.45833%22 stroke=%22%23171916%22/%3E %3C/g%3E %3C/svg%3E"); }
.icon--plus { --icon: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block%3B%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cg id=%22Icon%22%3E %3Cpath id=%22Vector%22 d=%22M4.66667 14H23.3333%22 stroke-width=%221.45833%22 stroke=%22%23171916%22/%3E %3Cpath id=%22Vector_2%22 d=%22M14 4.66667V23.3333%22 stroke-width=%221.45833%22 stroke=%22%23171916%22/%3E %3C/g%3E %3C/svg%3E"); }

/* ---- Text action: "Label  →" link or button ---- */
.action {
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap); max-width: 100%;
  font-size: var(--fs-action); font-weight: 500; line-height: 1.25; letter-spacing: var(--ls-action);
}
.action--sm { font-size: 20px; }
/* Diagonal arrows turn to point straight right and move 10px right on hover */
.action:hover .icon--arrow, .action:focus-visible .icon--arrow,
.action:hover .icon--arrow-small, .action:focus-visible .icon--arrow-small,
.action:hover .icon--arrow-pause, .action:focus-visible .icon--arrow-pause { transform: translateX(10px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .action:hover .icon--arrow, .action:hover .icon--arrow-small, .action:hover .icon--arrow-pause { transform: none; } }
.action__sep { color: var(--muted); }
.action__lead { color: var(--muted); }

/* ---- Eyebrow dot label ---- */
.dot-label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-label); line-height: 1.33; }
.dot-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Section frame: rule + two-column header ---- */
.split {
  display: grid; gap: var(--space-8);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 50rem) {
  .split { grid-template-columns: minmax(0, 574fr) minmax(0, 1148fr); }
}
.ruled { border-top: 1px solid var(--rule); }

/* ---- Project card ---- */
.project-card { min-width: 0; }
.project-card__media {
  position: relative; display: block; overflow: hidden; width: 100%; border-radius: var(--radius-media);
  background: var(--media-bg);
}
.project-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 700ms ease;
}
.project-card__media:hover img { transform: scale(1.025); }
.project-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
  padding-top: 20px;
}
.project-card__title { font-size: 24px; font-weight: 500; line-height: 1.5625; letter-spacing: -.0437em; }
.project-card__title a { display: inline-flex; align-items: center; min-height: var(--tap); }
.project-card__index { padding-top: var(--space-3); font-size: var(--fs-label); line-height: 1.33; }
.project-card__type { padding-top: var(--space-1); font-size: 18px; line-height: 1.11; color: var(--muted); }

/* ---- Accordion row (Offerings) ---- */
.accordion__item { border-top: 1px solid var(--rule); }
.accordion__button {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  min-height: var(--tap); padding-block: 28px;
  font-size: var(--fs-action); font-weight: 500; line-height: 1.25; letter-spacing: var(--ls-action);
}
.accordion__num { width: 20px; padding-right: var(--space-2); font-size: var(--fs-label); line-height: 1.33; letter-spacing: 0; }
.accordion__title { flex: 1; min-width: 0; }
.accordion__button .icon { margin-left: var(--space-3); }
.accordion__button[aria-expanded='true'] .icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 0 var(--space-8) 36px; font-size: var(--fs-body); line-height: 1.625; }
.accordion__panel[hidden] { display: none; }

/* ---- Pill ---- */
.pill {
  display: inline-block; padding: var(--space-1) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--color-ink) 40%, transparent);
  border-radius: 999px; font-size: var(--fs-label); line-height: 1.33;
}

/* ---- Media tile (press) ---- */
.media-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.15 / 1; overflow: hidden; color: var(--color-ink);
  font-size: var(--fs-media); line-height: 1.5; letter-spacing: -.08em; text-align: center;
}
.media-tile .pill { position: absolute; top: var(--space-4); right: var(--space-4); letter-spacing: 0; line-height: 1.33; }
.media-tile__text { padding-inline: var(--space-4); }
.press-card__title { padding-top: 20px; font-size: var(--fs-action); font-weight: 500; line-height: 1.25; letter-spacing: var(--ls-action); }
.press-card__meta { padding-top: var(--space-2); font-size: var(--fs-small); line-height: 1.43; color: var(--muted); }

/* ---- Link hover: 2px line wipes in left to right (the top nav uses the same motion at 3px) ---- */
:root { --wipe-ease: cubic-bezier(.65, 0, .35, 1); --wipe-time: 350ms; }
/* single-line links: a line drawn under the text */
.action, .project-card__title a, .work-card__title a, .of-links a, .of-areas__nav a { position: relative; }
.action::after, .project-card__title a::after, .work-card__title a::after, .of-links a::after, .of-areas__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(50% + .72em); height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform var(--wipe-time) var(--wipe-ease); pointer-events: none;
}
.action:hover::after, .project-card__title a:hover::after, .work-card__title a:hover::after, .of-links a:hover::after, .of-areas__nav a:hover::after,
.action:focus-visible::after, .project-card__title a:focus-visible::after, .work-card__title a:focus-visible::after, .of-links a:focus-visible::after, .of-areas__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* text that can wrap: a background line that grows under every line */
.j-body a, .j-next__link, .ct-email, .ct-phone, .next__link h2, .press-slide__link .press-card__title, .j-card__title {
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 2px;
  transition: background-size var(--wipe-time) var(--wipe-ease);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.j-body a:hover, .j-next__link:hover, .ct-email:hover, .ct-phone:hover, .next__link:hover h2, .j-body a:focus-visible, .j-next__link:focus-visible, .ct-email:focus-visible, .ct-phone:focus-visible, .next__link:focus-visible h2,
.press-slide__link:hover .press-card__title, .j-card:hover .j-card__title { background-size: 100% 2px; }
/* article links keep a faint resting underline so they still read as links */
.j-body a { background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent)); background-repeat: no-repeat; background-position: left bottom; background-size: 0 2px, 100% 2px; padding-bottom: 2px; }
.j-body a:hover, .j-body a:focus-visible { background-size: 100% 2px, 100% 2px; }
.press-slide__link .press-card__title, .j-card__title, .next__link h2, .j-next__link { width: fit-content; }
@media (prefers-reduced-motion: reduce) { .action::after, .project-card__title a::after, .work-card__title a::after, .of-links a::after, .of-areas__nav a::after { transition: none; } .j-body a, .j-next__link, .ct-email, .ct-phone, .next__link h2, .press-slide__link .press-card__title, .j-card__title { transition: none; } }
/* the underline on arrow links runs past the arrow's 10px slide */
.action::after { right: -10px; }
