/* ============================================================
   payraw.ca — sections.css
   Per-section styles. Builds on tokens defined in main.css.
   ============================================================ */


/* ------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------ */
.section--hero {
  /* Hero owns its own padding — overrides default .section rhythm */
  padding: 0;
  min-height: 100vh;
  min-height: 100svh; /* small viewport unit accounts for mobile chrome */
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 768px) {
  .section--hero {
    min-height: 85vh;
    min-height: 85svh;
  }
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter) var(--space-7);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: var(--space-10);
    padding-top: clamp(5rem, 12vh, 10rem);
    padding-bottom: var(--space-8);
  }
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: var(--fs-wordmark);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--color-fg);
}

.hero__positioning {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-positioning);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin-top: var(--space-5);
}

.hero__frontier {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-frontier);
  letter-spacing: 0.12em;
  color: var(--color-quiet);
  margin-top: var(--space-5);
  max-width: 38ch;
}

.hero__figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1023px) {
  .hero__figure { max-width: 440px; }
}

.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 3.5rem);
}

.hero__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-quiet);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.hero__socials a:hover,
.hero__socials a:focus-visible {
  color: var(--color-fg);
  transform: translateY(-1px);
}

.hero__socials svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* ------------------------------------------------------------
   2. Work — section shell + sub-blocks
   ------------------------------------------------------------ */
.section--work {
  /* default .section padding from main.css applies */
}

/* Tighten the between-subblock gap toward the ~80px brief target.
   main.css default is space-11 (128px); reducing here for Work. */
.section--work > .subblock {
  padding-block: var(--space-9) 0;
}
.section--work > .subblock:first-of-type {
  padding-top: 0;
}


/* ------------------------------------------------------------
   2.1 Worked with — brand logo strip with conditional marquee
   ------------------------------------------------------------ */
.worked-with__viewport {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center; /* centered when not overflowing */
}

.worked-with__viewport.is-marquee {
  justify-content: flex-start; /* track flush-left for scroll */
  /* Soft fade at horizontal edges so marquee feels intentional, not abrupt */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.worked-with__track {
  display: flex;
  align-items: center;
  gap: clamp(5rem, 9vw, 9rem);
  flex-shrink: 0;
}

.worked-with__viewport.is-marquee .worked-with__track {
  animation: worked-with-scroll 45s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .worked-with__viewport.is-marquee:hover .worked-with__track {
    animation-play-state: paused;
  }
}

@keyframes worked-with-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Most logos: single element (SVG or IMG) sized to a common 30px height. */
.worked-with__logo {
  display: block;
  flex-shrink: 0;
  height: 30px;
  width: auto;
  color: var(--color-fg);
  opacity: 0.9;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.worked-with__logo:hover { opacity: 1; }

/* Paired variant — used for Meta only: image mark + supporting text label. */
.worked-with__logo--paired {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
}

.worked-with__logo--paired .worked-with__logo-mark {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.worked-with__logo--paired .worked-with__logo-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .worked-with__logo { height: 24px; }
  .worked-with__logo--paired .worked-with__logo-text { font-size: 1rem; }
}


/* ------------------------------------------------------------
   2.2 Scale — dual-line chart, era annotations, count-up headline
   ------------------------------------------------------------ */
.scale__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.scale__highlight {
  color: var(--color-accent-red);
  font-weight: 700;
}

/* Tabular numerics so the count-up doesn't shift glyph widths. */
.scale__count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1ch;
  text-align: right;
}

.scale__chart {
  width: 100%;
  aspect-ratio: 1000 / 480; /* reserves space so JS-inserted SVG doesn't CLS */
}

.scale__chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* SVG text styled via CSS so it doesn't get crushed by viewBox scaling
   on mobile. Position attrs (x, y) still use viewBox units. */
.scale__chart text {
  font-family: var(--font-sans);
}

.scale__tick {
  font-size: clamp(9px, 1.05vw, 12px);
  fill: var(--color-muted);
}

.scale__annotation-label {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--color-muted);
}

.scale__legend-label {
  font-size: clamp(10px, 1.05vw, 12px);
  fill: var(--color-quiet);
}

.scale__line {
  will-change: stroke-dashoffset;
}

