/* Alex Le Carter — site styles */

@font-face {
  font-family: "Romanizter";
  src: url("../fonts/Romanizter.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Alegreya Sans 800 normal, latin-ext (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/AlegreyaSans-800-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Alegreya Sans 800 normal, latin (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/AlegreyaSans-800-latin.woff2") format('woff2');
  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;
}
/* Courier Prime 400 italic, latin-ext (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-400-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime 400 italic, latin (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-400-italic-latin.woff2") format('woff2');
  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;
}
/* Courier Prime 700 italic, latin-ext (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-700-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime 700 italic, latin (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-700-italic-latin.woff2") format('woff2');
  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;
}
/* Courier Prime 400 normal, latin-ext (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime 400 normal, latin (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-400-latin.woff2") format('woff2');
  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;
}
/* Courier Prime 700 normal, latin-ext (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime 700 normal, latin (self-hosted from Google Fonts, OFL) */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-700-latin.woff2") format('woff2');
  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;
}

:root {
  --bg: #e8e8e8;
  --bg-alt: #e2e2e2;
  --bg-light: #f2f2f2;
  --ink: #2b2b2b;
  --ink-soft: #4a4a4a;
  --tile: #606060;
  --dark: #141414;
  --accent: #8a1c1c;
  --max: 1240px;
  --gutter: clamp(16px, 5vw, 72px);
  --font-head: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-title: "Romanizter", serif;
  --font-body: "Courier Prime", "Courier New", Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
}

.brand {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: 800 0.85rem/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  cursor: pointer;
}

.site-header.on-dark { color: #f2f2f2; }
.site-header.on-dark .brand { visibility: hidden; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    background: var(--dark);
    color: #f2f2f2;
    padding: 12px 20px;
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; padding: 10px 0; }
}

/* ---------- Home hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #f2f2f2;
  background: #111;
  padding: 120px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Parallax layers: background, wave and title share one grid cell; main.js shifts them with the pointer */
.hero > * { grid-area: 1 / 1; will-change: transform; }

.hero-bg {
  grid-area: auto;
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: url("../images/hero.jpg") center / cover no-repeat;
}

.hero-wave {
  width: max(86vw, 560px);
  max-width: 1659px;
  pointer-events: none;
}

.hero-wave img {
  display: block;
  width: 100%;
  height: auto;
  animation: wave-drift 9s ease-in-out infinite alternate;
}

@keyframes wave-drift {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

.hero-content { position: relative; }

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin-bottom: 0.25em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.04em;
  margin-bottom: 2em;
}

/* ---------- Page layout ---------- */

.page-top { padding-top: 110px; }

.section {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}

.section.alt { background: var(--bg-alt); }

/* Portfolio intro: about a quarter less space before the first section */
.section.intro-tight { padding-bottom: calc(clamp(48px, 8vw, 96px) / 2 - 5px); }

/* Services: hairline rules between sections instead of color bands (rule spans the text column) */
.section.ruled { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section.ruled > .container { position: relative; padding-top: clamp(32px, 4vw, 48px); }
.section.ruled > .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(0px, 4vw, 56px);
  right: clamp(0px, 4vw, 56px);
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}
.section.light { background: var(--bg-light); }

/* Content block is centered with equal side space; text inside stays left-aligned */
.container {
  max-width: var(--max);
  margin: 0 auto;
}

.inset {
  padding-left: clamp(0px, 4vw, 56px);
  padding-right: clamp(0px, 4vw, 56px);
}

.page-title { margin-bottom: 1.2em; }


/* ---------- Buttons / links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 12px 22px;
  border: 2px solid currentColor;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .btn:hover { background: #f2f2f2; color: #111; border-color: #f2f2f2; }

.link-row { display: flex; flex-wrap: wrap; gap: 8px 32px; }

.text-link {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ---------- Services ---------- */

