/* ============================================================
   Seek Digital — interior pages
   Extends assets/css/styles.css. Same tokens, same rules,
   same flat plates. Nothing new is invented here.

   1. Page frame
   2. Breadcrumbs
   3. Page head
   4. Prose
   5. Definition lists & steps
   6. Case study furniture
   7. Related cards
   8. Legal pages
   9. Page CTA
   10. Responsive
   ============================================================ */

/* ---------- 1. Page frame ---------- */
.page {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) 0;
}
.page__section {
  border-top: var(--rule);
  padding-top: 22px;
  margin-top: clamp(44px, 5vw, 72px);
}
.page__h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: .9;
  letter-spacing: .012em;
  margin: 0 0 26px;
}
.page__note {
  color: var(--ink-55);
  font-size: .95rem;
  margin: -14px 0 26px;
  max-width: 60ch;
}

/* ---------- 2. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--ink-55);
  margin-bottom: 26px;
}
.crumbs a { color: var(--ink-55); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.crumbs a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.crumbs__sep { color: var(--ink-15); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- 3. Page head ---------- */
.page__head { padding-bottom: clamp(16px, 2vw, 28px); }
.page__kicker {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 18px;
}
.page__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .84;
  letter-spacing: .012em;
  margin: 0 0 26px;
}
.page__title--legal { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.page__stand {
  font-size: clamp(1.08rem, .6vw + 1rem, 1.34rem);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 52ch;
  margin-bottom: 28px;
}
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 4. Prose ---------- */
.page__prose { max-width: 66ch; }
.page__prose p { margin-bottom: 1.1em; font-size: 1.06rem; }
.page__prose p:last-child { margin-bottom: 0; }
.page__prose a { color: var(--blue); border-bottom: 1px solid var(--primary); }
.page__prose a:hover { border-bottom-color: var(--blue); }

/* ---------- 5. Definition lists & steps ---------- */
.deflist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 60px);
}
.deflist > div { border-top: var(--hair); padding: 16px 0 20px; }
.deflist dt {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.deflist dd { font-size: .97rem; line-height: 1.5; color: var(--ink-70); max-width: 44ch; }

.steplist { display: grid; }
.pstep-lite {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(14px, 2vw, 32px);
  border-top: var(--hair);
  padding: 20px 0 22px;
}
.pstep-lite__no {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--salmon);
}
.pstep-lite h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.42rem;
  letter-spacing: .04em;
  margin: 0 0 6px;
}
.pstep-lite p { color: var(--ink-70); font-size: .99rem; max-width: 58ch; margin: 0; }

.notlist { display: grid; }
.notlist li {
  position: relative;
  border-top: var(--hair);
  padding: 15px 0 16px 30px;
  color: var(--ink-70);
  font-size: 1rem;
  max-width: 68ch;
}
.notlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55em;
  width: 16px; height: 1px;
  background: var(--primary);
}

/* ---------- 6. Case study furniture ---------- */
.sample-flag {
  display: inline-block;
  background: var(--primary);
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .92rem;
  letter-spacing: .1em;
  padding: 7px 14px 4px;
  transform: rotate(-1.2deg);
}
.case-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.case-hero--blue { background: var(--plate); }
.case-hero--salmon { background: var(--plate); }
.case-hero--ink { background: var(--ink); }
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
    rgba(0,0,0,.10) 0 1px, transparent 1px 7px);
}
.case-hero--salmon::after {
  background-image: repeating-linear-gradient(-45deg,
    rgba(40,40,40,.10) 0 1px, transparent 1px 7px);
}
/* ---- client logo, drawn in once as the page opens ----
   Every path carries pathLength="1", so the same dash values work for any viewBox.
   The mark sits above the plate's screen texture so it reproduces clean. */
.case-hero__logo {
  position: relative;
  z-index: 1;
  width: 46%;
  height: 66%;
  color: var(--paper);
}
.case-hero__logo--frateria { width: 62%; }
/* Black, the plate's own ink. This was --ink, which is white in the dark build:
   a white logo on a bone plate, 1.4:1. */