/* Reserve glyph slots for count-up elements so the surrounding sentence
   doesn't shift width as digits accumulate. Selector keys off final value. */
.scale__count,
.growth__count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  text-align: right;
}
[data-count-to="4"]   { min-width: 1ch; }
[data-count-to="10"]  { min-width: 2ch; }
[data-count-to="100"] { min-width: 3ch; }


/* ------------------------------------------------------------
   2.3 Growth — analytics cards + Follow→Following ✓ + bars
   ------------------------------------------------------------ */
.growth__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.growth__highlight {
  color: var(--color-accent-red);
  font-weight: 700;
}

/* Cards layout — stacked on mobile, two-up on tablet+ */
.growth__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Platform icon row — sits between the cards and the bar chart,
   signaling "growth is happening across these platforms" without
   forcing a 1:1 mapping to individual bars. */
.growth__platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.growth__platform-icon {
  width: 22px;
  height: 22px;
  color: var(--color-quiet);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .growth__platform-icon { width: 18px; height: 18px; }
}

@media (min-width: 768px) {
  .growth__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.growth__card {
  background: #131313;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 280px;
  position: relative;
}

.growth__card-header {
  margin-bottom: 0.5rem;
}

.growth__card-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.growth__card-number {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-fg);
}

.growth__card-suffix {
  /* Inherits parent font sizing */
}

.growth__card-sublabel {
  font-size: 0.875rem;
  color: var(--color-quiet);
  line-height: 1.45;
  margin-top: 0.5rem;
}

/* Impressions sparkline — sits at the bottom of the card */
.growth__sparkline {
  width: 100%;
  height: 50px;
  margin-top: auto;
  color: var(--color-accent-red);
  display: block;
}

.growth__sparkline-path {
  will-change: stroke-dashoffset;
}

/* Follow button — the signature interaction */
.growth__follow-btn {
  align-self: flex-start;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 42px;
  padding: 0 1.5rem;
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid var(--color-fg);
  background: var(--color-fg);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 450ms ease-out, color 450ms ease-out;
}

.growth__follow-btn-state {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: opacity 450ms ease-out;
}

.growth__follow-btn-state--follow    { opacity: 1; }
.growth__follow-btn-state--following { opacity: 0; }

.growth__follow-check {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.growth__follow-btn.is-following {
  background: transparent;
  color: var(--color-fg);
}

.growth__follow-btn.is-following .growth__follow-btn-state--follow    { opacity: 0; }
.growth__follow-btn.is-following .growth__follow-btn-state--following { opacity: 1; }


/* Bar chart — exponential growth per platform */
.growth__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.6vw, 1.25rem);
  height: 260px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.growth__bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.growth__bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.growth__bar {
  width: 100%;
  height: var(--bar-height, 0%);
  background: var(--color-accent-red);
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.growth__bar-group.is-pending .growth__bar { transform: scaleY(0); }
.growth__bar-group.is-revealed .growth__bar { transform: scaleY(1); }

@media (max-width: 768px) {
  .growth__bars { height: 200px; }
  .growth__card { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .growth__bar-group .growth__bar { transform: scaleY(1) !important; transition: none; }
  .growth__follow-btn {
    background: transparent;
    color: var(--color-fg);
  }
  .growth__follow-btn-state--follow    { opacity: 0; }
  .growth__follow-btn-state--following { opacity: 1; }
}


/* ------------------------------------------------------------
   2.4 AI — live counter + terminal-style agent feed
   ------------------------------------------------------------ */
.ai__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
}

.ai__subtext {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-quiet);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ai__live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-fg);
}

.ai__live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent-red);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(204, 41, 54, 0.7);
  animation: ai-live-core 1.4s ease-in-out infinite;
}

/* Expanding ring — the visible "ping" that radiates outward. */
.ai__live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent-red);
  animation: ai-live-ring 1.4s ease-out infinite;
}

