/* CAN Home — gray-box wireframe tokens & layout
   Roles only (size/weight/tracking). No brand faces or palette. */

:root {
  /* Neutrals only */
  --wf-bg: #f5f5f5;
  --wf-surface: #e5e5e5;
  --wf-border: #ccc;
  --wf-ink: #111;
  --wf-muted: #666;

  /* Type roles — system stack for all */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --type-display-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  --type-display-weight: 700;
  --type-display-tracking: -0.02em;
  --type-display-line: 1.1;

  --type-title-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  --type-title-weight: 650;
  --type-title-tracking: -0.015em;
  --type-title-line: 1.2;

  --type-card-size: 1.125rem;
  --type-card-weight: 600;
  --type-card-tracking: -0.01em;
  --type-card-line: 1.3;

  --type-body-size: 1rem;
  --type-body-weight: 400;
  --type-body-tracking: 0;
  --type-body-line: 1.55;

  --type-meta-size: 0.75rem;
  --type-meta-weight: 500;
  --type-meta-tracking: 0.06em;
  --type-meta-line: 1.4;

  --type-ui-size: 0.9375rem;
  --type-ui-weight: 500;
  --type-ui-tracking: 0;
  --type-ui-line: 1.3;

  /* Spacing — 4/8-based */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 — section pad-y */

  --gutter: 1.25rem;
  --content-max: 76rem;
  --measure: 40rem;
  --form-max: 34rem;

  --header-h: 3.5rem;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  letter-spacing: var(--type-body-tracking);
  line-height: var(--type-body-line);
  color: var(--wf-ink);
  background: #fff;
}

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

a {
  color: inherit;
}

/* —— Role utilities —— */
.role-display {
  font-family: var(--font);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-display-tracking);
  line-height: var(--type-display-line);
  margin: 0;
}

.role-title {
  font-family: var(--font);
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  letter-spacing: var(--type-title-tracking);
  line-height: var(--type-title-line);
  margin: 0;
}

.role-card {
  font-family: var(--font);
  font-size: var(--type-card-size);
  font-weight: var(--type-card-weight);
  letter-spacing: var(--type-card-tracking);
  line-height: var(--type-card-line);
  margin: 0;
}

.role-body {
  font-family: var(--font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  letter-spacing: var(--type-body-tracking);
  line-height: var(--type-body-line);
  margin: 0;
}

.role-meta {
  font-family: var(--font);
  font-size: var(--type-meta-size);
  font-weight: var(--type-meta-weight);
  letter-spacing: var(--type-meta-tracking);
  line-height: var(--type-meta-line);
  text-transform: uppercase;
  color: var(--wf-muted);
  margin: 0;
}

.role-ui {
  font-family: var(--font);
  font-size: var(--type-ui-size);
  font-weight: var(--type-ui-weight);
  letter-spacing: var(--type-ui-tracking);
  line-height: var(--type-ui-line);
}

/* —— Layout shell —— */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-16);
}

.section + .section {
  border-top: 1px solid var(--wf-border);
}

.eyebrow {
  margin-bottom: var(--space-3);
}

.section-head {
  margin-bottom: var(--space-8);
  max-width: var(--measure);
}

.section-head .role-title {
  margin-top: var(--space-2);
}

.section-lead {
  margin-top: var(--space-4);
  color: var(--wf-muted);
  max-width: var(--measure);
}

