/* ARR Built — marketing site
   Charcoal / black / white — MOD-leaning neutrals */

:root {
  --ink: #1c1b1a;
  --ink-soft: #3d3a37;
  --muted: #6b6560;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --line: #e8e8e8;
  --white: #ffffff;
  --accent: #1c1b1a;
  --accent-dark: #0a0a09;
  --accent-soft: #d9d3cb;
  --gold: #8a857c;
  --header-h: 4.25rem;
  --radius: 0;
  --shadow: none;
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: "Outfit", "Poppins", system-ui, sans-serif;
  --font-alt: "Outfit", "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header — transparent over hero (white), solid on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  color: var(--white);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(28, 27, 26, 0.04);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-stack-top {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  font-weight: 600;
}

.logo-stack-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.78;
  margin-top: 0.15rem;
}

.site-header.is-over-hero .logo-stack-sub {
  opacity: 0.85;
}

/* Image logo (from ARR company profile): white over hero, dark on white header */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.logo-img--dark {
  display: none;
}

.site-header.is-scrolled .logo-img--white {
  display: none;
}

.site-header.is-scrolled .logo-img--dark {
  display: block;
}

@media (max-width: 720px) {
  .logo-img {
    height: 34px;
  }
}

/* MOD-style: hamburger always; links in overlay panel */
.site-nav {
  position: fixed;
  inset: 0 0 auto auto;
  top: var(--header-h);
  right: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: min(18rem, 86vw);
  padding: 0.75rem 1rem 1.25rem;
  background: rgba(28, 27, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body.nav-open .site-nav {
  display: flex;
}

.site-header.is-scrolled .site-nav {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(28, 27, 26, 0.08);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-header.is-scrolled .site-nav a {
  color: var(--ink-soft);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit; /* follow header: white over hero, ink on white header */
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 0;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Typography helpers */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-light {
  color: rgba(247, 244, 239, 0.65);
}


.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 38rem;
}

.section-head h2,
.why-intro h2,
.contact-copy h2 {
  font-family: var(--font-alt);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  text-rendering: geometricPrecision;
}

.section-head h2,
.why-intro h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.section-note {
  margin: 0;
  max-width: 16rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-accent {
  background: var(--white);
  color: var(--ink);
}

.btn-accent:hover {
  background: #f2f2f2;
}


/* Hero — MOD full-viewport, centered caps, photo-dominant */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 0;
  color: var(--white);
  overflow: hidden;
  background: #1c1b1a;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0; /* own stacking context: slides stay under the scrim */
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.92) saturate(0.95);
}

/* Crossfade: incoming slide fades in over the outgoing one (no dark dip) */
.hero-slide {
  opacity: 0;
  z-index: 0;
}

.hero-slide.is-prev {
  opacity: 1;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1s ease-in-out;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* subtle wash only — keep photo dominant like MOD;
     soft centre shade keeps the title legible on light slides */
  background:
    linear-gradient(to bottom, rgba(12, 11, 10, 0.25), rgba(12, 11, 10, 0) 22%),
    radial-gradient(ellipse 70% 32% at 50% 52%, rgba(12, 11, 10, 0.2), rgba(12, 11, 10, 0) 72%),
    rgba(12, 11, 10, 0.28);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 0 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0 auto clamp(1.125rem, 2.2vw, 1.5rem);
  max-width: none;
  line-height: 0;
  color: var(--white);
}

/* Hero title = the real "Arr." wordmark (white SVG), sized like a display title */
.hero-logo {
  display: block;
  width: min(40vw, 280px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 1px 14px rgba(0, 0, 0, 0.28));
}

.hero-sub {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

/* Rotating service line: all items share one grid cell, so height never changes */
.hero-rotator {
  display: grid;
  justify-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-service {
  grid-area: 1 / 1;
  padding-left: 0.22em; /* optically re-centre (trailing tracking) */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-service.is-active {
  opacity: 1;
  transition: opacity 0.5s ease 0.5s; /* out 0.5s, then in 0.5s = 1s change */
}

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


/* Services — MOD WORLD BUILDERS manifesto */
.services.manifesto {
  background: var(--white);
  padding: clamp(5.5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.manifesto-inner {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.manifesto-label {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--font-alt);
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.manifesto-lines {
  display: grid;
  gap: clamp(0.55rem, 1.4vw, 0.85rem);
  margin: 0 auto clamp(3.25rem, 7vw, 4.75rem);
}

.manifesto-lines p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2.6vw, 1.65rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
}

.service-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 50rem;
  margin-inline: auto;
}

.service-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  color: var(--ink);
  border-radius: 0;
}

.service-icon svg {
  display: block;
  border-radius: 0;
}

.service-icon-label {
  font-family: var(--font-alt);
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink);
}

/* Projects — MOD asymmetric mosaic, thin white gutters */
.projects {
  background: var(--white);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 0;
}

.projects-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 40rem;
}

.projects-head h2 {
  font-family: var(--font-alt);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.project-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, 14vw);
  gap: 4px;
  width: 100%;
  background: var(--white);
  padding: 0;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #1c1b1a;
  min-height: 0;
}

.mosaic-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
}

.mosaic-tile:hover img {
  transform: scale(1.03);
}

.mosaic-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 11, 10, 0.72) 100%);
  color: var(--white);
  pointer-events: none;
}