@keyframes ai-live-core {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@keyframes ai-live-ring {
  0%   { transform: scale(1);    opacity: 0.6; }
  80%  { opacity: 0; }
  100% { transform: scale(3.4);  opacity: 0; }
}

.ai__counter {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Feed — contained rectangle, monospace, fixed height, lines flow up */
.ai__feed {
  position: relative;
  width: 100%;
  height: clamp(220px, 32vw, 300px);
  background: #060606;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem 1.25rem;
}

/* Top fade so lines feel like they scroll out of view */
.ai__feed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(to bottom, #060606 0%, rgba(6, 6, 6, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.ai__feed-list {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai__feed-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--color-quiet);
  opacity: 0;
  transition: opacity 350ms ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai__feed-line.is-visible {
  opacity: 1;
}

.ai__feed-time {
  color: var(--color-accent-red);
  margin-right: 0.75rem;
  font-weight: 500;
}

.ai__feed-text {
  color: var(--color-quiet);
}

@media (max-width: 768px) {
  .ai__feed-line { font-size: 0.75rem; }
  .ai__counter   { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ai__live-dot { animation: none; }
  .ai__live-dot::before { animation: none; }
  .ai__feed-line { opacity: 1 !important; transition: none !important; }
}


/* ------------------------------------------------------------
   2.5 Memetics — newspaper-spread serif, breathes more
   ------------------------------------------------------------ */
#memetics.subblock {
  /* Extra top space — this section is meant to breathe more than the others */
  padding-block-start: clamp(5rem, 9vw, 8rem);
}

/* Newspaper-spread layout — main column on the left, pull-quote on the right.
   Stacks below 900px so each gets its own breathing room on smaller screens. */
.memetics__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .memetics__layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
}

.memetics__opening {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--color-fg);
  max-width: 28ch;
  margin: 0 0 clamp(2.75rem, 5vw, 4.5rem);
}

.memetics__byline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.memetics__byline-list li {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-quiet);
}

.memetics__byline-source {
  font-style: italic;
  color: var(--color-fg);
}

.memetics__byline-sep {
  color: var(--color-muted);
  margin: 0 0.25rem;
  display: inline-block;
}

.memetics__byline-desc {
  color: var(--color-quiet);
}

/* Pull-quote sidebar — italic serif, no fussy borders, attribution
   as small uppercase tracked-out text. Pure newspaper. */
.memetics__pullquote {
  margin: 0;
  max-width: 22ch;
  padding-top: clamp(0.5rem, 1.5vw, 1.25rem);
}

.memetics__pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-fg);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.memetics__pullquote-cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .memetics__byline-list li { font-size: 1rem; }
}


/* ------------------------------------------------------------
   3. Capabilities — six-card horizontal scroll-snap carousel
   ------------------------------------------------------------ */
.capabilities__inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

.capabilities__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.capabilities__nav {
  display: flex;
  gap: 0.5rem;
}

.capabilities__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 200ms ease-out, color 200ms ease-out, opacity 200ms ease-out;
}

.capabilities__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.capabilities__arrow:hover {
  border-color: var(--color-fg);
}

.capabilities__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Scroll-snap track */
.capabilities__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  /* Hide scrollbar across browsers */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.capabilities__track::-webkit-scrollbar { display: none; }

.capabilities__track:focus-visible {
  outline: 2px solid var(--color-accent-yellow);
  outline-offset: 4px;
}

/* Card — square-ish, type-first, scroll-snapped */
.capability-card {
  flex: 0 0 clamp(260px, 30vw, 380px);
  aspect-ratio: 4 / 5;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  opacity: 0.7;
  transform: scale(0.97);
  transform-origin: center;
  transition:
    opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 350ms ease-out;
  cursor: default;
}

.capability-card.is-active,
.capability-card:hover {
  opacity: 1;
  transform: scale(1);
  border-color: #333;
}

/* Pre-reveal state for initial scroll-in animation */
.capability-card.is-pre-reveal {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.97) !important;
  transition: none !important;
}

.capability-card__glyph {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--color-fg);
}

.capability-card__body {
  margin-top: auto;
}

.capability-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  margin: 0 0 0.5rem;
}

.capability-card__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-quiet);
  margin: 0;
}

