/*
   Studio Hexraei
   A desk of documents. The products are paperwork-killers, so each one is drawn as its own
   paper artifact on cool green-grey paper, with green-black ink and a mint highlighter.
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&family=IBM+Plex+Mono:wght@400;500&family=Public+Sans:wght@300..700&display=swap');

:root {
  --paper: #edf0e8;
  --desk: #e1e6da;
  --sheet: #fbfcf8;
  --ink: #101c16;
  --ink-2: #3b4a42;
  --ink-3: #5b6a62;
  --rule: rgba(16, 28, 22, 0.16);
  --rule-strong: rgba(16, 28, 22, 0.5);
  --mint: #4ade80;
  --night: #0e1a13;

  /* Stamp inks: one per status */
  --done: #1c7a49;
  --dev: #2a4bb0;
  --future: #b5324f;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-type: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --header-h: 68px;
  --under: var(--paper); /* colour behind a document, so notches and torn edges match */
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--paper);
  min-height: 100vh;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

/* Type */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1rem + 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 1rem + 3vw, 3.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--ink-2);
  max-width: 62ch;
}

p.lead {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}

a {
  color: var(--ink);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section--band {
  background: var(--desk);
}

.section--last {
  border-bottom: none;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Links and buttons */
.link-quiet {
  display: inline-block;
  padding: 0.7rem 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 6px;
}

.link-quiet:hover {
  text-decoration-color: var(--ink);
  background: linear-gradient(transparent 62%, var(--mint) 62% 92%, transparent 92%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  font: 700 1rem/1 var(--font-display);
  font-stretch: 105%;
  color: var(--ink);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s ease;
}

.btn-primary {
  background: var(--mint);
}

@media (hover: hover) {
  .btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
  }
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(237, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}

.navbar {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font: 800 1.15rem/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.nav-brand img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font: 600 0.98rem/1 var(--font-display);
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  color: var(--ink-2);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--mint) 58% 88%, transparent 88%);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 105;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  text-align: center;
  font: 800 2.25rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: -0.03em;
}

/* Stamps: status is ink on paper */
.stamp,
.badge {
  display: inline-block;
  font: 800 0.72rem/1 var(--font-display);
  font-stretch: 115%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--done);
  border: 2px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  border-radius: 3px;
  padding: 0.35rem 0.55rem;
  transform: rotate(-3deg);
  mix-blend-mode: multiply;
  white-space: nowrap;
}

.stamp--dev,
.badge-development {
  color: var(--dev);
  transform: rotate(2deg);
}

.stamp--future,
.badge-future {
  color: var(--future);
  transform: rotate(-2deg);
}

/* Documents */
.doc {
  position: relative;
  --r: 0deg;
  transform: rotate(var(--r));
  box-shadow: 0 1px 0 rgba(16, 28, 22, 0.1), 0 16px 24px -10px rgba(16, 28, 22, 0.3);
  transition: transform 0.3s var(--ease);
}

@media (hover: hover) {
  .cell:hover .doc,
  .cell:focus-within .doc {
    transform: rotate(0deg) translateY(-5px);
  }
}

.doc-tag {
  position: absolute;
  left: 0;
  bottom: -1.6rem;
  font: 400 0.68rem/1 var(--font-type);
  color: var(--ink-3);
}

/* Certificate (BulkCert) */
.cert {
  background: var(--sheet);
  padding: 0.55rem;
  width: 100%;
  aspect-ratio: 1.42 / 1;
}

.cert-in {
  height: 100%;
  border: 1px solid #2f6f4e;
  outline: 3px double #2f6f4e;
  outline-offset: -7px;
  padding: 1.1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: repeating-radial-gradient(circle at 50% 140%, transparent 0 0.5rem, rgba(28, 122, 73, 0.09) 0.5rem 0.56rem);
}

.cert-kicker {
  font: 700 0.62rem/1.2 var(--font-display);
  font-stretch: 120%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--done);
}

.cert-name {
  font: 800 clamp(1.5rem, 1rem + 2vw, 2.4rem)/1 var(--font-display);
  font-stretch: 100%;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cert-for {
  font-size: 0.78rem;
  color: var(--ink-2);
  max-width: 28ch;
}

.cert-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font: 400 0.68rem/1.2 var(--font-type);
  color: var(--ink-3);
}

.cert-foot span {
  flex: 1;
  max-width: 7rem;
  border-top: 1px solid var(--rule-strong);
  padding-top: 0.25rem;
  text-align: left;
}

