/* ============================================================
   HoWz Studios — "The Contact Sheet" design system (v3)
   Grounded in the actual tools of the practice: a light table, a
   grease pencil, a loupe, a job ticket. Not a dark agency theme,
   not a cream-and-serif template — a proofing table.
   Display: Archivo Expanded. Body: IBM Plex Sans. Data: IBM Plex Mono.
   ============================================================ */

:root {
  --paper:     #E4DECC;   /* light-table / mat-board surface */
  --paper-2:   #D9D2BC;   /* recessed panel */
  --card:      #EDE8DA;   /* raised card, slightly lighter than paper */

  --ink:       #17130F;
  --ink-soft:  rgba(23,19,15,0.64);
  --ink-faint: rgba(23,19,15,0.42);

  --line:      rgba(23,19,15,0.16);
  --line-2:    rgba(23,19,15,0.30);

  --cyan:        #1F4E79;  /* cyanotype blue — links, structure */
  --cyan-bright: #3D7CB8;
  --safelight:   #C23B22;  /* grease-pencil red — selects only, used sparingly */

  --display: 'Archivo Expanded', sans-serif;
  --sans:    'IBM Plex Sans', ui-sans-serif, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--safelight); color: var(--paper); }
img { max-width: 100%; display: block; }

.hz-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 640px) { .hz-wrap { padding: 0 20px; } }

/* ---------------- Registration marks (corner crop marks, fixed) ---------------- */
.hz-regmarks span { position: fixed; z-index: 250; width: 22px; height: 22px; pointer-events: none; opacity: 0.55; }
.hz-regmarks span::before, .hz-regmarks span::after { content: ''; position: absolute; background: var(--ink); }
.hz-regmarks span::before { width: 100%; height: 1px; top: 50%; }
.hz-regmarks span::after { height: 100%; width: 1px; left: 50%; }
.hz-regmarks .tl { top: 14px; left: 14px; }
.hz-regmarks .tr { top: 14px; right: 14px; }
.hz-regmarks .bl { bottom: 14px; left: 14px; }
.hz-regmarks .br { bottom: 14px; right: 14px; }
@media (max-width: 640px) { .hz-regmarks { display: none; } }

/* ---------------- Loupe (magnifier) cursor ---------------- */
@media (hover: hover) and (pointer: fine) {
  .hz-frame img, .hz-frame { cursor: none; }
}
.hz-loupe { position: fixed; top: 0; left: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 2px solid var(--ink); box-shadow: 0 6px 24px rgba(23,19,15,0.35), inset 0 0 0 4px rgba(228,222,204,0.9); pointer-events: none; z-index: 800; opacity: 0; transition: opacity .15s ease; background-repeat: no-repeat; }
.hz-loupe.is-active { opacity: 1; }
.hz-loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 22px rgba(23,19,15,0.28); }
@media (hover: none) { .hz-loupe { display: none; } }

/* ---------------- Nav (spec-sheet slate) ---------------- */
.hz-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: rgba(228,222,204,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.hz-nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.hz-brand { display: flex; align-items: center; gap: 9px; }
.hz-brand__logo { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; }
.hz-brand__mark { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; }
.hz-brand__roll { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; }
.hz-navlinks { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hz-navlinks__list { display: flex; align-items: center; gap: 22px; }
.hz-navlinks__list a { padding-bottom: 3px; border-bottom: 1px solid transparent; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.hz-navlinks__list a:hover, .hz-navlinks__list a[aria-current="page"] { border-color: var(--safelight); color: var(--ink); }
.hz-navlinks a.hz-navlinks__cta { padding: 8px 16px; border: 1px solid var(--ink); color: var(--ink); transition: background .2s, color .2s; }
.hz-navlinks a.hz-navlinks__cta:hover { background: var(--ink); color: var(--paper); }
.hz-menubtn { display: none; }
@media (max-width: 780px) {
  .hz-navlinks__list { display: none; }
  .hz-menubtn { display: inline-flex; align-items: center; background: none; border: 1px solid var(--line-2); padding: 8px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
}

/* Mobile index panel */
.hz-overlay { position: fixed; inset: 0; z-index: 400; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 40px 28px; transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.9,.3,1); }
.hz-overlay.is-open { transform: translateY(0); }
.hz-overlay__close { position: absolute; top: 22px; right: 24px; background: none; border: none; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.hz-overlay__links { display: flex; flex-direction: column; }
.hz-overlay__links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 16px 0; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 14px; }
.hz-overlay__links a span { font-family: var(--display); font-size: clamp(26px,9vw,40px); text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.hz-overlay__foot { margin-top: 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 18px; flex-wrap: wrap; }
.hz-overlay__foot a { color: var(--ink); border-bottom: 1px solid var(--line-2); }

/* ---------------- Hero: the contact sheet ---------------- */
.hz-hero { padding: 120px 0 0; }
.hz-hero__top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; padding-bottom: 40px; }
@media (max-width: 860px) { .hz-hero__top { grid-template-columns: 1fr; gap: 20px; } }
.hz-hero__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.hz-hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 74px); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.hz-hero__sub { font-size: 15px; color: var(--ink-soft); line-height: 1.7; max-width: 380px; }
.hz-hero__sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; background: var(--ink); padding: 3px; }
@media (max-width: 860px) { .hz-hero__sheet { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .hz-hero__sheet { grid-template-columns: repeat(3, 1fr); } }
.hz-frame { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--ink); }
.hz-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05); transition: filter .35s ease; }
.hz-frame:hover img { filter: grayscale(0) contrast(1.08); }
.hz-frame__num { position: absolute; left: 4px; bottom: 3px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.03em; color: rgba(228,222,204,0.85); text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.hz-frame--hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 520px) { .hz-frame--hero { grid-column: span 3; } }
.hz-frame--blank { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.hz-frame--blank span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(228,222,204,0.35); }

