/* ============================================================
   preetam.org v2 — Cobalt
   Light on :root. Dark overrides tokens only, twice: once for the
   system preference, once for the explicit toggle.

   Layout direction: "Shelf" — screenshot tiles on a shelf grid,
   generous whitespace, one clear action per tile, one accent band.
   No gradients, no shadows: a hairline border does the separating.

   Order of this file:
     1. fonts
     2. tokens (three theme states)
     3. base: reset, body, type, focus, layout primitives
     4. components
     5. reduced motion
   No component rule may contain a hex literal. Colour comes from
   tokens only, so a theme change is a token change.
   ============================================================ */

/* ---------- 1. fonts ---------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  /* the "-variations" entry is listed first for older engines that need it,
     then the plain woff2 entry for every current engine; both point at the
     same variable file, so exactly one request is made either way */
  src: url("fonts/inter-variable.woff2") format("woff2-variations"),
       url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. tokens --------------------------------------- */

:root {
  --ground: #F0F2F7;
  --surface: #FFFFFF;
  --ink: #10151F;
  --muted: #565E70;
  --line: #D7DDE8;
  --accent: #2148C4;
  --on-accent: #FFFFFF;
  --band: #10151F;
  --band-ink: #EFF2F8;
  --band-muted: #98A2B8;

  /* Derived, never a new colour: the readable secondary text inside the
     band. In light the band is ink-dark, so --band-muted reads at 7.1:1.
     In dark the band is accent-filled and --band-muted would only reach
     2.8:1, below the AA floor, so the band's body text steps up to
     --band-ink there. --band-muted stays the band's hairline colour. */
  --band-soft: var(--band-muted);
  --band-line: var(--band-muted);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: -0.02em;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 4vw, 2.75rem);
  --step-5: clamp(2.5rem, 6vw, 3.5rem);

  --gap: 1rem;
  --gap-lg: 2rem;

  /* Three deliberate rhythm values, not one scale used everywhere:
     tight  = inside a run of related blocks
     flow   = the default distance between sections
     major  = a change of subject, where the page should breathe */
  --space-tight: clamp(1.5rem, 3vw, 2.25rem);
  --space-flow: clamp(2.5rem, 4.5vw, 3.25rem);
  --space-major: clamp(4rem, 8vw, 6rem);
  --radius: 16px;
  --radius-pill: 99px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A0D13;
    --surface: #11151D;
    --ink: #E7EBF3;
    --muted: #939CB0;
    --line: #222935;
    --accent: #6E8CFF;
    --on-accent: #080F2E;
    --band: #6E8CFF;
    --band-ink: #080F2E;
    --band-muted: #37478A;

    /* In dark, --band-ink is already the band heading's colour, so reusing it
       for body copy flattens the hierarchy. Mixing the band back in keeps a
       second tone: 80% = 4.59:1 (AA text), the 65% hairline = 3.43:1
       (over the 3:1 non-text floor, which raw --band-muted missed at 2.82). */
    --band-soft: color-mix(in srgb, var(--band-ink) 80%, var(--band));
    --band-line: color-mix(in srgb, var(--band-ink) 65%, var(--band));
  }
}

:root[data-theme="dark"] {
  --ground: #0A0D13;
  --surface: #11151D;
  --ink: #E7EBF3;
  --muted: #939CB0;
  --line: #222935;
  --accent: #6E8CFF;
  --on-accent: #080F2E;
  --band: #6E8CFF;
  --band-ink: #080F2E;
  --band-muted: #37478A;

  --band-soft: color-mix(in srgb, var(--band-ink) 80%, var(--band));
  --band-line: color-mix(in srgb, var(--band-ink) 65%, var(--band));
}

/* ---------- 3. base ----------------------------------------- */

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

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

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; max-width: 65ch; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* nothing may push the page sideways at 320px */
img, svg, video, iframe { max-width: 100%; }

/* An <img> width/height attribute pair is a *presentational hint*, and it
   outranks `aspect-ratio`. Every image on this site carries that pair for
   layout stability, so any box shaped in CSS gets silently reshaped by it:
   a 1200x750 attribute pair turned an 8:5 `.product-shot` into a 520x750
   portrait. Defaulting the height here closes that off for every image,
   including ones later tasks add. Rules that want a real height -- the only
   one today is `.tile-shot img` -- are more specific and still win. */