.seal {
  flex: none;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--sheet) 0 26%, transparent 27%),
    repeating-conic-gradient(var(--done) 0 9deg, #2a9560 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 68%, transparent 69%);
  mask: radial-gradient(circle, #000 68%, transparent 69%);
}

/* Ticket (Dual Timer live, PlayPair) */
.ticket {
  background: var(--sheet);
  width: 100%;
  max-width: 26rem;
}

.ticket-main {
  padding: 1.4rem 1.5rem 1.2rem;
}

.ticket-stub {
  position: relative;
  border-top: 2px dashed var(--rule-strong);
  padding: 1.1rem 1.5rem 1.3rem;
}

.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  top: -0.8rem;
  width: 1.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--under);
}

.ticket-stub::before {
  left: -0.8rem;
}

.ticket-stub::after {
  right: -0.8rem;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ticket-title {
  font: 800 1.4rem/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ticket-note {
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.readouts dt {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.readouts dd {
  margin: 0;
}

.readouts output {
  display: block;
  font: 500 clamp(1.9rem, 1rem + 2.6vw, 2.7rem)/1.1 var(--font-type);
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.readouts .is-focus output {
  color: var(--done);
}

.ratio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.ratio output {
  min-width: 3ch;
  text-align: right;
  font-family: var(--font-type);
  color: var(--ink);
}

.ratio-bar {
  height: 8px;
  background: var(--rule);
  border-radius: 1px;
}

.ratio-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--done);
  transition: width 0.3s ease;
}

.ticket-actions {
  display: flex;
  gap: 0.75rem;
}

.code {
  font: 500 clamp(1.8rem, 1rem + 2.4vw, 2.5rem)/1 var(--font-type);
  letter-spacing: 0.22em;
  color: var(--ink);
  margin: 0.2rem 0 1rem;
}

.seats {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font: 400 0.82rem/1.3 var(--font-type);
  color: var(--ink-2);
}

.seats li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--rule-strong);
  padding-bottom: 0.3rem;
}

.barcode {
  height: 2.2rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px);
}

/* Proof sheet (Voxfold) */
.proof {
  width: min(100%, 22rem);
  background: var(--sheet);
  padding: 1.5rem 1.4rem 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.proof mark {
  background: none;
  color: inherit;
  text-decoration: underline wavy var(--future);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.proof-score {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--rule-strong);
  font: 400 0.82rem/1.2 var(--font-type);
  color: var(--ink-2);
  max-width: none;
}

.proof-score strong {
  font-weight: 500;
  color: var(--future);
}

/* Shipping tag (Printi Zoo) */
.tag {
  position: relative;
  width: min(100%, 16rem);
  background: var(--sheet);
  padding: 2.6rem 1.2rem 1.3rem;
  border-radius: 0 0 4px 4px;
}

.tag::before,
.tag::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--under);
}

.tag::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.tag::after {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.tag-hole {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: -0.45rem;
  border-radius: 50%;
  background: var(--under);
  box-shadow: inset 0 0 0 2px var(--rule-strong);
}

.tag-title {
  font: 800 1.2rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.roles {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.roles li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px dotted var(--rule-strong);
  padding-bottom: 0.4rem;
  color: var(--ink-2);
}

.roles b {
  font-weight: 700;
  color: var(--done);
}

/* Review note (MergeLens) */
.diff {
  width: min(100%, 21rem);
  background: var(--sheet);
  border-left: 5px solid var(--ink);
  padding: 1.1rem 1.1rem 1rem;
  font: 400 0.8rem/1.6 var(--font-type);
  color: var(--ink);
}

.diff p {
  max-width: none;
  font: inherit;
  color: inherit;
}

.diff .gone {
  color: var(--future);
}

.diff .add {
  color: var(--done);
}

.diff hr {
  border: none;
  border-top: 1px dashed var(--rule-strong);
  margin: 0.7rem 0;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 0.8rem + 7.4vw, 7rem);
  font-stretch: 112%;
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin-bottom: 1.75rem;
}

.hero .lead {
  max-width: 31rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.hero-desk {
  display: grid;
  justify-items: end;
}

.hero-desk .cert {
  width: 88%;
  --r: -4deg;
  margin-bottom: -3.4rem;
  justify-self: start;
}

.hero-desk .ticket {
  --r: 1.5deg;
  position: relative;
  z-index: 1;
}

/* One orchestrated moment: documents land on the desk */
.drop {
  animation: drop 0.85s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 130ms);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-30px) rotate(calc(var(--r, 0deg) - 6deg));
  }
}

