/* =========================================================================
   Harris Made — bespoke recognition gifts
   Premium British-heritage design system. Vanilla CSS, no build step.
   ========================================================================= */

:root {
  /* Palette — matched to the original harrismade.com brand colors:
     brand grey #303132, cool off-white #fafbfd, light grey #eeeeee, brand red #ec1823 */
  --paper:      #FAFBFD;   /* cool off-white background */
  --paper-2:    #EEEFF1;   /* light grey panel */
  --ink:        #303132;   /* brand grey — primary text / dark */
  --ink-soft:   #4A4B4C;
  --ink-mute:   #757575;
  --line:       #DCDDE0;
  --brass:      #EC1823;   /* brand red accent */
  --brass-dk:   #C01420;   /* deeper red for legible links/text on light */
  --oxblood:    #9E0F1A;   /* deepest red for hovers */
  --green:      #303132;   /* dark grey band */
  --white:      #FFFFFF;

  --maxw: 1200px;
  --gut: clamp(1.25rem, 4vw, 4rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(28,27,23,.06), 0 2px 8px rgba(28,27,23,.05);
  --shadow-md: 0 4px 14px rgba(28,27,23,.08), 0 10px 40px rgba(28,27,23,.07);
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-dk); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--oxblood); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0 0 1.1em; color: var(--ink-soft); }

/* ---- utilities ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-dk);
  margin: 0 0 1.2rem;
  display: inline-block;
}
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink-soft); font-weight: 300; }
.center { text-align: center; }
.section { padding-block: clamp(3.05rem, 6.85vw, 6.1rem); }
.section--tight { padding-block: clamp(2.3rem, 4.6vw, 3.8rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule {
  width: 64px; height: 2px; background: var(--brass);
  border: 0; margin: 0 0 1.8rem;
}
.center .rule { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 2px; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1px solid var(--ink);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--brass-dk); border-color: var(--brass-dk); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 76px;
}
.brand {
  display: inline-block; font-family: "CoreCircus", var(--sans);
  font-size: 1.04rem; font-weight: 400; letter-spacing: .108em; line-height: 1;
  text-transform: uppercase; color: var(--brass-dk); white-space: nowrap;
  border: 2px solid currentColor; padding: .46em .72em;
}
.brand span { color: inherit; margin-left: .34em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: .8rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { font-size: .76rem !important; padding: .7rem 1.3rem; }
/* keep the solid nav button's text white (beats the .nav-links a color rule) */
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--paper-2); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  min-height: 62vh; gap: clamp(1.8rem, 4.5vw, 4.5rem);
}
.hero-copy { padding-block: clamp(2.7rem, 5.4vw, 4.5rem); }
.hero h1 { margin-bottom: .3em; font-size: clamp(2.34rem, 5.4vw, 4.5rem); }
.hero .lead { font-size: clamp(1.05rem, 1.62vw, 1.26rem); }
.hero-media { align-self: stretch; position: relative; min-height: 48vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(28,27,23,.06);
}

/* ---- generic page hero ---- */
.page-hero { background: var(--green); color: var(--paper); padding-block: clamp(2.1rem, 3.8vw, 3.4rem); }
.page-hero .eyebrow { color: #EC1823; margin-bottom: .8rem; }
.page-hero h1 { color: var(--paper); }
/* Align the hero block to the same left edge as the header logo (full wrap width),
   then cap the heading/lead measure while keeping them left-aligned. */
.page-hero .narrow { max-width: var(--maxw); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 720px; margin-top: .4rem; }
.page-hero p { color: rgba(250,248,242,.8); }
.crumbs { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(250,248,242,.55); margin-bottom: 1rem; }
.crumbs a { color: rgba(250,248,242,.8); }

/* ---- grids ---- */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- cards ---- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.35rem; margin-bottom: .2em; }
.card-kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dk); display: block; margin-bottom: .6rem; }
.card-body p { font-size: .95rem; margin: 0; color: var(--ink-mute); }
.card-price { margin-top: 1rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

/* portfolio tiles (image-forward) */
.tile { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--paper-2); aspect-ratio: 1/1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.3rem .9rem;
  background: linear-gradient(to top, rgba(28,27,23,.82), transparent);
  color: var(--paper);
}
.tile-cap .t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; display:block; }
.tile-cap .s { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,248,242,.75); }

/* ---- portfolio category filter ---- */
.filter-bar-wrap {
  position: sticky; top: 75px; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line); padding-block: .85rem;
}
.filter-label { text-align: center; font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 .85rem; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.filter-btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; padding: .8rem 1.5rem; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft); border-radius: 2px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile.is-hidden { display: none; }
.section[id] { scroll-margin-top: 172px; }
@media (max-width: 600px) { .filter-btn { font-size: .68rem; padding: .62rem 1rem; letter-spacing: .08em; } }

