/*
   Caradonna Construction Group, General Contractor
   Design system and page styles. No framework, no build step.

   Structure comes from spacing, background blocks and type weight.
   There are no rules, hairlines, borders or separator glyphs anywhere.
   The only outlines that remain are keyboard focus rings, which are an
   accessibility requirement rather than decoration.

   Colour policy: the interface is black and white throughout. The only
   colour on the page is the photography in the Recent work tiles and the
   About figure, so the work is the thing that carries it. The hero stays
   greyscaled so the headline reads cleanly over it.
*/

/* fonts */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* tokens */
:root {
  --ink: #0b0b0b;
  --ink-2: #141312;
  --ink-3: #1c1b19;
  --ink-4: #232220;
  --paper: #f7f6f3;
  --paper-2: #edece7;
  --paper-3: #e4e2dc;
  --muted: #63615c;
  --muted-dark: #a5a29b;

  /* Black and white only. "accent" is the strong mark for the current
     surface: ink on light, paper on dark. It flips per section, so every
     component below stays correct without a second set of rules. */
  --accent: #0b0b0b;
  --accent-fg: #f7f6f3;
  --accent-hi: #000000;
  --accent-sweep: #3d3b36;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --wrap: 1420px;
  --gut: clamp(1.25rem, 4.4vw, 4.5rem);

  --fs-display: clamp(2.15rem, 8.6vw, 6.6rem);
  --fs-h2: clamp(1.95rem, 4.4vw, 3.6rem);
  --fs-lede: clamp(1.02rem, 0.95rem + 0.5vw, 1.32rem);
  --fs-body: clamp(0.985rem, 0.95rem + 0.16vw, 1.075rem);
  --fs-sm: 0.875rem;
  --fs-eyebrow: 0.7rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.pillnav :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(11, 11, 11, 0.9);
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; }

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

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: var(--muted-dark); }

/* section index */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 3.2vw, 3rem);
}
.sec-head__num {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sec-head__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--muted);
}
.on-dark .sec-head__label { color: var(--muted-dark); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.033em;
  text-wrap: balance;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.on-dark .lede { color: var(--muted-dark); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.on-dark { background: var(--ink); color: var(--paper); }

.on-dark,
.hero,
.footer,
.header,
.pillnav {
  --accent: #f7f6f3;
  --accent-fg: #0b0b0b;
  --accent-hi: #ffffff;
  --accent-sweep: #c9c6be;
}
.header.is-solid {
  --accent: #0b0b0b;
  --accent-fg: #f7f6f3;
  --accent-hi: #000000;
  --accent-sweep: #3d3b36;
}

/* buttons: filled, no outlines */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.795rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.32s var(--ease), background 0.32s var(--ease),
    transform 0.18s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--btn-sweep, var(--ink));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
  --btn-sweep: var(--accent-sweep);
}

.btn--outline {
  --btn-bg: var(--paper-3);
  --btn-fg: var(--ink);
  --btn-sweep: var(--ink);
}
.btn--outline:hover,
.btn--outline:focus-visible { color: var(--paper); }

.btn--ghost {
  --btn-bg: rgba(247, 246, 243, 0.12);
  --btn-fg: var(--paper);
  --btn-sweep: rgba(247, 246, 243, 0.26);
}