/* The desk */
.desk {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 2vw, 1.75rem);
}

.cell {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c7 {
  grid-column: span 7;
}
.c5 {
  grid-column: span 5;
}
.c4 {
  grid-column: span 4;
}

.cell-art {
  --under: var(--desk);
  background: var(--desk);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  display: grid;
  place-items: center;
  min-height: 19rem;
  flex: 1;
}

.cell-cap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cell-cap h3 {
  font-size: 1.6rem;
}

.cell-cap p {
  font-size: 1rem;
  max-width: 44ch;
}

.cell-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cell-aux {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 5px;
}

.cell-aux:hover {
  text-decoration-color: var(--ink);
}

.desk-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}

.desk-note a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Process: a real sequence */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font: 900 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 1rem;
  max-width: 30ch;
}

/* Client jobs: ledger lines */
.jobs {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.jobs li {
  display: grid;
  grid-template-columns: minmax(10rem, 17rem) 1fr auto;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 2px dotted var(--rule-strong);
}

.jobs h3 {
  font-size: 1.3rem;
}

.jobs p {
  font-size: 1rem;
}

.jobs a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* About */
.split-two {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split-two h2 {
  margin-bottom: 0;
}

.split-two p {
  margin-bottom: 1.25rem;
}

/* Closing + footer on night */
.section--night {
  background: var(--night);
  color: var(--paper);
  border-bottom: none;
}

.section--night h2 {
  color: var(--paper);
  font-size: clamp(2.5rem, 1rem + 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.section--night p {
  color: rgba(237, 240, 232, 0.75);
  margin-bottom: 2rem;
}

.section--night .btn {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 3px 3px 0 var(--paper);
}

.section--night .link-quiet {
  color: var(--paper);
  text-decoration-color: rgba(237, 240, 232, 0.5);
}

.section--night .link-quiet:hover {
  color: var(--ink);
  text-decoration-color: var(--mint);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

footer {
  background: var(--night);
  border-top: 1px solid rgba(237, 240, 232, 0.14);
  padding: 2.5rem 0 3rem;
  color: rgba(237, 240, 232, 0.6);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(237, 240, 232, 0.75);
  text-decoration: underline;
  text-decoration-color: rgba(237, 240, 232, 0.25);
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration-color: var(--mint);
}

/* Inner pages: legal, about, contact, products */
.legal-wrapper,
.product-detail-wrapper {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.legal-wrapper {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-title {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 1rem + 4.5vw, 4.25rem);
}

.legal-meta {
  color: var(--ink-3);
  font: 400 0.82rem/1.4 var(--font-type);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.legal-content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
}

.legal-content h4 {
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul {
  margin: 0 0 1.25rem 1.4rem;
  color: var(--ink-2);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a,
.detail-block a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule-strong);
}

.product-detail-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.product-detail-header h1 {
  font-size: clamp(2.8rem, 1rem + 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.25rem;
}

.product-meta-item {
  font-size: 0.95rem;
  color: var(--ink-3);
}

.product-meta-item span {
  color: var(--ink);
  font-weight: 700;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 5vw, 4rem);
}

.product-detail-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.detail-block h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

.detail-block p {
  margin-bottom: 1rem;
}

.detail-block ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.detail-block li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
}

.detail-block li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

.product-detail-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  filter: drop-shadow(0 10px 12px rgba(16, 28, 22, 0.1));
}

.side-panel-title {
  font: 800 1rem/1.2 var(--font-display);
  font-stretch: 110%;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.detail-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-tag {
  display: inline-block;
  font: 400 0.76rem/1 var(--font-type);
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-channel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  filter: drop-shadow(0 12px 14px rgba(16, 28, 22, 0.12));
}

.channel-label {
  font: 400 0.8rem/1.2 var(--font-type);
  color: var(--ink-3);
}

.channel-title {
  font-size: 1.7rem;
}

.channel-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

/* Gentle entrance used on inner pages */
.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-in-up.appeared {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split-two {
    grid-template-columns: 1fr;
  }
  .hero-desk {
    justify-items: center;
  }
  .hero-desk .cert {
    width: 78%;
    margin-bottom: -2.4rem;
    justify-self: start;
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .cell,
  .c7,
  .c5,
  .c4 {
    grid-column: 1;
  }
  .cell-art {
    min-height: 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .steps p {
    max-width: 44ch;
  }
  .jobs li {
    grid-template-columns: 1fr;
  }
  .product-detail-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-side {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