img { height: auto; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* the one place wide content is allowed: it scrolls inside itself,
   never inside the page */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Rhythm. Deliberately uneven: the page opens up where the subject changes
   and closes up through a run of related blocks. :has() picks the value from
   what a section contains, so Task 5 needs no spacing classes; an engine
   without :has() lands on the default, which is correct, only flatter. */
main > section { padding-block: var(--space-flow); }

/* a continued run -- client work follows products, same subject, no break */
main > section:has(.client-list) { padding-block-start: var(--space-tight); }

/* a change of subject -- who I am gives way to what I made, then the pitch,
   then the contact block. Products sits here rather than in the run above
   because About and Skills now precede it: the break earns the section its
   own footing instead of trailing off the hero. */
main > section:has(.filters),
main > section:has(.band),
main > section:has(.contact-methods) { padding-block-start: var(--space-major); }

/* margins were zeroed in the reset; the rhythm goes back in here, on purpose */
main > section > h2,
main > section > .wrap > h2 {
  font-size: var(--step-4);
  margin-block-end: var(--gap);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. components ----------------------------------- */

/* -- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 0.85rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: var(--track);
  text-decoration: none;
  margin-inline-end: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); }

.theme-toggle {
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }

/* narrow screens: brand and toggle hold row one, the nav takes row two,
   rather than the toggle wrapping down alone */
/* Narrow screens. The header is sticky, so every pixel it takes it takes for
   the whole visit. With four children -- brand, nav, theme toggle and the
   "Hire me" button -- it wrapped to three rows and stood 172px tall at 320px,
   about a quarter of a phone screen, permanently.

   Below 30rem it keeps the two jobs a sticky header has to do on a phone,
   identity and getting around, in two tight rows:

     row 1  brand, and the theme toggle at a full 36px tap target
     row 2  the nav, on one line, scrolling sideways inside itself if the
            links outgrow the width -- never wrapping into a third row

   It holds up to 40rem, which is the width where the one-row header starts
   fitting again, so there is no band of screens left standing on a tall
   wrapped header.

   The "Hire me" button steps out at this width. It is a shortcut to the
   hire-me band on the same page, the nav's own Contact link covers the same
   intent, and it was the single largest thing in the header. Hiding it buys
   back a whole row. Nothing else is lost: it is the CTA that goes, not a
   destination. */
@media (max-width: 39.99rem) {
  .site-header > .wrap {
    gap: 0.3rem 0.75rem;
    padding-block: 0.3rem;
  }
  .brand {
    font-size: 1rem;
    margin-inline-end: auto;
  }
  .site-header > .wrap > .theme-toggle { order: 1; }
  /* the nav may be a bare <ul class="site-nav"> or a <nav> wrapping one --
     either way it is the element that takes the second row */
  .site-header > .wrap > :is(nav, .site-nav) {
    order: 2;
    flex-basis: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .site-header > .wrap > :is(nav, .site-nav)::-webkit-scrollbar { display: none; }
  .site-nav {
    flex-wrap: nowrap;
    gap: 0 1rem;
    font-size: 0.875rem;
  }
  .site-nav a {
    display: block;
    /* 26px tall: over the 24px minimum tap target, without a third row */
    line-height: 1.4;
    padding-block: 0.2rem;
    white-space: nowrap;
  }
}

/* The "Hire me" button needs roughly 700px before it fits on the header's one
   row; below that it is what pushes the header into extra rows. It leaves at
   the same width the desktop row breaks, not only on phones -- the hire-me
   band and the nav's Contact link carry the intent on every narrow screen. */
@media (max-width: 47.99rem) {
  .site-header .btn { display: none; }
}

/* -- shared action button -- */

.btn,
.tile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  transition: opacity 0.15s ease;
}
.btn:hover,
.tile-link:hover { opacity: 0.88; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--ink); opacity: 1; }

/* -- hero -- */

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem) var(--gap-lg);
  align-items: end;
  padding-block: var(--space-flow) var(--space-tight);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: var(--step-5); }
.hero > * { min-width: 0; }
.hero p {
  color: var(--muted);
  font-size: var(--step-1);
  margin-block-start: 1rem;
}
.hero .btn { margin-block-start: 1.5rem; }

/* Composed, not parked.

   Narrow: the portrait leads. It is ordered above the headline and centred,
   so the page opens on a face -- a decision, not whatever source order left
   behind. This is the width most visitors arrive at.

   Wide: it becomes a real column of the hero, cropped 4:5 so it has a
   direction, its bottom edge level with the foot of the text column, both
   columns closing on the hairline that ends the hero.

   `height: auto` is load-bearing. Task 5 puts width/height attributes on
   every <img> for layout stability, and those attributes act as a
   presentational hint that beats `aspect-ratio` -- a square attribute pair
   would quietly render this box square again. */
.hero-portrait {
  order: -1;
  justify-self: center;
  width: 100%;
  height: auto;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 260px); }
  .hero-portrait {
    order: 0;
    justify-self: end;
    max-width: none;
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap) var(--gap-lg);
  list-style: none;
  margin: var(--gap-lg) 0 0;
  padding: 0;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-number {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  letter-spacing: var(--track);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* -- filters -- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.25rem;
  padding: 0;
}