/* header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  transition: color 0.4s var(--ease);
}
.brand__mark,
.brand__word {
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.brand__mark {
  width: 34px;
  aspect-ratio: 1;
  -webkit-mask-image: url("../img/logo-mark-light.webp?v=6");
  mask-image: url("../img/logo-mark-light.webp?v=6");
}
.brand__word {
  width: 146px;
  aspect-ratio: 5.155;
  -webkit-mask-image: url("../img/logo-word-light.webp?v=6");
  mask-image: url("../img/logo-word-light.webp?v=6");
}
@media (max-width: 400px) {
  .brand__mark { width: 30px; }
  .brand__word { width: 122px; }
}
.footer__brand .brand__mark { width: 44px; }
.footer__brand .brand__word { width: 190px; }

.nav { display: flex; align-items: center; gap: clamp(0.4rem, 1vw, 1rem); }
.nav__link {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.74);
  background: transparent;
  transition: color 0.28s var(--ease), background 0.28s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
  background: rgba(247, 246, 243, 0.12);
}
.nav__link[aria-current="true"] {
  color: var(--accent-fg);
  background: var(--accent);
}

.header__cta { display: inline-flex; gap: 0.5rem; }
.header .btn { min-height: 44px; padding: 0.65rem 1.3rem; font-size: 0.72rem; }

.header.is-solid {
  background: rgba(247, 246, 243, 0.93);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 8px 30px rgba(11, 11, 11, 0.07);
}
.header.is-solid .brand { color: var(--ink); }
.header.is-solid .nav__link { color: var(--muted); }
.header.is-solid .nav__link:hover,
.header.is-solid .nav__link:focus-visible {
  color: var(--ink);
  background: var(--paper-3);
}
.header.is-solid .nav__link[aria-current="true"] { color: var(--accent-fg); background: var(--accent); }
.header.is-solid .btn--ghost {
  --btn-bg: var(--paper-3);
  --btn-fg: var(--ink);
  --btn-sweep: var(--ink);
}
.header.is-solid .btn--ghost:hover { color: var(--paper); }

@media (max-width: 900px) {
  .header__inner { min-height: 64px; }
  .nav,
  .header__cta { display: none; }
}

/* hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: 8rem;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.94);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(178deg, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0.42) 34%,
      rgba(11, 11, 11, 0.74) 74%, rgba(11, 11, 11, 0.96) 100%),
    linear-gradient(94deg, rgba(11, 11, 11, 0.86) 0%, rgba(11, 11, 11, 0.3) 62%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--grain);
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

/* centred hero variant */
.hero__inner--center { text-align: center; align-items: center; }
.hero__inner--center .hero__eyebrow,
.hero__inner--center .hero__actions,
.hero__inner--center .hero__direct { justify-content: center; }
.hero__inner--center .hero__title,
.hero__inner--center .hero__sub,
.hero__inner--center .hero__lede { margin-inline: auto; }
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.1rem;
  color: rgba(247, 246, 243, 0.82);
  margin-bottom: clamp(1.1rem, 2vw, 1.8rem);
}
.hero__eyebrow .serif { color: var(--accent-hi); letter-spacing: 0.02em; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 630;
  line-height: 0.94;
  letter-spacing: -0.042em;
  max-width: 20ch;
  color: #fff;
  margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
  text-wrap: balance;
}

/* the elegant second line, set in the serif that echoes the logo wordmark */
.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
  color: rgba(247, 246, 243, 0.94);
  max-width: 24ch;
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
  text-wrap: balance;
}

.hero__lede {
  max-width: 62ch;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1.02rem);
  line-height: 1.62;
  color: rgba(247, 246, 243, 0.74);
  letter-spacing: -0.006em;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.9rem, 3.2vw, 2.6rem);
}
.hero__direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.5rem;
  margin-top: 1.4rem;
  font-size: var(--fs-sm);
  color: rgba(247, 246, 243, 0.74);
}
.hero__direct > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  transition: color 0.3s var(--ease);
}
.hero__direct > a:hover { color: #fff; }
.hero__phone { font-weight: 650; letter-spacing: 0.02em; color: #fff; }

.hero__rail {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.hero__rail ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  text-align: center;
}
.hero__inner--center + .hero__rail li,
.hero__rail li {
  padding: 0.85rem 1rem;
  background: rgba(247, 246, 243, 0.09);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.86);
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 4.75rem; }
  .hero__inner { padding-block: 3.5rem 2.25rem; }
  .hero__title { max-width: 16ch; }
  .hero__sub { max-width: 20ch; }
  .hero__rail ul { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* services */
.svc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.svc-list { display: grid; gap: clamp(0.6rem, 1.2vw, 1rem); }
.svc {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.15rem, 2vw, 2rem);
  background: var(--paper-2);
  transition: background 0.4s var(--ease);
}
.svc:hover { background: var(--paper-3); }
.svc__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.45rem;
}
.svc__title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.06;
}
.svc__desc {
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.55;
}
.svc__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.svc__items li {
  padding: 0.45rem 0.9rem;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: -0.012em;
  color: #26251f;
}

@media (max-width: 900px) {
  .svc-intro { grid-template-columns: 1fr; align-items: start; }
  .svc { grid-template-columns: 3rem minmax(0, 1fr); }
  .svc__items { grid-column: 2; padding-top: 1rem; }
}
@media (max-width: 460px) {
  .svc { grid-template-columns: 1fr; gap: 0.35rem; }
  .svc__items { grid-column: 1; }
  .svc__num { padding-top: 0; }
}

/* projects */
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.work-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted-dark);
  max-width: 34ch;
  line-height: 1.45;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-3);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}