.case-hero--salmon .case-hero__logo { color: var(--paper); }
.case-hero__logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.case-hero__logo path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: no-preference) {
  .js .case-hero__logo path {
    fill-opacity: 0;
    stroke-width: 1.35;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation:
      caseDraw .95s cubic-bezier(.4,0,.1,1) calc(.35s + var(--i, 1) * .035s) forwards,
      caseInk  .5s  cubic-bezier(.4,0,.1,1) 1.25s forwards;
  }
}
@keyframes caseDraw { to { stroke-dashoffset: 0; } }
@keyframes caseInk  { to { fill-opacity: 1; stroke-width: 0; } }

@media (max-width: 720px) {
  .case-hero__logo { width: 40%; height: 62%; }
  .case-hero__logo--frateria { width: 68%; }
}

/* factual spec row — platform, language, scope, location. No metrics. */
.factrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.factrow > div {
  border-left: var(--hair);
  padding: 0 20px;
}
.factrow > div:first-child { border-left: 0; padding-left: 0; }
.factrow dt {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .92rem;
  letter-spacing: .12em;
  color: var(--ink-55);
  margin-bottom: 6px;
}
.factrow dd {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: .03em;
  color: var(--blue);
}

.page__note--after {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: var(--hair);
  color: var(--ink-70);
}
.page__note--after a {
  color: var(--blue);
  border-bottom: 1px solid var(--primary);
}
.page__note--after a:hover { border-bottom-color: var(--blue); }

.figrow {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
}
.figrow > div { min-width: 160px; }
.figrow dt {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.figrow dd { font-size: .92rem; color: var(--ink-70); margin-top: 6px; }

/* ---------- 6b. The reel ----------
   A case study whose work is a video shows the video. It sits at its own 9:16
   beside the list that walks through it, so the reader can press play and
   follow the beats in the same glance.

   Nothing plays until it is asked to: the reel has sound. The video is
   preload="none" behind a poster, so a reader who never presses play never
   downloads it, and there is no autoplay for the reduced-motion block to carve
   an exception for. The markup ships native controls; main.js module 29 takes
   them off and shows the button, so it still plays with no script at all. */
.page__section[id] { scroll-margin-top: 110px; }
.reelrow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  margin-top: clamp(20px, 2.4vw, 32px);
}
/* one column: the list is the reel's running order, and two columns read 1-2,
   3-4 across instead of 1 to 5 down */
.reelrow > .deflist { grid-column: 6 / 13; grid-template-columns: minmax(0, 1fr); }
.reel {
  grid-column: 1 / 5;
  max-width: 320px;        /* 569px tall: the whole reel fits a laptop screen */
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--panel);
}
.reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* One control, covering the reel, with its label on a solid chip. Bone with
   black type is 15.4:1 whatever frame is underneath it; a label set straight
   on the video would be measured against a picture that changes thirty times
   a second. */
.reel__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.reel__play[hidden] { display: none; }
.reel__chip {
  display: inline-flex;
  align-items: center;
  padding: 13px 15px;
  background: var(--plate);
  color: var(--paper);
  font-family: var(--text);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
/* play is a triangle and pause is two bars, both drawn with borders so neither
   needs a glyph the mono face may not carry */
.reel__chip::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: .75em;
  border-style: solid;
  border-width: .38em 0 .38em .62em;
  border-color: transparent transparent transparent currentColor;
}
.reel.is-playing .reel__chip::before {
  width: .22em;
  height: .76em;
  border-width: 0 .2em;
  border-color: currentColor;
}
/* a flex item's leading space collapses, and the separator needs it */
.reel__len { white-space: pre; }
.reel.is-playing .reel__len { display: none; }
.reel__play:focus-visible .reel__chip {
  background: var(--paper);
  color: var(--ink);
}
@media (hover: hover) {
  .reel__play:hover .reel__chip {
    background: var(--paper);
    color: var(--ink);
  }
}
@media (max-width: 900px) {
  .reel { grid-column: 1 / 6; }
  .reelrow > .deflist { grid-column: 6 / 13; }
  /* the reel is narrow here and the Romanian label is the longer one */
  .reel__len { display: none; }
}
@media (max-width: 720px) {
  /* stacked: at full column width the reel would be taller than the screen */
  .reel { grid-column: 1 / 13; max-width: 280px; }
  .reelrow > .deflist { grid-column: 1 / 13; }
}
@media print {
  .reel { display: none; }
}