.service-index {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.service-index a {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.service-index a:hover,
.service-index a:focus-visible { border-bottom-color: currentColor; }

/* Dot separator between service links */
.service-index li + li::before {
  content: "\00B7";
  margin-right: 14px;
  font-weight: 700;
}

.service { scroll-margin-top: 24px; }

.service .subhead {
  font-style: italic;
  font-weight: 700;
  margin-top: -0.3em;
  margin-bottom: 1.4em;
}

.service .answer {
  font-weight: 700;
  font-size: 1.08em;
}

.facts {
  margin: 1.6em 0 1.8em;
  display: grid;
  gap: 10px;
}

.facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
}

.facts dt {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facts dd { margin: 0; }

@media (max-width: 560px) {
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

.service .ideal {
  font-style: italic;
  font-weight: 700;
}

.service .price {
  font-weight: 700;
}

.included {
  margin: 1.4em 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.included summary,
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-style: italic;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.included summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }

.included summary::after,
.faq summary::after {
  content: "+";
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

.included[open] summary::after,
.faq details[open] summary::after { content: "–"; }

.included ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.included li { margin-bottom: 0.4em; }

.turnaround { margin: 0 0 1.1em; padding: 0; list-style: none; }

/* ---------- FAQ ---------- */

.faq .faq-sub {
  font-style: italic;
  font-weight: 700;
  margin-bottom: 1.6em;
}

.faq details {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.faq details:last-of-type { border-bottom: 1px solid rgba(0, 0, 0, 0.18); }

.faq summary { font-style: normal; }

.faq details p { margin-top: 0; padding-bottom: 6px; }

/* ---------- Portfolio ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-top: 2.4em;
}

.tile {
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border-radius: 10px;
  color: #e9e9e9;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-size: 0.85rem;
  overflow: hidden;
}

.tile iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 9; }
}

/* ---------- Contact ---------- */

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-top: 2em;
}

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.hidden { display: none; }

.contact-form button {
  justify-self: start;
  background: var(--ink);
  color: var(--bg-light);
  cursor: pointer;
}
.contact-form button:hover { background: transparent; color: var(--ink); }

.ask-list { padding-left: 1.3em; }
.ask-list li { margin-bottom: 0.35em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  padding: 40px var(--gutter);
  font-size: 0.9rem;
}

.site-footer .container {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.site-footer .nav-list { gap: 20px; flex-wrap: wrap; }
.site-footer .nav-list a { font-size: 0.78rem; }

.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .site-footer .nav-list { flex-direction: row; }
}

/* ---------- Credits ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.credit-jump {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.credit-jump a {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.credit-jump a:hover { border-bottom-color: currentColor; }

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.highlights li {
  background: var(--bg-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hl-artist {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
}

.hl-title { font-style: italic; }
.hl-role { font-weight: 700; font-size: 0.92rem; }
.hl-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

.credit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credit {
  display: grid;
  grid-template-columns: 4.5em 1fr auto;
  gap: 6px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.credit:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.15); }

.credit-year { font-weight: 700; color: var(--ink-soft); }

.credit-main { display: flex; flex-direction: column; gap: 2px; }

.credit-title { font-weight: 700; }
.credit-artist { }
.credit-role { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

.badge {
  display: inline-block;
  width: max-content;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  padding: 2px 8px;
  border: 1px solid currentColor;
  margin: 2px 0;
}

.credit-link {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  white-space: nowrap;
}

.credit-sub { margin-top: 6px; font-size: 0.9rem; }
.credit-sub summary { cursor: pointer; font-weight: 700; }
.credit-sub ul { margin: 8px 0 0; padding-left: 1.2em; }
.credit-sub li { margin-bottom: 4px; }

@media (max-width: 560px) {
  .credit { grid-template-columns: 1fr auto; }
  .credit-year { grid-column: 1 / -1; }
}

/* ---------- Portfolio work tiles ---------- */

.work { margin: 0; display: flex; flex-direction: column; gap: 12px; }

.work-art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border-radius: 10px;
  overflow: hidden;
}

.work-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.work-art:hover img { transform: scale(1.03); }

.work-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #e9e9e9;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work figcaption { display: flex; flex-direction: column; gap: 2px; }
.work-title { font-weight: 700; }
.work-artist { font-size: 0.92rem; }
.work-role { font-size: 0.85rem; font-style: italic; color: var(--ink-soft); margin-bottom: 4px; }

@media (max-width: 720px) {
  .work-art { aspect-ratio: 1 / 1; }
}

/* 20% dark fill over cover art that clears on hover (mouse devices only) */
@media (hover: hover) {
  .work-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  .work-art:hover::after,
  .work-art:focus-visible::after { opacity: 0; }
}

/* ---------- Footer waveform (animated) ---------- */

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.site-footer .nav-list { justify-self: end; }

.waveform {
  width: clamp(180px, 22vw, 280px);
}

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

.waveform path {
  fill: #6e6e6e;
  transform-box: fill-box;
  transform-origin: center;
  animation: bar-breathe 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
}

@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer .nav-list { justify-self: center; justify-content: center; }
  .waveform { order: -1; }
}

@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.62); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave img, .waveform path { animation: none; }
}

/* ---------- Blog ---------- */

.lede-line { max-width: 62ch; }

.post-list { list-style: none; padding: 0; margin: 2.4em 0 0; }
.post-item { padding: 22px 0; border-top: 1px solid rgba(0, 0, 0, 0.16); }
.post-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.16); }
.post-item-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
}
.post-item-title:hover { text-decoration: underline; }
.post-item-meta { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 8px; }
.post-item-answer { margin: 0; max-width: 70ch; }

