/* John Pajegal portfolio. Ink on grid paper; colours match the logo kit. */

/* Archivo and Gochi Hand, both SIL Open Font License (free for commercial and logo use) */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Gochi Hand";
  src: url("fonts/gochi-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #ebebea;
  --grid: #d5d5d3;
  --white: #ffffff;
  --muted: #55554f;         /* 6.4:1 on paper */
  --muted-dark: #c9c9c6;    /* on ink */
  --line-dark: #3a3a37;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 60px;
  --font: "Archivo", "Arial Black", Arial, sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 2px); }

.paper-grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.hand-arrow {
  display: inline-block;
  width: 0.7em;
  height: 1em;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand-arrow.is-up { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  --shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  font: 800 15px/1 var(--font);
  font-stretch: 110%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s, color 0.18s;
}

.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--shadow); }
.btn:active { transform: none; box-shadow: none; }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--white); }
.btn-paper { --shadow: var(--white); background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-weight: 700;
  font-stretch: 105%;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-cta { min-height: 40px; padding: 0 16px; font-size: 13px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 800 14px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: calc(var(--nav-h) + 2px) 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(40px, 12vw, 72px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-menu .hand { margin: 0; transform: rotate(-3deg); }

@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 2px solid var(--ink);
}

.hero-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.hero-labels p {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 30px);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Face position inside the logo image (from logo/layout.json), used to aim the note */
.hero-logo {
  --face-x: 13.8%;
  --face-bottom: 94.3%;
  position: relative;
  margin: clamp(28px, 4.5vw, 52px) 0 0;
}

.hero-logo img { width: 100%; }

.hero-note {
  position: absolute;
  left: var(--face-x);
  top: var(--face-bottom);
  display: flex;
  align-items: flex-end;
  gap: 0.1em;
  margin-top: 0.2em;
  transform: translateX(-0.42em);
  font-family: var(--hand);
  font-size: clamp(20px, 2.9vw, 40px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hero-note svg {
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-note .arrow-up { width: 1.25em; height: auto; }
.hero-note .arrow-left,
.hero-note .note-short { display: none; }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 40px;
  margin-top: clamp(110px, 11vw, 170px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.7); opacity: 0; }
}

.lead {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .hero-logo { --face-x: 68%; --face-bottom: 14%; }

  .hero-note {
    align-items: flex-start;
    gap: 0.2em;
    margin-top: 0;
    transform: none;
    font-size: clamp(16px, 4.8vw, 30px);
  }

  .hero-note .arrow-up,
  .hero-note .note-long { display: none; }
  .hero-note .note-short { display: inline; }

  .hero-note .arrow-left { display: block; width: 1.3em; height: auto; margin-top: 0.35em; }

  .hero-bottom { margin-top: 36px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--ink);
  color: var(--white);
  border-bottom: 2px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0 clamp(20px, 3vw, 40px) 0 0;
  list-style: none;
}

.marquee li {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee img {
  width: auto;
  height: 1em;
  padding: 0.12em;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--paper);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-bottom: 2px solid var(--ink);
}

.section-head {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 10vw, 112px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.count {
  font-size: 0.32em;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
  vertical-align: top;
}

/* Handwritten note in a section head: sits on the label row, clear of the big title */
.head-note {
  position: absolute;
  top: -0.3em;
  right: 0;
  margin: 0;
  transform: rotate(-4deg);
}

/* Work: aim the note's arrow at the first (favourite) card */
#work .head-note { top: auto; right: auto; bottom: -0.4em; left: 36%; }

@media (max-width: 1024px) {
  .head-note { position: static; justify-self: end; }
  #work .head-note { position: static; justify-self: start; margin-left: clamp(40px, 18vw, 240px); }
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.project { grid-column: span 5; }
.project-wide { grid-column: span 7; }
.project-full { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .project,
  .project-wide { grid-column: 1 / -1; }
}

.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.project-link:hover,
.project-link:focus-visible { transform: translate(-6px, -6px); box-shadow: 6px 6px 0 var(--ink); }

/* Same media height for every card so the text blocks line up across a row */
.project-media {
  height: clamp(210px, 30vw, 440px);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.project-media svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease);
}

.project-link:hover .project-media svg { transform: scale(1.03); }

.project-meta {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 4px 16px;
  padding: 18px 20px 20px;
}

.project-num {
  align-self: start;
  padding: 2px 6px;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 900;
  font-stretch: 125%;
}

.project-text { grid-row: span 2; }

.project-text h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-text p { margin: 8px 0 12px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.tags li {
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-year { justify-self: end; font-size: 14px; font-weight: 700; }

.project-go {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s var(--ease);
}

.project-link:hover .project-go { transform: rotate(45deg); }

/* Phones: number, year and arrow on one row, text full width below */
@media (max-width: 560px) {
  .project-meta { grid-template-rows: auto auto; align-items: center; gap: 12px; }
  .project-year { grid-column: 2; grid-row: 1; justify-self: start; }
  .project-go { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
  .project-text { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- All projects: filters + gallery ---------- */
.more-work { margin-top: clamp(56px, 8vw, 104px); }

.more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}

.more-head h3 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 13px/1 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}

.filter-btn:hover { background: var(--white); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.filter-count { margin-left: 6px; font-weight: 600; opacity: 0.7; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-item[hidden] { display: none; }

.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tile:hover,
.tile:focus-visible { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }

.tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }

.media-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-badge .icon { width: 14px; height: 14px; }
.icon.icon-fill { fill: currentColor; stroke: none; }

.tile-body { display: grid; gap: 4px; padding: 12px 14px 14px; }

.tile-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  font-stretch: 115%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.tile-cat { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Featured cards use real images now */
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.project-link:hover .project-media img { transform: scale(1.03); }
.project-media { position: relative; }

/* ---------- Viewer (dialog) ---------- */
.viewer {
  width: min(1100px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.viewer::backdrop { background: rgba(20, 20, 20, 0.78); }

.viewer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 2px solid var(--ink);
}

.viewer-head h3 {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  font-stretch: 115%;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.viewer-open { min-height: 44px; padding: 0 14px; font-size: 13px; }

.viewer-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.viewer-frame { height: min(76vh, calc(94vw * 0.6)); background: var(--ink); }
.viewer-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 560px) {
  .viewer-open .label { display: none; }
}

/* ---------- Brands that trusted me ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  list-style: none;
}

.brand {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: clamp(140px, 16vw, 200px);
  padding: 24px 16px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.brand:hover { background: var(--ink); color: var(--paper); }

.brand-name {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand-link { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.brand-logo { max-width: min(180px, 80%); max-height: 72px; width: auto; height: auto; object-fit: contain; }
.brand:hover .brand-logo { filter: invert(1); }

.brand-name { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { padding: 20px 10px; }
  .brand-name { font-size: clamp(15px, 4.4vw, 22px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.about-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-2deg);
}

.about-photo img { width: 100%; }

.about-photo figcaption {
  position: absolute;
  right: 8%;
  bottom: -52px;
  transform: rotate(-5deg);
}

.about-text .section-title { margin: 12px 0 24px; }
.about-text > p { max-width: 60ch; margin: 0 0 16px; }
.about-text > p.lead { margin-bottom: 20px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
  border-block: 2px solid var(--ink);
}

.facts div { padding: 14px 16px 14px 0; }
.facts div + div { padding-left: 16px; border-left: 2px solid var(--ink); }

.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.35; }

.toolbox { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.toolbox li {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.toolbox li:nth-child(odd) { transform: rotate(-1.5deg); }
.toolbox li:nth-child(even) { transform: rotate(1.5deg); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: calc(100% - 24px); max-width: 340px; margin-bottom: 40px; box-shadow: 6px 6px 0 var(--ink); }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Services ---------- */
.services { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }

.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 2px solid var(--ink);
}

.service-num {
  justify-self: start;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.service h3 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.service p { max-width: 46ch; margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { padding: 24px; border: 2px solid var(--ink); background: var(--white); }

.step-num {
  display: block;
  margin-bottom: 28px;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.step p { margin: 0; color: var(--muted); }

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

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(48px, 6vw, 80px); background: var(--ink); color: var(--paper); border-bottom: 0; }
.contact .section-label { color: var(--muted-dark); }
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }

.contact-title {
  max-width: 12ch;
  margin: 16px 0 clamp(32px, 5vw, 56px);
  font-size: clamp(34px, 10vw, 132px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.email-link {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 4.2vw, 60px);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.email-link:hover { text-decoration-thickness: 6px; }

.copy-status { font-weight: 700; }

.contact-note { flex-basis: 100%; margin: 4px 0 0; color: var(--paper); transform: rotate(-2deg); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--line-dark);
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}

.socials a:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 24px; background: var(--ink); color: var(--paper); }

.footer-logo { width: 100%; padding: clamp(32px, 5vw, 64px) 0; border-top: 2px solid var(--line-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 2px solid var(--line-dark);
  font-size: 14px;
}

.footer-bottom p { margin: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.to-top:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track,
  .status-dot::after { animation: none; }
  .btn,
  .project-link,
  .project-media svg,
  .project-media img,
  .project-go,
  .tile,
  .tile-media img,
  .nav-links a::after { transition: none; }
  .btn:hover,
  .project-link:hover,
  .project-link:focus-visible,
  .tile:hover,
  .tile:focus-visible { transform: none; }
  .project-link:hover .project-media svg,
  .project-link:hover .project-media img,
  .project-link:hover .project-go,
  .tile:hover .tile-media img { transform: none; }
}