/* Grease-pencil select mark */
.hz-select { position: absolute; inset: 6%; border: 3px solid var(--safelight); border-radius: 50%; opacity: 0; transform: scale(0.85) rotate(-4deg); transition: opacity .3s ease, transform .3s ease; pointer-events: none; mix-blend-mode: multiply; }
.hz-frame:hover .hz-select, .hz-select.is-shown { opacity: 0.82; transform: scale(1) rotate(-4deg); }

.hz-hero__slate { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; gap: 8px; }
.hz-hero__slate strong { color: var(--ink); }

/* ---------------- Buttons ---------------- */
.hz-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink); color: var(--ink); transition: background .2s, color .2s; }
.hz-btn:hover { background: var(--ink); color: var(--paper); }
.hz-btn--primary { background: var(--ink); color: var(--paper); }
.hz-btn--primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--paper); }
.hz-btn--sm { padding: 9px 16px; font-size: 11px; }
.hz-btn__arrow { display: inline-block; transition: transform .25s ease; }
.hz-btn:hover .hz-btn__arrow { transform: translateX(4px); }

/* ---------------- Sections ---------------- */
.hz-section { padding: 90px 0; border-bottom: 1px solid var(--line-2); }
.hz-section--tight { padding: 54px 0; }
.hz-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.hz-section__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; display: block; }
.hz-section__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px,3.4vw,38px); text-transform: uppercase; letter-spacing: -0.005em; color: var(--ink); }
.hz-section__lede { font-size: 14.5px; color: var(--ink-soft); max-width: 440px; line-height: 1.7; }

/* ---------------- Job ticket (about / stats replacement) ---------------- */
.hz-ticket { border: 1px solid var(--line-2); background: var(--card); }
.hz-ticket__row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.hz-ticket__row:last-child { border-bottom: none; }
@media (max-width: 560px) { .hz-ticket__row { grid-template-columns: 1fr; gap: 4px; } }
.hz-ticket__key { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.hz-ticket__val { font-family: var(--sans); font-size: 14.5px; color: var(--ink); }
.hz-ticket__val a { color: var(--cyan); border-bottom: 1px solid rgba(31,78,121,0.3); }

/* ---------------- Index list (services / catalog) ---------------- */
.hz-index { display: flex; flex-direction: column; }
.hz-index__row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-2); transition: padding-left .2s, background .2s; }
.hz-index__row:last-child { border-bottom: 1px solid var(--line-2); }
.hz-index__row:hover { padding-left: 14px; background: var(--card); }
.hz-index__frame { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.hz-index__body { display: flex; flex-direction: column; gap: 4px; }
.hz-index__title { font-family: var(--display); font-weight: 700; font-size: clamp(18px,2.4vw,26px); text-transform: uppercase; color: var(--ink); }
.hz-index__desc { font-size: 13px; color: var(--ink-soft); max-width: 480px; }
.hz-index__arrow { font-family: var(--mono); font-size: 16px; color: var(--cyan); transition: transform .2s; }
.hz-index__row:hover .hz-index__arrow { transform: translateX(5px); }

/* ---------------- Filter pills (Work page) ---------------- */
.hz-filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-2); width: fit-content; }
.hz-filter-pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 16px; color: var(--ink-soft); background: none; border: none; border-right: 1px solid var(--line-2); cursor: pointer; transition: background .2s, color .2s; }
.hz-filter-pill:last-child { border-right: none; }
.hz-filter-pill:hover { color: var(--ink); }
.hz-filter-pill.is-active { background: var(--ink); color: var(--paper); }