.mosaic-label h3,
.mosaic-text-inner h3 {
  margin: 0;
  font-family: var(--font-alt);
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--white);
}

.mosaic-label p,
.mosaic-text-inner p {
  margin: 0.35rem 0 0;
  font-size: clamp(0.58rem, 0.95vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* Asymmetric spans — 5 photos + 1 text tile */
.mosaic-tall {
  grid-column: 1 / span 5;
  grid-row: 1 / span 3;
}

.mosaic-mid {
  grid-column: 6 / span 7;
  grid-row: 1 / span 2;
}

.mosaic-text {
  grid-column: 6 / span 4;
  grid-row: 3 / span 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 45%),
    #2a2826;
}

.mosaic-text-inner {
  text-align: center;
  padding: 1rem;
}

.mosaic-text-inner h3 {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  letter-spacing: 0.16em;
}

.mosaic-sq:nth-of-type(4) {
  grid-column: 10 / span 3;
  grid-row: 3 / span 1;
}

.mosaic-sq:nth-of-type(5) {
  grid-column: 1 / span 4;
  grid-row: 4 / span 2;
}

.mosaic-wide {
  grid-column: 5 / span 8;
  grid-row: 4 / span 2;
}

/* Why ARR */
.why {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.why-lead {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  display: grid;
  gap: 0.3rem;
  padding: 1.35rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.why-list li:last-child {
  border-bottom: 0;
}

.why-list strong {
  font-size: 1.05rem;
  font-weight: 650;
}

.why-list span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.contact-panel {
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: none;
}

.contact-copy {
  max-width: 36rem;
}

.contact-copy h2 {
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.contact-copy p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: grid;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
}

.contact-details span:not(.contact-label),
.contact-details a {
  color: rgba(247, 244, 239, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-credits {
  display: grid;
  gap: 0.25rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-team {
  font-size: 0.78rem !important;
  color: var(--muted);
  opacity: 0.9;
}

.footer-inner a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-icons {
    gap: 1.25rem;
  }

  .project-mosaic {
    grid-auto-rows: minmax(110px, 18vw);
  }

  .mosaic-tall {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
  }

  .mosaic-mid {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
  }

  .mosaic-text {
    grid-column: 1 / span 6;
    grid-row: 3 / span 1;
  }

  .mosaic-sq:nth-of-type(4) {
    grid-column: 7 / span 6;
    grid-row: 3 / span 1;
  }

  .mosaic-sq:nth-of-type(5) {
    grid-column: 1 / span 6;
    grid-row: 4 / span 1;
  }

  .mosaic-wide {
    grid-column: 7 / span 6;
    grid-row: 4 / span 1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 1.75rem));
  }

  /* nav: always hamburger overlay (see header) */

  .service-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.25rem;
    max-width: 22rem;
  }

  .service-icons li {
    justify-content: flex-start;
  }

  .manifesto-lines p {
    letter-spacing: 0.04em;
  }

  .project-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(160px, 42vw);
    gap: 3px;
  }

  .mosaic-tall,
  .mosaic-mid,
  .mosaic-text,
  .mosaic-sq:nth-of-type(4),
  .mosaic-sq:nth-of-type(5),
  .mosaic-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .mosaic-tall {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 52vw;
  }

  .mosaic-wide {
    grid-column: 1 / -1;
  }

  .mosaic-text {
    grid-column: 1 / -1;
    min-height: 28vw;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Learn — listing, article, homepage teaser
   White page, black/neutral type, hairlines only, radius 0.
   ========================================================================== */

/* Sub-pages have no hero: header is always solid */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.learn-page main {
  padding-top: var(--header-h);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.learn-label {
  margin: 0;
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Learn — listing */
.learn-hero {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.learn-hero h1 {
  margin: 0;
  font-family: var(--font-alt);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.learn-intro {
  text-wrap: balance;
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.learn-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
}

.learn-filters li {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.learn-filters li.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 1px;
}

.learn-list {
  list-style: none;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4.5rem, 9vw, 7rem);
  max-width: 52rem;
}

.learn-card {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.learn-card a {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  text-decoration: none;
  color: inherit;
}

.learn-card h2 {
  margin: 0;
  font-family: var(--font-alt);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.learn-card p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.learn-card .learn-meta {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.learn-card-more {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.learn-card a:hover h2,
.learn-card a:focus-visible h2 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}


.learn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.learn-meta .learn-label {
  color: var(--ink);
}

/* Learn — article */
.article {
  width: min(680px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6rem);
}

.article-back {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.article-back:hover {
  color: var(--ink);
}

.article-head {
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin: 1.1rem 0 1.25rem;
  font-family: var(--font-alt);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--ink);
}

.article-dek {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body h2 {
  margin: 2.6em 0 0.8em;
  font-family: var(--font-alt);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.article-body em {
  font-style: italic;
}

.article-body a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.article-checklist {
  list-style: none;
  counter-reset: check;
  margin: 0 0 2em;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.article-checklist li {
  counter-increment: check;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.article-checklist li::before {
  content: counter(check, decimal-leading-zero);
  font-family: var(--font-alt);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.article-cta {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
}

.article-cta h2 {
  margin: 0.75rem 0 0.6rem;
  font-family: var(--font-alt);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
}

.article-cta p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-cta .btn {
  border-radius: 0;
}

.article-cta .btn-ghost {
  border-color: var(--ink);
}

.article-sources {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-sources ol {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-sources li {
  margin-bottom: 0.7rem;
  padding-left: 0.25rem;
  overflow-wrap: anywhere;
}

.article-sources a {
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* Learn — article figures, comparison table, claim labels (used by guides with images) */
.guide-figure {
  margin: 2.2em 0 2.4em;
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.guide-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.guide-figure-stack {
  display: grid;
  gap: 0.75rem;
}

.guide-figure-item {
  position: relative;
}

.guide-figure-tag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  padding: 0.3rem 0.55rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-alt);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-figure-tag--dark {
  background: var(--ink);
  color: var(--white);
}

.guide-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.claim-label {
  font-size: 0.85em;
  color: var(--muted);
}

.guide-table-wrap {
  margin: 0 0 1.6em;
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.guide-table th,
.guide-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table thead th {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-alt);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guide-table tbody th {
  font-family: var(--font-alt);
  font-weight: 500;
}

@media (max-width: 720px) {
  .guide-table {
    font-size: 0.82rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 0.65rem 0.4rem;
  }
}

/* Learn — homepage teaser */
.learn-teaser {
  background: var(--white);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.learn-teaser .manifesto-label {
  margin-bottom: 1.25rem;
}

.learn-teaser-line {
  text-wrap: balance;
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.learn-teaser-feature {
  display: block;
  max-width: 40rem;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 1.75rem 0;
  border-block: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.learn-teaser-feature .learn-meta {
  justify-content: center;
}

.learn-teaser-feature strong {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-alt);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
}

/* Several guides stacked: share one hairline between items */
.learn-teaser-feature + .learn-teaser-feature {
  margin-top: 0;
  border-top: 0;
}

.learn-teaser-feature:hover strong,
.learn-teaser-feature:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.learn-teaser-all {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
}

@media (max-width: 720px) {
  .article {
    width: calc(100% - 1.75rem);
  }

  .learn-filters {
    gap: 0.5rem 1.5rem;
  }

  .article-cta-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Projects — homepage tile links, /projects/ index, project pages
   MOD-leaning: white, black/neutral, hairlines, radius 0, thin white gutters.
   ========================================================================== */

/* Homepage mosaic: whole tile is a link; layout unchanged */
.mosaic-link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  text-decoration: none;
}

.mosaic-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0);
  transition: background 0.35s var(--ease);
  pointer-events: none;
}

.mosaic-link:hover::after,
.mosaic-link:focus-visible::after {
  background: rgba(12, 11, 10, 0.18);
}

.mosaic-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -6px;
}

.mosaic-link:focus-visible img {
  transform: scale(1.03);
}

.mosaic-view {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-family: var(--font-alt);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  display: none;
}

@media (hover: hover) and (min-width: 900px) {
  .mosaic-view {
    display: block;
  }

  .mosaic-link:hover .mosaic-view,
  .mosaic-link:focus-visible .mosaic-view {
    opacity: 1;
    transform: none;
  }
}

.projects-all-wrap {
  display: flex;
  justify-content: flex-end;
  padding-block: 1.25rem 0;
}

.projects-all {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
}

.projects-all:hover {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
}

/* /projects/ index */
.project-filters a {
  color: inherit;
  text-decoration: none;
}

.project-filters a:hover {
  color: var(--ink);
}

.project-group {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: var(--header-h);
}

.project-group:last-of-type {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.project-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-group-title span {
  color: var(--muted);
  font-weight: 500;
}

.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 4px;
}

.project-card a {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.project-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1b1a;
  margin-bottom: 0.55rem;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
}

.project-card a:hover .project-card-media img,
.project-card a:focus-visible .project-card-media img {
  transform: scale(1.03);
  opacity: 0.88;
}

.project-card a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.project-card-name {
  font-family: var(--font-alt);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-right: 0.5rem;
}

.project-card-loc {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Project page */
.project-hero {
  position: relative;
  height: clamp(24rem, 78svh, 56rem);
  overflow: hidden;
  background: #1c1b1a;
  color: var(--white);
}

.project-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.08) 0%, rgba(12, 11, 10, 0.1) 45%, rgba(12, 11, 10, 0.62) 100%);
  pointer-events: none;
}

.project-hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.75rem, 5vw, 3.5rem);
  z-index: 1;
}

.project-hero-cat,
.project-hero-loc {
  margin: 0;
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.project-hero h1 {
  margin: 0.6rem 0 0.7rem;
  max-width: 22ch;
  font-family: var(--font-alt);
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
  overflow-wrap: break-word;
}

.project-intro {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0 clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ink);
}

.project-fact {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.project-fact dt {
  margin: 0 0 0.4rem;
  font-family: var(--font-alt);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-fact dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.project-desc {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.project-gallery {
  columns: 3;
  column-gap: 4px;
  padding-inline: 4px;
}

.project-gallery.is-single {
  columns: 1;
  max-width: 1120px;
  margin-inline: auto;
}

.project-gallery-item {
  margin: 0 0 4px;
  break-inside: avoid;
  background: #f3f3f3;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
}

.project-pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--ink);
}

.project-back,
.project-next-label {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.project-back:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.project-next {
  display: grid;
  gap: 0.35rem;
  text-align: right;
  text-decoration: none;
  color: var(--ink);
  max-width: 60%;
}

.project-next-name {
  font-family: var(--font-alt);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-next:hover .project-next-name {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.project-contact {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

@media (max-width: 1099px) {
  .project-gallery {
    columns: 2;
  }
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-hero {
    height: clamp(22rem, 66svh, 40rem);
  }

  .project-hero h1 {
    letter-spacing: 0.05em;
  }

  .project-grid {
    gap: 1.6rem 3px;
  }

  .project-card-name {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .project-card-loc {
    font-size: 0.6rem;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-fact {
    padding-right: 0;
  }

  .project-gallery {
    columns: 1;
    column-gap: 3px;
    padding-inline: 0;
  }

  .project-gallery-item {
    margin-bottom: 3px;
  }

  .project-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .project-next {
    text-align: left;
    max-width: none;
    order: -1;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }
}
