/* ============================================================
   signguy.cc
   Design language: the print proof / shop drawing.
   Panel white, vinyl black, caution yellow, aluminum hairlines.
   Type: Archivo (display, expanded caps), Barlow (body),
         IBM Plex Mono (job-ticket labels).
   ============================================================ */

:root {
  --panel: #fcfcfa;      /* ACM panel white */
  --ink: #141310;        /* cut-vinyl black */
  --yellow: #ffc400;     /* caution / vinyl yellow */
  --alu: #d8d7d0;        /* aluminum hairline */
  --red: #d6362b;        /* plotter proof red, sparing */
  --muted: #6d6b64;      /* secondary text */

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --content: 68rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--panel);
  color: var(--ink);
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

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

/* ------------------------------------------------------------
   Shared pieces
   ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow__tick {
  width: 1.5rem;
  height: 0.55rem;
  background: var(--yellow);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 95;
  font-weight: 750;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin-top: 1rem;
}

main > section {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   Job ticket bar
   ------------------------------------------------------------ */

.ticket-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  max-width: var(--content);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--alu);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.ticket-bar__site { font-weight: 500; }

.ticket-bar__meta { color: var(--muted); text-align: right; }

/* ------------------------------------------------------------
   Hero: the proof sheet
   ------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* Crop marks at the four corners of the proof */
.crop {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.crop--tl { top: 14px; left: 14px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.crop--tr { top: 14px; right: 14px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.crop--bl { bottom: 14px; left: 14px; border-bottom: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.crop--br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 880;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 1.25rem;
}

.hero__line { display: block; }

.hero__subline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-weight: 640;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  margin-top: 1rem;
}

.hero__subline mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0.1em 0.35em;
  box-decoration-break: clone;
}

.hero__intro {
  max-width: 44ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Drafting dimension line: |<--- label --->| */
.dim {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  max-width: 34rem;
}

.dim__tick {
  width: 2px;
  height: 18px;
  background: var(--red);
  flex: none;
}

.dim__rule {
  flex: 1;
  height: 2px;
  background: var(--red);
  transform-origin: center;
}

.dim__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red);
  padding-inline: 0.75rem;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .dim__rule { animation: dim-draw 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.3s; }
  .dim__label, .dim__tick { animation: dim-fade 0.5s ease both 0.9s; }
  @keyframes dim-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes dim-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Photo taped to the proof */
.hero__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  transform: rotate(1.2deg);
}

.hero__photo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--alu);
  box-shadow: 0 10px 28px rgba(20, 19, 16, 0.14);
  background: var(--ink);
}

.tape {
  position: absolute;
  width: 5.5rem;
  height: 1.6rem;
  background: rgba(255, 244, 179, 0.75);
  border: 1px solid rgba(20, 19, 16, 0.08);
  box-shadow: 0 1px 2px rgba(20, 19, 16, 0.08);
  z-index: 1;
}
.tape--tl { top: -0.7rem; left: -1.6rem; transform: rotate(-38deg); }
.tape--tr { top: -0.7rem; right: -1.6rem; transform: rotate(38deg); }

.hero__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.9rem;
  text-align: center;
}

/* ------------------------------------------------------------
   Origin
   ------------------------------------------------------------ */

.origin { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--alu); }

.origin__body p {
  max-width: var(--measure);
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.65;
  font-weight: 400;
}

/* ------------------------------------------------------------
   Products: the work order
   ------------------------------------------------------------ */

.products { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--alu); }

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

.card {
  border: 1px solid var(--alu);
  border-top: 4px solid var(--ink);
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}

.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.card--wide__copy { display: flex; flex-direction: column; }

.card__line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 115;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-top: 0.65rem;
  line-height: 1;
}

.card__tagline {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--alu);
}

.card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-top: 1.25rem;
}

.card__label + .card__text { margin-top: 0.3rem; }

.card__text { color: var(--ink); max-width: 52ch; }

.card__cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.card__cta:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--yellow);
}

.card__cta span { transition: transform 0.15s ease; display: inline-block; }
.card__cta:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------
   Before/after slider (.ba)
   Swap the two <img> src values for real photos; keep matching
   aspect ratios. Everything else needs no rework.
   ------------------------------------------------------------ */

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--alu);
  background: var(--alu);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__chip {
  position: absolute;
  top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--panel);
  z-index: 2;
  pointer-events: none;
}

.ba__chip--before { left: 0.75rem; }
.ba__chip--after { right: 0.75rem; background: var(--yellow); color: var(--ink); }

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 3;
  cursor: ew-resize;
}

/* the blade */
.ba__divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(20, 19, 16, 0.25);
}

/* the squeegee grip */
.ba__squeegee {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 4.2rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0.6rem 0.6rem 0.35rem 0.35rem;
  box-shadow: 0 4px 12px rgba(20, 19, 16, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* felt edge at the bottom of the squeegee */
.ba__squeegee::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: var(--ink);
  border-radius: 0 0 2px 2px;
}

.ba__grip,
.ba__grip::before,
.ba__grip::after {
  display: block;
  width: 1.35rem;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.ba__grip { position: relative; }
.ba__grip::before { position: absolute; top: -8px; left: 0; }
.ba__grip::after { position: absolute; top: 8px; left: 0; }

.ba__divider:focus-visible {
  outline: none;
}

.ba__divider:focus-visible .ba__squeegee {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Manifesto: mounted sign panel
   ------------------------------------------------------------ */

.manifesto { padding-block: clamp(3rem, 7vw, 5.5rem); }

.panel {
  position: relative;
  background: var(--ink);
  color: var(--panel);
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 19, 16, 0.22);
}

.screw {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2f1ec, #b9b8b0 60%, #8f8e86);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.45);
}
.screw::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 2px;
  transform: translateY(-50%) rotate(-30deg);
  background: rgba(20, 19, 16, 0.55);
  border-radius: 1px;
}
.screw--tl { top: 14px; left: 14px; }
.screw--tr { top: 14px; right: 14px; }
.screw--bl { bottom: 14px; left: 14px; }
.screw--br { bottom: 14px; right: 14px; }
.screw--tr::before { transform: translateY(-50%) rotate(55deg); }
.screw--bl::before { transform: translateY(-50%) rotate(10deg); }
.screw--br::before { transform: translateY(-50%) rotate(-70deg); }

.eyebrow--onpanel { color: var(--yellow); }

.beliefs {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.8rem 3rem;
}

@media (min-width: 861px) {
  .beliefs { grid-template-columns: 1fr 1fr; }
}

.beliefs li {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 105;
  font-weight: 780;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  padding-left: 1.4rem;
  position: relative;
}

.beliefs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--yellow);
}

/* ------------------------------------------------------------
   Proof
   ------------------------------------------------------------ */

.proof {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.proof__text {
  max-width: var(--measure);
  margin-top: 1rem;
  font-size: 1.15rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  max-width: var(--content);
  margin-inline: auto;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--alu);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__name { font-weight: 600; }

.footer__mail {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer__links a {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer__fine {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { width: min(100%, 18rem); justify-self: start; margin-top: 1rem; }
  .products__grid { grid-template-columns: 1fr; }
  .card--wide { grid-template-columns: 1fr; }
  .ticket-bar__meta { display: none; }
}

@media (max-width: 480px) {
  .dim__label { font-size: 0.62rem; padding-inline: 0.4rem; }
  .crop { width: 12px; height: 12px; }
}