.filter-btn {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

/* -- tiles -- */

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

/* the grid has margin 0, so give whatever follows it somewhere to stand */
.tiles + * { margin-block-start: var(--space-tight); }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Filtering hides tiles with a class, never inline styles.
   The old site wrote style.opacity/transform/display plus a
   setTimeout per card on every click, which is why it stuttered. */
.tile[hidden] { display: none; }

.tile-shot { aspect-ratio: 8 / 5; background: var(--ground); }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.tile-body {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "plat plat"
    "name name"
    "summary summary"
    "link more";
  align-items: start;
  gap: 0.55rem 0.9rem;
  padding: 1rem 1.1rem 1.15rem;
  min-width: 0;
}

.plat {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
}
.tile-body > .plat { grid-area: plat; }

.tile-name { grid-area: name; font-size: var(--step-2); }

.tile-summary {
  grid-area: summary;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: none;
}

.tile-link {
  grid-area: link;
  justify-self: start;
  align-self: end;
  font-size: 0.875rem;
  padding: 0.45rem 0.95rem;
}

.tile-more {
  grid-area: more;
  justify-self: start;
  align-self: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tile-more:hover { color: var(--ink); }

/* -- client work / archive rows -- */

.client-list {
  list-style: none;
  margin: 0;
  margin-block-start: var(--space-tight);
  padding: 0;
  border-top: 1px solid var(--line);
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

/* Archive is a second run of rows under the same h2. It needs a clear break
   from the client list above it, and enough size to read as its own heading. */
.archive-heading {
  font-size: var(--step-3);
  margin-block-start: var(--space-major);
  margin-block-end: var(--gap);
}

.client-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.client-note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: none;
}

/* -- hire-me band -- */

.band {
  background: var(--band);
  color: var(--band-ink);
  border-radius: 20px;
  padding: 1.75rem;
}
.band p {
  color: var(--band-soft);
  margin-block-start: 1rem;
}

@media (min-width: 760px) {
  .band { padding: 2.5rem; }
}

.band h2 { font-size: var(--step-4); }
.band .btn {
  background: var(--band-ink);
  color: var(--band);
  border-color: var(--band-ink);
  margin-block-start: 1.25rem;
}

.band-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.svc {
  font-size: 0.8125rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-pill);
  color: var(--band-ink);
}

/* -- skills -- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
  min-width: 0;
}

.skill-group-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: var(--track);
  margin: 0 0 0.75rem;
}

.skill-tags,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-tag {
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
}

/* -- about -- */

.about {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}
.about > * { min-width: 0; }

@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.about-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
}
.about-details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.about-details > summary::-webkit-details-marker { display: none; }
.about-details > summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}
.about-details[open] > summary::after { content: "\2013"; }
.about-details[open] > summary { margin-bottom: 0.75rem; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 4px);
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item p { color: var(--muted); }

/* -- contact -- */

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-block: 1rem 1.5rem;
}
.contact-methods a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The form posts straight to Basin. No JS touches it, so the layout is the
   only thing CSS owns here. Grid + gap, never per-element margins. */
.contact-form {
  display: grid;
  gap: 1rem;
  justify-items: start;
  /* the page's own measure: body copy stops at 65ch, so the fields do too */
  max-width: 65ch;
}

.field {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.field label {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea {
  /* form controls do not inherit the page face; without this they render in
     the browser's default UI font */
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

/* The base :focus-visible ring is an outline, which a text field never gets
   from a mouse click. Fields take the ring on :focus as well, so the caret is
   never in an unmarked box. --accent on --surface is 6.9:1 in light and 6.4:1
   in dark, both over the 3:1 non-text floor. */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* Off-screen, not display:none and not type=hidden: Basin's honeypot needs a
   field a naive bot can still find and fill. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile draws itself into an iframe about 300x65. At 320px the wrap has
   ~280px of room, so let it scroll inside its own box rather than push the
   page sideways. */
.cf-turnstile {
  max-width: 100%;
  overflow-x: auto;
}

/* -- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-block-start: var(--gap-lg);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* -- product pages -- */

.product-hero {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}
.product-hero > * { min-width: 0; }
.product-hero h1 { font-size: var(--step-4); }
.product-hero p {
  color: var(--muted);
  font-size: var(--step-1);
  margin-block-start: 0.85rem;
}
.product-hero .btn { margin-block-start: 1.25rem; }

@media (min-width: 860px) {
  .product-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.product-shot {
  width: 100%;
  /* load-bearing: without it the height attribute wins over aspect-ratio */
  height: auto;
  display: block;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.35rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.tech-tags .skill-tag,
.tech-tags li {
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
}

.more {
  margin-block-start: var(--gap-lg);
  padding-block-start: var(--gap-lg);
  border-top: 1px solid var(--line);
}

/* ---------- 5. reduced motion -------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tile:hover { transform: none; }
}