.tile:hover img { transform: scale(1.035); }
.tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem clamp(0.9rem, 1.5vw, 1.35rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0));
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.92);
}
.tile__cap em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-dark);
}
.t-a { grid-column: span 7; aspect-ratio: 4 / 3; }
.t-b { grid-column: span 5; aspect-ratio: 4 / 3; }
.t-c { grid-column: span 4; aspect-ratio: 4 / 3; }
.t-d { grid-column: span 4; aspect-ratio: 4 / 3; }
.t-e { grid-column: span 4; aspect-ratio: 4 / 3; }

@media (max-width: 900px) {
  .t-a, .t-b { grid-column: span 12; }
  .t-c, .t-d, .t-e { grid-column: span 6; }
}
@media (max-width: 560px) {
  .t-c, .t-d, .t-e { grid-column: span 12; }
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.about-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-fig figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-body > * + * { margin-top: 1.35rem; }
.about-statement {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.24;
  letter-spacing: -0.028em;
  font-weight: 500;
  text-wrap: pretty;
}
.about-statement em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.about-body p { color: var(--muted); max-width: 62ch; }

.todo {
  background: var(--paper-2);
  padding: 1.15rem 1.35rem;
  font-size: var(--fs-sm);
  color: #4a4844;
  max-width: 62ch;
}
.todo strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.on-dark .todo { background: rgba(255, 255, 255, 0.06); color: var(--muted-dark); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-fig img { aspect-ratio: 16 / 10; }
}

/* credentials */
.creds {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.cred {
  padding: clamp(1.35rem, 2.2vw, 1.85rem) clamp(1.15rem, 1.8vw, 1.6rem);
  background: var(--paper-2);
}
.cred__k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred__v {
  margin-top: 0.5rem;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.018em;
  line-height: 1.3;
}
.cred__n { margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); }

/* service area */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.area-list li {
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 800px) { .area-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.25rem, 5vw, 5.5rem);
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.direct { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: 0.6rem; }
.direct__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1.15rem clamp(1rem, 1.8vw, 1.5rem);
  background: rgba(247, 246, 243, 0.07);
}
.direct__k {
  flex: none;
  width: 4.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.direct__v {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 560;
  letter-spacing: -0.022em;
  color: #fff;
  transition: color 0.3s var(--ease);
  word-break: break-word;
}
.direct__v:hover { color: var(--accent-hi); }
.direct__v--addr {
  display: block;
  min-height: 0;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 520;
  line-height: 1.45;
  letter-spacing: -0.014em;
}
.direct__v--addr:hover { color: #fff; }
.direct__acts { display: flex; gap: 0.4rem; margin-left: auto; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 46px;
  min-height: 46px;
  padding: 0 0.85rem;
  background: rgba(247, 246, 243, 0.12);
  color: rgba(247, 246, 243, 0.9);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.iconbtn:hover { background: rgba(247, 246, 243, 0.24); color: #fff; }
.iconbtn svg { width: 16px; height: 16px; flex: none; }
.iconbtn.is-copied { background: var(--accent); color: var(--accent-fg); }

/* form */
.form {
  background: rgba(255, 255, 255, 0.05);
  padding: clamp(1.35rem, 3vw, 2.5rem);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem clamp(0.9rem, 2vw, 1.5rem);
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.field label .req { color: var(--accent-hi); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.95rem;
  background: rgba(11, 11, 11, 0.62);
  color: var(--paper);
  font-size: 0.97rem;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease);
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 246, 243, 0.38); }
.field input:hover,
.field select:hover,
.field textarea:hover { background: rgba(11, 11, 11, 0.78); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: rgba(11, 11, 11, 0.92);
  box-shadow: inset 0 0 0 100vmax rgba(247, 246, 243, 0.08);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a5a29b' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field select option { background: #141312; color: var(--paper); }

.choice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.2rem;
  background: rgba(247, 246, 243, 0.1);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(247, 246, 243, 0.88);
  text-transform: uppercase;
  font-weight: 650;
  transition: background 0.26s var(--ease), color 0.26s var(--ease);
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}
.choice label:hover { background: rgba(247, 246, 243, 0.2); }
.choice label:has(input:checked) { background: var(--accent); color: var(--accent-fg); }
.choice label:has(input:focus-visible) {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.form__note { font-size: 0.78rem; color: var(--muted-dark); max-width: 34ch; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-success {
  display: none;
  background: rgba(247, 246, 243, 0.12);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-success.is-visible { display: block; }
.form-success h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 620;
  letter-spacing: -0.028em;
  margin-bottom: 0.6rem;
}
.form-success p { color: rgba(247, 246, 243, 0.86); max-width: 46ch; }
.form-success .btn { margin-top: 1.4rem; }
.form.is-hidden { display: none; }

@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* footer */
.footer {
  background: var(--ink-2);
  color: var(--paper);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
/* a long email address must wrap rather than widen the grid */
.footer__top > * { min-width: 0; }
.footer__list a,
.footer__list span { overflow-wrap: anywhere; }
.footer__brand .brand { color: var(--paper); }
.footer__blurb {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted-dark);
  max-width: 34ch;
}
.footer h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 1rem;
}
.footer__list li + li { margin-top: 0.35rem; }
.footer__list a,
.footer__list span {
  display: inline-block;
  padding-block: 0.3rem;
  min-height: 26px;
  font-size: 0.92rem;
  color: rgba(247, 246, 243, 0.84);
  transition: color 0.26s var(--ease);
}
.footer__list a:hover { color: var(--accent-hi); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.79rem;
  color: var(--muted-dark);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__bottom a {
  display: inline-block;
  padding-block: 0.3rem;
  min-height: 26px;
  transition: color 0.26s var(--ease);
}
.footer__bottom a:hover { color: var(--paper); }
.footer__credit { color: var(--muted-dark); }
.footer__credit a { color: rgba(247, 246, 243, 0.86); font-weight: 600; }

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) { .footer { padding-bottom: 7.5rem; } }

/* mobile pill nav */
.pillnav {
  position: fixed;
  left: 50%;
  bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  width: min(calc(100vw - 1.6rem), 30rem);
  display: none;
}
@media (max-width: 900px) { .pillnav { display: block; } }

.pillnav__shell {
  background: rgba(14, 14, 14, 0.93);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: border-radius 0.46s var(--ease), background 0.46s var(--ease);
}
.pillnav.is-open .pillnav__shell {
  border-radius: 26px;
  background: rgba(12, 12, 12, 0.97);
}
.pillnav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.46s var(--ease);
}
.pillnav.is-open .pillnav__panel { grid-template-rows: 1fr; }
.pillnav__panelInner { overflow: hidden; min-height: 0; }
.pillnav__links { padding: 0.75rem 0.6rem 0.35rem; }
.pillnav__links li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}
.pillnav.is-open .pillnav__links li {
  opacity: 1;
  transform: none;
  transition-delay: calc(80ms + var(--i, 0) * 42ms);
}
.pillnav__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: rgba(247, 246, 243, 0.9);
  transition: background 0.24s var(--ease), color 0.24s var(--ease);
}
.pillnav__links a:active,
.pillnav__links a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.pillnav__links a[aria-current="true"] { background: var(--accent); color: var(--accent-fg); }

.pillnav__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
}
.pillnav__toggle,
.pillnav__icon,
.pillnav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.26s var(--ease), color 0.26s var(--ease);
}
.pillnav__toggle { padding: 0 1.1rem; }
.pillnav__icon { width: 48px; flex: none; }
.pillnav__icon svg { width: 19px; height: 19px; }
.pillnav__toggle:active,
.pillnav__icon:active { background: rgba(255, 255, 255, 0.12); }
.pillnav__cta {
  margin-left: auto;
  padding: 0 1.3rem;
  background: var(--accent);
  color: var(--accent-fg);
}
.pillnav__cta:active { background: var(--accent-sweep); }