/* ---------------- Work grid (numbered frames) ---------------- */
.hz-workgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: var(--line-2); border: 1px solid var(--line-2); }
@media (max-width: 980px) { .hz-workgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .hz-workgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .hz-workgrid { grid-template-columns: 1fr; } }
.hz-work { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--card); }
.hz-work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.05); transition: filter .35s ease; }
.hz-work:hover img { filter: grayscale(0) contrast(1.08); }
.hz-work__num { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; color: rgba(228,222,204,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.7); z-index: 1; }
.hz-work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(23,19,15,0.85), transparent); opacity: 0; transition: opacity .25s; }
.hz-work:hover .hz-work__cap { opacity: 1; }
.hz-work__cap span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); opacity: .7; margin-bottom: 4px; }
.hz-work__cap strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--paper); }
.hz-work--text { background: var(--card); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hz-work--text::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 6px; background: var(--cyan); }
.hz-work[data-tags="branding"].hz-work--text::before { background: var(--safelight); }
.hz-work--text .hz-work__frame { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
.hz-work--text .hz-work__title { font-family: var(--display); font-weight: 800; font-size: clamp(26px,3.8vw,42px); text-transform: uppercase; color: var(--ink); margin: 16px 0 10px; line-height: 0.92; letter-spacing: -0.01em; }
.hz-work--text .hz-work__desc { font-size: 12.5px; color: var(--ink-soft); max-width: 22ch; }
.hz-work--text .hz-work__link { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.hz-work--blank { background-color: var(--ink); background-image: repeating-linear-gradient(135deg, rgba(228,222,204,0.05) 0 12px, transparent 12px 24px); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 22px; }
.hz-work--blank .hz-work__frame { font-family: var(--mono); font-size: 10px; color: rgba(228,222,204,0.55); }
.hz-work--blank .hz-work__title { font-family: var(--display); font-weight: 800; font-size: clamp(24px,3.4vw,36px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; color: var(--paper); }
.hz-work--blank .hz-work__desc { font-size: 12px; color: rgba(228,222,204,0.62); margin-top: 10px; max-width: 22ch; }

/* ---------------- About / statement split ---------------- */
.hz-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .hz-split { grid-template-columns: 1fr; gap: 28px; } }
.hz-split__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.hz-split__statement { font-family: var(--display); font-weight: 700; font-size: clamp(20px,2.6vw,30px); text-transform: uppercase; line-height: 1.25; color: var(--ink); }
.hz-split p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 15px; }

/* ---------------- Panel (contact / CTA) ---------------- */
.hz-panel { background: var(--ink); color: var(--paper); padding: 56px 44px; }
.hz-panel .hz-section__label { color: rgba(228,222,204,0.55); }
.hz-panel h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px,3.4vw,38px); text-transform: uppercase; margin-bottom: 16px; }
.hz-panel p { color: rgba(228,222,204,0.68); font-size: 14.5px; line-height: 1.7; max-width: 500px; margin-bottom: 26px; }
.hz-panel .hz-btn { border-color: rgba(228,222,204,0.4); color: var(--paper); }
.hz-panel .hz-btn:hover { background: var(--paper); color: var(--ink); }
.hz-panel .hz-btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hz-panel .hz-btn--primary:hover { background: var(--cyan-bright); color: var(--paper); border-color: var(--cyan-bright); }

/* ---------------- Available-for list ---------------- */
.hz-avail { list-style: none; display: flex; flex-direction: column; }
.hz-avail li { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line-2); font-family: var(--sans); font-weight: 500; font-size: 15px; }
.hz-avail li:first-child { padding-top: 0; }
.hz-avail li:last-child { border-bottom: none; }
.hz-avail a { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--cyan); text-transform: uppercase; }

/* ---------------- Page hero (subpages) ---------------- */
.hz-pagehero { padding: 140px 0 50px; }
.hz-pagehero__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.hz-pagehero__title { font-family: var(--display); font-weight: 700; font-size: clamp(32px,5.6vw,64px); line-height: 1; text-transform: uppercase; letter-spacing: -0.005em; color: var(--ink); max-width: 18ch; }
.hz-pagehero__sub { margin-top: 18px; font-size: 15px; color: var(--ink-soft); max-width: 560px; line-height: 1.7; }

/* ---------------- Footer ---------------- */
.hz-footer { padding: 50px 0 34px; border-top: 1px solid var(--line-2); }
.hz-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line-2); }
.hz-footer__mark { font-family: var(--display); font-weight: 700; font-size: clamp(24px,4vw,42px); text-transform: uppercase; letter-spacing: -0.005em; color: var(--ink); }
.hz-footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.hz-footer__links a { color: var(--ink-soft); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hz-footer__links a:hover { color: var(--cyan); border-color: var(--cyan); }
.hz-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.hz-footer__bottom a { color: var(--ink-faint); }
.hz-footer__bottom a:hover { color: var(--cyan); }

/* ---------------- Reveal ---------------- */
.hz-rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.hz-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hz-rv { opacity: 1; transform: none; } }