/* ---- feature / split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split--flip .split-media { order: -1; }
.split-media img { border-radius: 3px; box-shadow: var(--shadow-md); }

/* ---- steps ---- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  counter-increment: step; font-family: var(--serif); font-size: 2.4rem;
  color: var(--brass); line-height: 1; min-width: 2.4ch;
}
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 1.5rem; margin-bottom: .2em; }
.step p { margin: 0; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); line-height: 1; }
.stat .l { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-top: .6rem; }

/* ---- quote / testimonial ---- */
.quote { background: var(--paper-2); color: var(--ink); border-block: 1px solid var(--line); }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.25; font-weight: 400; margin: 0 0 1.4rem; color: var(--ink);
}
.quote cite { font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dk); }
.quote-logo { display: block; width: 200px; max-width: 60vw; height: auto; margin: 0 auto 2.1rem; }
@media (max-width: 600px) { .quote-logo { width: 165px; margin-bottom: 1.6rem; } }

/* ---- band / CTA ---- */
.band { background: var(--ink); color: var(--paper); text-align: center; }
.band h2 { color: var(--paper); }
.band p { color: rgba(250,248,242,.75); }

/* ---- article / prose ---- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: 3px; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .82rem; color: var(--ink-mute); text-align: center; margin-top: .6rem; }
.meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.2rem; }

/* ---- who we serve grid ---- */
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.serve-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(1.4rem, 2.4vw, 1.9rem) clamp(1.3rem, 2vw, 1.6rem);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.serve-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.serve-icon { width: 30px; height: 30px; color: var(--brass-dk); margin-bottom: 1rem; display: block; }
.serve-card h3 { font-size: 1.2rem; margin-bottom: .25em; line-height: 1.1; }
.serve-card p { font-size: .9rem; color: var(--ink-mute); margin: 0; line-height: 1.5; }
@media (max-width: 940px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .serve-grid { grid-template-columns: 1fr; } }

/* ---- client wordmark marquee ---- */
.marquee-label { text-align: center; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 2.8rem; }
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: hm-marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 39px; max-width: 165px; margin-inline: clamp(1.5rem, 3.5vw, 3rem); }
.marquee-logo img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .5;
  transition: opacity .35s ease, filter .35s ease;
}
.marquee-logo img:hover { filter: none; opacity: 1; }
@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 1.5rem 0; width: 100%; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 600px) { .marquee-logo { height: 31px; max-width: 132px; margin-inline: 1.2rem; } }

/* ---- story / founders ---- */
.story-media .story-frame { overflow: hidden; border-radius: 3px; box-shadow: var(--shadow-md); }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(100%); transform: scale(1.1); }
.story-credit { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: .9rem; }

/* ---- clients list ---- */
.clients { columns: 4 200px; column-gap: clamp(1.5rem, 3vw, 3rem); }
.client-group { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 1.7rem; }
.client-group h3 {
  font-family: var(--serif); font-size: 1.4rem; color: var(--brass-dk);
  margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
.client-group ul { list-style: none; margin: 0; padding: 0; }
.client-group li { font-size: .9rem; line-height: 1.4; color: var(--ink-soft); margin-bottom: .35rem; }

/* feature list with check */
.flist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.flist li { padding-left: 1.7rem; position: relative; margin-bottom: .7rem; color: var(--ink-soft); }
.flist li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }

/* ---- footer ---- */
.site-footer { background: var(--green); color: rgba(250,248,242,.75); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--paper); font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.2rem; }
/* The small footer wordmark is replaced by the large brand band below. */
.site-footer .footer-grid .brand { display: none; }
.footer-grid::after {
  content: "HARRIS MADE"; grid-column: 1 / -1; order: 99;
  width: max-content; max-width: 100%; justify-self: center;
  font-family: "CoreCircus", var(--sans); text-transform: uppercase;
  letter-spacing: .09em; line-height: 1; color: var(--paper); text-align: center;
  white-space: nowrap;
  font-size: clamp(1.5rem, 6.6vw, 6.4rem);
  border: 4px solid rgba(250,248,242,.9); border-radius: 2px;
  padding: .34em .6em; margin-top: 2.2rem;
}
@media (max-width: 600px) { .footer-grid::after { border-width: 3px; margin-top: 1.4rem; letter-spacing: .05em; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(250,248,242,.75); font-size: .92rem; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,248,242,.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(250,248,242,.55); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-block: 2.5rem 0; }
  .hero-media { min-height: 37vh; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--flip .split-media { grid-template-columns: 1fr; order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* collapse the inline menu into a hamburger before it can crowd the wordmark */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gut) 1.4rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1rem; }
  .nav-links a.nav-cta { display: inline-flex; margin-top: .4rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(1.85rem, 7.4vw, 2.35rem); line-height: 1.04; }
  h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); line-height: 1.05; }
  .section { padding-block: clamp(2.1rem, 8.4vw, 3.25rem); }
  .section--tight { padding-block: 1.95rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .stat .n { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .page-hero { padding-block: 2.75rem; }
  .hero-media { min-height: 50vw; }
  .quote blockquote { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .hero-copy > div { width: 100%; }
  .hero-copy .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