/* The 5 to go roundel on the hero plate: the type is knocked out in the
   plate's colour so the disc does not fill solid (styles.css section 30b). */
.case-hero__logo--5togo { width: 30%; height: 70%; }
.case-hero__logo--5togo path.k { fill: var(--plate); }
@media (max-width: 720px) {
  .case-hero__logo--5togo { width: 40%; height: 70%; }
}

/* ---------- 7. Related cards ---------- */
.relgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.relcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: var(--rule);
  border-left: var(--hair);
  padding: 22px 24px 26px;
  transition: background-color .3s ease;
}
.relcard:first-child { border-left: 0; padding-left: 0; }
.relcard:hover { background: rgba(149, 6, 6, .22); }
.relcard__label {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--ink-55);
}
.relcard__name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.02;
  letter-spacing: .03em;
}
.relcard .arrow-link { margin-top: auto; padding-top: 14px; }

/* ---------- 8. Legal pages ---------- */
.page--legal .page__section { margin-top: clamp(34px, 4vw, 52px); }
.page--legal .page__h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.legal-note {
  border: 1px solid var(--primary);
  border-left-width: 4px;
  background: rgba(149, 6, 6, .22);
  padding: 18px 20px;
  max-width: 66ch;
}
.legal-note p { margin: 0; font-size: .96rem; color: var(--ink); }
/* Unfilled legal placeholders. nowrap kept them on one line, which is right for
   a short token like [number] and wrong for the long ones — at 390px
   "[transfer mechanism — e.g. Standard Contractual Clauses]" ran 504px wide and
   pushed the document 135px past the viewport. Wrap, but never mid-word, so a
   short token still reads as one unit. */
.tok {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .86em;
  background: var(--plate);
  color: var(--paper);
  padding: 1px 6px;
  white-space: normal;
  overflow-wrap: break-word;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.legal-date { color: var(--ink-55); font-size: .92rem; }
.scroll-x { overflow-x: auto; }
.ltable { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
.ltable th, .ltable td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: var(--hair);
  vertical-align: top;
}
.ltable th {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--ink-55);
  border-bottom: var(--rule);
}
.ltable td { color: var(--ink-70); }

/* ---------- 9. Page CTA ---------- */
/* Full bleed, and its lead paragraph is --paper-70 — 3.97:1 on the primary,
   under the 4.5:1 it needs. Plate. */
.page__cta {
  background: var(--plate);
  color: var(--paper);
  margin-top: clamp(56px, 7vw, 100px);
  /* break out of the page container to full bleed */
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}
.page__cta-inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter);
}
.page__cta h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: .88;
  letter-spacing: .012em;
  margin: 0 0 18px;
}
.page__cta p {
  color: var(--paper-70);
  max-width: 46ch;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 900px) {
  .deflist { grid-template-columns: 1fr; }
  .relgrid { grid-template-columns: 1fr; }
  .relcard { border-left: 0; padding-inline: 0; }
  .relcard:first-child { border-top: var(--rule); }
}

@media (max-width: 760px) {
  .factrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .factrow > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .pstep-lite { grid-template-columns: 1fr; gap: 6px; }
  .pstep-lite__no { font-size: 1.5rem; }
  .figrow { gap: 22px 40px; }
  .case-hero { aspect-ratio: 16 / 9; }
}

/* ---------- 404 ----------
   The same system, not a dead end: a numbered error label set like a section
   ordinal, and the four things anybody who lands here actually wanted. */
.notfound__code {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 14px;
}
.notfound__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: var(--rule);
}
.notfound__item {
  border-bottom: var(--hair);
  padding: 20px 0 18px;
}
.notfound__item + .notfound__item { border-left: none; }
.notfound__link {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: .012em;
  line-height: 1;
  color: var(--ink);
  transition: color .25s ease;
}
.notfound__note {
  display: block;
  margin-top: 6px;
  font-size: .95rem;
  color: var(--ink-55);
  max-width: 34ch;
}
@media (hover: hover) {
  .notfound__link:hover { color: var(--blue); }
}
@media (min-width: 720px) {
  .notfound__list { gap: 0 clamp(24px, 4vw, 56px); }
}