/* —— Slots (empty gray boxes) —— */
.slot {
  background: var(--wf-surface);
  border: 1px dashed var(--wf-border);
  color: var(--wf-muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
  font-family: var(--font);
  font-size: var(--type-meta-size);
  font-weight: var(--type-meta-weight);
  letter-spacing: var(--type-meta-tracking);
  text-transform: uppercase;
}

.slot--16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.slot--4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.slot--4x5 {
  aspect-ratio: 4 / 5;
  width: 100%;
}

/* Filled media: crop via cover, never distort */
.slot--media {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  display: block;
  color: transparent;
}

.slot--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.atf__media .slot--media img {
  /* SD #79 Badlands ridge; keep both riders in the 16:9 cover crop */
  object-position: center 40%;
}

.slot--identity {
  width: 7.5rem;
  height: 2rem;
  padding: 0;
}

/* —— Chrome / header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--wf-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

.site-header__inner .site-nav {
  margin-left: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  text-decoration: none;
  color: var(--wf-muted);
  border-bottom: 1px dashed transparent;
  padding-block: var(--space-1);
}

.site-nav a:hover {
  color: var(--wf-ink);
  border-bottom-color: var(--wf-border);
}

.nav-slot {
  min-width: 3.5rem;
  display: inline-block;
  border-bottom: 1px dashed var(--wf-border);
  color: var(--wf-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--wf-ink);
  background: var(--wf-ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.btn--ghost {
  background: transparent;
  color: var(--wf-ink);
}

.btn--contact {
  padding: var(--space-2) var(--space-4);
}

.text-link {
  color: var(--wf-ink);
  text-underline-offset: 0.2em;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--wf-border);
  background: var(--wf-bg);
  color: var(--wf-ink);
  cursor: pointer;
  font: inherit;
}

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--wf-border);
  background: #fff;
  padding: var(--space-4) var(--gutter) var(--space-6);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-drawer__list a {
  text-decoration: none;
  color: var(--wf-muted);
  padding-block: var(--space-2);
  border-bottom: 1px dashed var(--wf-border);
}

.nav-drawer__contact {
  margin-top: var(--space-4);
}

@media (min-width: 48rem) {
  .nav-drawer {
    display: none !important;
  }
}

/* —— 1. ATF —— */
.atf {
  padding-block: var(--space-12) var(--space-16);
}

.atf__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.atf__type {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 36rem;
}

.atf__type .role-display {
  margin-top: var(--space-1);
}

.atf__sub {
  color: var(--wf-muted);
  margin-top: var(--space-2);
  max-width: 32rem;
}

.atf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 64rem) {
  .atf__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
  }
}

/* —— 2. Proof —— */
.proof {
  padding-block: var(--space-10);
  background: var(--wf-bg);
  border-top: 1px solid var(--wf-border);
  border-bottom: 1px solid var(--wf-border);
}

.proof .section-head {
  margin-bottom: var(--space-6);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.proof-slot {
  aspect-ratio: 3 / 1;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  overflow: hidden;
  /* Contrast: light plate so dark wordmarks read; swap to dark plate only for light/white marks */
  background: #f7f7f7;
  border: 1px solid var(--wf-border, #d0d0d0);
}

/* Logo rule: full mark visible, never cropped or warped */
.proof-slot img,
.proof-slot svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Catch Surf neon lockup is taller (~1.35:1); tighten pad so it fills the 3:1 cell */
.proof-slot--catch {
  padding: 0.2rem;
}

.proof-slot--catch img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.proof-slot--tsd {
  padding: 0.65rem 0.75rem;
}
.proof-slot--tsd img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.proof-slot--dark {
  background: #1a1a1a;
  border-color: #1a1a1a;
}


@media (min-width: 40rem) {
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .proof-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-5);
  }
}

/* —— 3. Featured work —— */
.work-grid {
  display: grid;
  gap: var(--space-8);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.work-card .role-card {
  margin-top: var(--space-1);
}

.work-card .one-line {
  color: var(--wf-muted);
}

@media (min-width: 64rem) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* —— 4. Services —— */
.services-grid {
  display: grid;
  gap: var(--space-8);
}

.service-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--wf-border);
  background: var(--wf-bg);
}

.service-cell p {
  color: var(--wf-muted);
}

@media (min-width: 48rem) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

/* —— 5. About —— */
.about-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.about-copy {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-copy .role-card {
  margin-bottom: var(--space-1);
}

.about-media {
  max-width: 20rem;
}

@media (min-width: 64rem) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-10);
  }
  .about-media {
    max-width: none;
  }
}

/* —— 6. Contact —— */
.contact-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.contact-form {
  width: 100%;
  max-width: var(--form-max);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-family: var(--font);
  font-size: var(--type-body-size);
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--wf-border);
  background: #fff;
  color: var(--wf-ink);
  width: 100%;
}

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

.contact-aside {
  color: var(--wf-muted);
  max-width: 18rem;
  text-transform: none;
  letter-spacing: normal;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: minmax(0, var(--form-max)) minmax(0, 1fr);
    gap: var(--space-10);
  }
}

/* —— 7. Footer —— */
.site-footer {
  border-top: 1px solid var(--wf-border);
  padding-block: var(--space-8);
  background: var(--wf-bg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--wf-muted);
  border-bottom: 1px dashed var(--wf-border);
}

.footer-meta {
  color: var(--wf-muted);
}

/* Visually hidden (a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Portrait stills in landscape thumbs: show full frame, no head crop */
.slot--media-contain {
  background: var(--wf-surface);
}

.slot--media-contain img {
  object-fit: contain;
  object-position: center center;
}


.work-card__eyebrow {
  margin: 0 0 var(--space-2);
}