.burger { width: 16px; height: 16px; position: relative; flex: none; }
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.42s var(--ease), opacity 0.24s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-6px); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(6px); }
.pillnav.is-open .burger span:nth-child(1) { transform: translate(-50%, -50%) translateX(-6px); }
.pillnav.is-open .burger span:nth-child(2) { opacity: 0; }
.pillnav.is-open .burger span:nth-child(3) { transform: translate(-50%, -50%) translateX(6px); }

.pillnav__scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(6, 6, 6, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.pillnav__scrim.is-visible { opacity: 1; visibility: visible; }

/* copy toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 12px);
  z-index: 90;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 900px) { .toast { bottom: 5.5rem; } }

/* reveals */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover img { transform: none; }
}

/* scroll offset for the fixed header */
[id] { scroll-margin-top: 92px; }
@media (max-width: 900px) { [id] { scroll-margin-top: 76px; } }

/* simple pages */
.page {
  min-height: 70svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 14vw, 11rem);
}
.page h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}
.page .lede { max-width: 52ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -0.022em;
  margin-top: 2.4rem;
}
.prose p, .prose li { color: var(--muted); max-width: 68ch; }
.prose ul { list-style: none; padding-left: 0; }
.prose li { padding: 0.5rem 0.9rem; background: var(--paper-2); }
.prose li + li { margin-top: 0.4rem; }
