:root {
  --ink: #161616;
  --ink-3: #3A3A3A;
  --surface: #F5F4F0;
  --line: #E0E0DC;
  --line-2: #CFCFCA;
  --red: #DB3427;
  --red-soft: #FF7A6E;
  --font-sans: 'Switzer', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-hand: 'Caveat', cursive;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

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

html, body {
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--surface);
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

a {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
a:hover { color: var(--red-soft); }

/* Layout */
.cs {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.cs__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

/* Image */
.cs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  animation: cs-fade 1.8s var(--ease-out) .2s forwards;
}

/* Linear: wide image fading out to the left */
.is-linear .cs__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78svw, 100svw);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.8) 62%, #000 82%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.8) 62%, #000 82%);
}
.is-linear .cs__media img { object-position: 70% 50%; }

/* Radial: smaller image with soft round edges */
.is-radial .cs__media {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -4vw, 0px);
  transform: translateY(-50%);
  width: min(64vw, 1100px);
  aspect-ratio: 2752 / 1536;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.2) 88%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 45%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.2) 88%, transparent 100%);
}

/* Top/bottom shade for header & footer legibility */
.cs__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22,22,22,.55) 0%, rgba(22,22,22,0) 25%, rgba(22,22,22,0) 70%, rgba(22,22,22,.7) 100%);
}

/* Header */
.cs__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs__logo { width: 32px; height: 32px; display: block; }
.cs__brand { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.cs__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line-2);
}

/* Content */
.cs__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}
.cs__hand {
  font-family: var(--font-hand);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--red-soft);
}
.cs__title {
  margin: 0;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-weight: 500;
}
.cs__lead {
  margin: 0;
  max-width: 480px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--line);
  text-wrap: pretty;
}

/* Footer */
.cs__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(245,244,240,.2);
  font-size: 14px;
  color: var(--line-2);
}

.cs__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  animation: cs-fade 1.8s var(--ease-out) .2s forwards;
}

.is-linear .cs__media video { object-position: 70% 50%; }

@media (prefers-reduced-motion: reduce) {
  .cs__media video { animation: none; opacity: 1; }
}

/* Mobile: image behind text, dimmed */
@media (max-width: 767px) {
  .cs__tag { display: none; }
  .is-linear .cs__media,
  .is-radial .cs__media {
    top: 0; right: 0; bottom: auto; left: 0;
    transform: none;
    width: 100%;
    height: 60%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    opacity: .55;
  }
}

@keyframes cs-fade {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cs__media img { animation: none; opacity: 1; }
}
