:root {
  --blue: #1264e8;
  --yellow: #ffc928;
  --off: #f7f4ec;
  --black: #101010;
  --white: #ffffff;
  --racked: #ff5a1f;
  --cw: #1264e8;
  --font: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --max: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--off);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  padding: 8px 16px;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__hooked {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.logo__dot {
  color: var(--yellow);
}

.logo__strategy {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  font-weight: 600;
  margin-top: 4px;
  color: var(--black);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off);
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.btn--yellow:hover {
  box-shadow: 4px 4px 0 var(--black);
}

.btn--racked {
  background: var(--racked);
  color: var(--white);
}

.btn--cw {
  background: var(--cw);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 80px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin: 0 0 12px;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__underline {
  position: relative;
  display: inline-block;
}

.hero__underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: -6px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C40 2, 80 12, 120 6 S180 4, 198 8' stroke='%23FFC928' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 34ch;
  margin: 0 0 28px;
}

.hero__tag {
  margin-top: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero__visual {
  position: relative;
  min-height: 360px;
}

.hero__blue-blob {
  position: absolute;
  inset: -8% -12% -12% -8%;
  background: var(--blue);
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  transform: rotate(-2deg);
  z-index: 0;
}

.hero__desk {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.hero__desk-inner {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 rgba(16, 16, 16, 0.15);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.laptop {
  border: 2px solid var(--black);
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  background: #1a1a1a;
}

.laptop__bar {
  height: 18px;
  background: #333;
}

.laptop__screen {
  padding: 16px 20px;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--off);
  line-height: 1.35;
  min-height: 140px;
}

.sticky-note {
  background: var(--yellow);
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  max-width: 180px;
}

.hand-note {
  font-family: var(--hand);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.15;
  color: var(--white);
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: 2;
  max-width: 140px;
}

.hand-note svg {
  position: absolute;
  right: 100%;
  top: 20%;
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

/* Philosophy */
.philosophy {
  padding: clamp(48px, 8vw, 96px) 0;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.philosophy__eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}

.philosophy__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.philosophy__hand {
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  margin: 0;
}

.philosophy__hand .underline-blue {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.tape-note {
  display: inline-block;
  margin-top: 32px;
  background: var(--yellow);
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-1deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Projects */
.projects {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 10vw, 96px);
}

.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.project-card {
  background: var(--white);
  border: 2px solid rgba(16, 16, 16, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 16, 16, 0.08);
}

.project-card__body {
  padding: clamp(20px, 3vw, 28px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__brand {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.project-card__brand--racked {
  color: var(--racked);
}

.project-card__brand--cw {
  color: var(--cw);
}

.project-card__kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  color: rgba(16, 16, 16, 0.55);
}

.project-card__headline {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
}

.project-card__copy {
  font-size: 0.92rem;
  margin: 0 0 16px;
  color: rgba(16, 16, 16, 0.78);
  flex: 1;
}

.project-card__hand {
  font-family: var(--hand);
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: rgba(16, 16, 16, 0.85);
}

.project-card__visual {
  border-top: 1px solid rgba(16, 16, 16, 0.06);
  padding: 16px;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__visual img {
  object-fit: contain;
  max-height: 220px;
  width: auto;
  margin-inline: auto;
}

.project-card__wordmark {
  height: 36px;
  width: auto;
  margin: 0 0 8px;
}

.project-card__wordmark--cw {
  height: 44px;
}

.project-card__visual--brand {
  padding: 0;
  background: #111316;
  overflow: hidden;
}

.racked-showcase {
  width: 100%;
  line-height: 0;
}

.racked-showcase img {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: cover;
  object-position: 58% center;
  margin: 0;
}

@media (min-width: 900px) {
  .racked-showcase img {
    object-fit: contain;
    object-position: center;
    max-height: 320px;
    padding: 8px;
  }
}

.cw-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.cw-logo__mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.cw-logo__c {
  position: absolute;
  inset: 0;
  border: 4px solid #1a1d23;
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-24deg);
}

.cw-logo__w {
  position: absolute;
  right: -2px;
  bottom: 2px;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: #ebc678;
  font-family: var(--font);
  letter-spacing: -0.06em;
}

.cw-logo__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.cw-logo__title .navy {
  color: #1a1d23;
}

.cw-logo__title .gold {
  color: #c9a227;
}

.cw-logo__sub {
  margin: 4px 0 0;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(16, 16, 16, 0.55);
}

.project-card__visual--kip img {
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(16, 16, 16, 0.12));
}

.project-card__visual--brand img.project-shot {
  max-height: 280px;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.project-card__visual--cw {
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.cw-mockups {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  align-items: end;
  width: 100%;
}

.cw-mockups img {
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.08);
  object-fit: cover;
  width: 100%;
}

.cw-mockups__phone {
  max-height: 160px;
}

.cw-mockups__wide {
  grid-column: 1 / -1;
  max-height: 120px;
}

.project-card__visual--placeholder {
  font-size: 0.75rem;
  color: rgba(16, 16, 16, 0.45);
  text-align: center;
  padding: 24px;
}

.featured-product {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed rgba(16, 16, 16, 0.15);
  background: var(--off);
}

.featured-product__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
}

.featured-product__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}

.featured-product__cover {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
}

.featured-product__title {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.featured-product__copy {
  font-size: 0.78rem;
  margin: 0 0 10px;
  color: rgba(16, 16, 16, 0.75);
}

.featured-product__price {
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Custom work */
.custom {
  background: var(--blue);
  color: var(--white);
  padding: clamp(48px, 8vw, 88px) 0;
}

.custom__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.custom__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.85;
  margin: 0 0 12px;
}

.custom__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
}

.custom__title .hero__underline::after {
  filter: brightness(1.05);
}

.custom__copy {
  font-size: 1rem;
  max-width: 48ch;
  margin: 0 0 12px;
  opacity: 0.95;
}

.custom__bold {
  font-weight: 800;
  margin: 0 0 24px;
}

.checklist-paper {
  background: var(--white);
  color: var(--black);
  padding: 24px 28px;
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(1deg);
  max-width: 280px;
}

.checklist-paper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.5;
}

.checklist-paper li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}

.custom__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.custom__hand {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  max-width: 220px;
}

.torn-paper {
  background: var(--white);
  color: var(--black);
  padding: 20px 22px;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
  max-width: 200px;
  clip-path: polygon(0 2%, 98% 0, 100% 96%, 4% 100%, 0 88%);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

/* About / Contact anchors */
.about-block,
.contact-block {
  padding: clamp(48px, 8vw, 80px) 0;
  scroll-margin-top: var(--header-h);
}

.about-block h2,
.contact-block h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 16px;
}

.about-block p,
.contact-block p {
  max-width: 60ch;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 2px solid rgba(16, 16, 16, 0.08);
  padding: clamp(32px, 5vw, 48px) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
}

.site-footer__tagline {
  font-weight: 700;
  margin: 8px 0 4px;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: rgba(16, 16, 16, 0.6);
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  justify-content: flex-end;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .philosophy__grid,
  .custom__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 2;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .hand-note {
    position: relative;
    right: auto;
    bottom: auto;
    color: var(--black);
    margin-top: 12px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .site-header__inner .site-nav {
    gap: 8px;
  }
}