/* Post: one readable column inside the standard container */
.post-body { max-width: calc(72ch + 112px); }
.post-kicker { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.post-kicker a { text-decoration: none; border-bottom: 1px solid currentColor; }
.post-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 0.4em; }
.post-meta { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 2em; }
.post-answer { font-weight: 700; font-size: 1.12em; line-height: 1.55; margin-bottom: 1.8em; }
.post-body h2 { margin-top: 1.8em; font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
.post-body ol, .post-body ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.post-body li { margin-bottom: 0.45em; }

.post-related {
  margin: 2.4em 0;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.post-related p { margin: 0; }
.post-related-label {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 6px !important;
}
.post-cta { margin-top: 2em; }

/* ---------- Gear page ---------- */
.gear-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  columns: 2 18em;
  column-gap: 3em;
}
.gear-list li {
  break-inside: avoid;
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.section.ruled.gear { padding-top: clamp(12px, 2vw, 20px); padding-bottom: clamp(12px, 2vw, 20px); }
.section.ruled.gear > .container { padding-top: clamp(24px, 3vw, 32px); }
.section.ruled.gear h2 { margin-bottom: 0.6em; }
.section.ruled.gear:last-child { padding-bottom: clamp(96px, 15vw, 190px); }

/* ---------- Mobile tune-up (phones only) ---------- */
@media (max-width: 720px) {
  /* Hero: keep the wave, title and button centered on the screen */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-wave { width: 150vw; max-width: none; justify-self: center; margin: 0 -25vw; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 10.5vw, 2.6rem); }
  .hero .tagline { font-size: 0.78rem; letter-spacing: 0.02em; }

  /* Footer links: tighter rows than the stacked header menu */
  .site-footer .nav-list { gap: 4px 20px; }
  .site-footer .nav-list a { padding: 4px 0; }

  /* Services jump menu: centered, no dot separators */
  .service-index { justify-content: center; gap: 12px 22px; }
  .service-index li + li::before { content: none; }

  /* Portfolio links stack */
  .link-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Home intro below the hero (homepage alt) */
.home-intro .answer { font-weight: 700; font-size: 1.08em; }
.home-intro h2 { margin-bottom: 0.9em; }
.home-intro {
  background: var(--dark);
  color: #e8e8e8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.home-intro a { color: inherit; }
/* Body copy a step dimmer than the heading, lead and links (#b0b0b0 on #141414 = 8.5:1, WCAG AAA) */
.home-intro p:not(.answer):not(.link-row), .home-intro dd { color: #b0b0b0; }
/* Homepage alt: centered copy, rates as four cards */
.home-intro { text-align: center; }
.home-intro .container { max-width: 980px; }
.home-intro .facts {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 2.2em 0 2em;
}
.home-intro .facts div {
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: center;
  padding: 22px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.home-intro .link-row { justify-content: center; }
@media (max-width: 720px) {
  .home-intro .facts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home-intro .link-row { align-items: center; }
}
.home-intro .facts div { align-content: start; }
@media (max-width: 720px) {
  .home-intro .facts div { padding: 18px 10px; }
  .home-intro .facts dd { font-size: 0.88rem; }
}
.home-intro .facts div { border-radius: 6px; }
.home-intro .facts dt::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 10px auto 4px;
  background: rgba(255, 255, 255, 0.35);
}
.home-intro .facts div { border-width: 2px; }
/* Desktop (hover devices): title sits centered alone; on hover/focus it slides up while the
   line and price fade in and slide down beneath it. Touch screens keep the static card. */
@media (hover: hover) and (pointer: fine) {
  .home-intro .rate-cards div {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 180px;
    transition: border-color 0.35s ease;
  }
  .home-intro .rate-cards dt { transition: transform 0.4s ease; }
  .home-intro .rate-cards dt::after { display: none; }
  .home-intro .rate-cards dd {
    position: absolute;
    top: calc(50% - 16px);
    left: 14px;
    right: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .home-intro .rate-cards dd::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.35);
  }
  .home-intro .rate-cards div:hover dt,
  .home-intro .rate-cards div:focus-visible dt { transform: translateY(-38px); }
  .home-intro .rate-cards div:hover dd,
  .home-intro .rate-cards div:focus-visible dd { opacity: 1; transform: none; }
  .home-intro .rate-cards div:hover,
  .home-intro .rate-cards div:focus-visible { border-color: rgba(255, 255, 255, 0.4); outline: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rate-cards dt, .rate-cards dd { transition: opacity 0.2s; }
  .rate-cards dd { transform: none; }
}

/* Rate cards, refined: soft surface, eased lift and staggered reveal */
.home-intro .rate-cards div {
  position: relative;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.home-intro .rate-cards dt { letter-spacing: 0.08em; }
@media (hover: hover) and (pointer: fine) {
  .home-intro .rate-cards div {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.5s ease,
                background 0.5s ease, box-shadow 0.5s ease;
  }
  .home-intro .rate-cards dt { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .home-intro .rate-cards dd {
    transition: opacity 0.45s ease 0.08s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s;
  }
  .home-intro .rate-cards dd::before {
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s;
  }
  .home-intro .rate-cards div:hover,
  .home-intro .rate-cards div:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  }
  .home-intro .rate-cards div:hover dd::before,
  .home-intro .rate-cards div:focus-visible dd::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .home-intro .rate-cards div, .home-intro .rate-cards div:hover { transform: none; }
  .home-intro .rate-cards dd::before { transform: none; transition: none; }
}

/* Mobile menu: half-width panel aligned under the Menu button */
@media (max-width: 720px) {
  .site-nav { left: auto; width: 50%; min-width: 180px; text-align: right; }
  .site-nav .nav-list { align-items: flex-end; }
}