@media (max-width: 640px) {
  .capability-card { flex-basis: 78vw; }
  .capability-card__desc { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .capability-card.is-pre-reveal { opacity: 0.7 !important; transform: scale(0.97) !important; }
  .capabilities__track { scroll-behavior: auto; }
}


/* ------------------------------------------------------------
   4. About — light tonal flip (magazine spread within the site),
   narrow serif column + portrait sidebar.
   ------------------------------------------------------------ */
.section--about {
  background: #fafafa;
  color: #141414;
  padding-block: clamp(6rem, 12vw, 12rem);
}

.about__inner {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  /* On mobile, photo above, text below */
  grid-template-areas:
    "figure"
    "text";
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center; /* vertically center text against the portrait */
}

@media (min-width: 900px) {
  .about__inner {
    grid-template-columns: minmax(0, 380px) minmax(0, 620px);
    grid-template-areas: "figure text";
    gap: clamp(2.5rem, 5vw, 4.5rem);
    justify-content: center;
  }
}

.about__text {
  grid-area: text;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: #141414;
  letter-spacing: -0.005em;
}

.about__text p { margin: 0; }

.about__figure {
  grid-area: figure;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

@media (max-width: 899px) {
  .about__figure {
    max-width: 320px;
    /* Center the photo on mobile so it doesn't dominate */
    margin-inline: auto;
  }
}

.about__portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* ------------------------------------------------------------
   5. Contact — the arrival. Dark, with a red CTA.
   ------------------------------------------------------------ */
.section--contact {
  background: var(--color-bg);
  color: var(--color-fg);
  padding-block: clamp(6rem, 12vw, 11rem);
}

.contact__inner {
  max-width: 560px;
  margin-inline: auto;
}

.contact__headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-fg);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  opacity: 0;
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  transform: translateY(10px);
}

.section--contact.is-revealed .contact__headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.section--contact.is-revealed .contact__form {
  opacity: 1;
  transition-delay: 280ms;
}

.contact__field {
  display: flex;
  flex-direction: column;
}

.contact__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.78);
  margin-bottom: 0.55rem;
}

.contact__label-optional {
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.contact__input,
.contact__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 250, 250, 0.85);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.55rem 0;
  line-height: 1.5;
  transition: border-bottom-color 200ms ease-out;
  caret-color: var(--color-accent-red);
}

.contact__textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent-red);
}

.contact__input.is-invalid,
.contact__textarea.is-invalid {
  border-bottom-color: var(--color-accent-red);
}

/* Hide honeypot from humans visually and from accessibility tree */
.contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.contact__submit {
  background: var(--color-accent-red);
  color: var(--color-fg);
  border: none;
  border-radius: 0; /* sharp corners */
  padding: 1.1rem 2.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 200ms ease-out, transform 200ms ease-out;
  min-width: 140px;
  text-align: center;
}

.contact__submit:hover { background: #b8232f; }
.contact__submit:active { transform: translateY(1px); }
.contact__submit:disabled { opacity: 0.5; cursor: default; background: var(--color-accent-red); }

.contact__feedback {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-quiet);
  margin: 0;
  min-height: 1.25em;
}

.contact__feedback.is-error {
  color: var(--color-accent-red);
  font-weight: 500;
}

/* Reduced motion — skip the reveal, just show final state */
@media (prefers-reduced-motion: reduce) {
  .section--contact .contact__headline,
  .section--contact .contact__form { opacity: 1; transform: none; transition: none; }
}


/* ------------------------------------------------------------
   6. Footer — quiet single line + socials, near-black bg
   ------------------------------------------------------------ */
.footer {
  background: var(--color-bg);
  padding: clamp(2rem, 4vw, 2.75rem) var(--gutter);
  border-top: 1px solid #1a1a1a;
}

.footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

.footer__line {
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px per brief */
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.footer__line a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(102, 102, 102, 0.35);
  text-underline-offset: 2px;
  transition: color 200ms ease-out, text-decoration-color 200ms ease-out;
}

.footer__line a:hover {
  color: var(--color-fg);
  text-decoration-color: var(--color-fg);
}

.footer__socials {
  display: flex;
  gap: clamp(0.875rem, 1.8vw, 1.25rem);
  align-items: center;
}

.footer__socials a {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 200ms ease-out, transform 200ms ease-out;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
  color: var(--color-fg);
  transform: translateY(-1px);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Reduced motion: no scroll; allow wrapping if it doesn't fit */
@media (prefers-reduced-motion: reduce) {
  .worked-with__viewport {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .worked-with__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-5);
    animation: none !important;
  }
}
