:root {
  --muted: color-mix(in srgb, var(--ink) 74%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 20%, var(--paper));
  --control-border: color-mix(in srgb, var(--ink) 52%, var(--paper));
  --subtle: color-mix(in srgb, var(--ink) 4%, var(--paper));
  --disabled-surface: color-mix(in srgb, var(--ink) 12%, var(--paper));
  --hover-red: color-mix(in srgb, var(--red) 80%, var(--ink));
  --on-dark-line: color-mix(in srgb, var(--paper) 45%, var(--ink));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.72 Nian, Tahoma, sans-serif;
}
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(button, a, input, textarea, #confirmation):focus-visible, .fileBtn:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.22; }
h2 { font-size: clamp(2.4rem, 3.7vw, 4rem); letter-spacing: -.035em; margin-top: .4rem; }
small { font-size: .87rem; }
[hidden] { display: none !important; }
.shell { width: min(84rem, calc(100% - clamp(2.4rem, 9vw, 10rem))); margin-inline: auto; }
.skip { position: fixed; top: -6rem; z-index: 10; background: var(--paper); padding: .6rem; }
.skip:focus { top: .5rem; }

.header, .header nav, .brand, .actions, .eyebrow, .formTitle, .fileBox {
  display: flex;
  align-items: center;
}
.header {
  min-height: 5.2rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.signature { width: clamp(7rem, 12vw, 11rem); height: auto; display: block; }
.header nav { gap: 1.8rem; font-size: 1rem; font-weight: 700; }
.navcta { border: 1px solid; padding: .28rem 1.1rem; border-radius: 2px; }
.header nav a { min-height: 44px; display: inline-flex; align-items: center; }
.header nav a:hover, .quiet:hover { color: var(--red); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5.4vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.8vw, 4.9rem);
}
.eyebrow { color: var(--red); font-size: 1rem; font-weight: 700; gap: .6rem; }
.eyebrow i { width: 1.75rem; height: 2px; background: currentColor; }
.hero h1 {
  font-size: clamp(2.45rem, 4.2vw, 4.55rem);
  letter-spacing: -.032em;
  line-height: 1.4;
  margin: .8rem 0 1.1rem;
  text-wrap: balance;
}
.hero h1 em { color: var(--red); font-style: normal; }
.intro { font-size: clamp(1.22rem, 1.58vw, 1.55rem); font-weight: 700; line-height: 1.75; }
.pitch, .contactSide > p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; max-width: 37rem; }
.hero .pitch { max-width: 38rem; font-size: clamp(1.06rem, 1.3vw, 1.24rem); }
.actions { gap: 1.3rem; flex-wrap: wrap; margin-top: 1.6rem; }
.bespoke { overflow: hidden; background: var(--paper); }
.bespoke img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, var(--ink) 5%, var(--ink) 95%, transparent),
    linear-gradient(transparent, var(--ink) 5%, var(--ink) 94%, transparent);
  mask-composite: intersect;
}
.button, .fileBtn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  min-height: 44px;
  font-weight: 700;
}
.button { background: var(--red); color: var(--paper); padding: .5rem 1.3rem; font-size: 1.02rem; }
.button:hover:not(:disabled) { background: var(--hover-red); text-decoration: underline; }
.button:disabled {
  background: var(--disabled-surface);
  color: var(--muted);
  border-color: var(--control-border);
  border-style: dashed;
  cursor: wait;
}
.quiet { border-bottom: 1px solid; padding: .1rem 0; font-weight: 700; font-size: 1rem; }

.lab { background: var(--ink); color: var(--paper); padding: clamp(3rem, 5vw, 5.6rem) 0; }
.ideasHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ideasTitle { max-width: 44rem; margin: 0; }
.ideaPlayback {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .8rem;
  min-height: 44px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
  font-size: .95rem;
  font-weight: 700;
}
.ideaPlayback:hover { border-color: currentColor; text-decoration: underline; }
.ideaPlaybackIcon {
  width: .64rem;
  height: .68rem;
  border-inline: 2px solid currentColor;
}
.ideaPlayback.is-paused { background: var(--paper); color: var(--red); }
.ideaPlayback.is-paused .ideaPlaybackIcon {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ideaNav {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--on-dark-line);
  padding-bottom: .8rem;
  margin-bottom: 1.3rem;
}
.ideaNav button {
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--paper);
  font-weight: 700;
  min-height: 44px;
  padding: .3rem .85rem;
  font-size: 1rem;
}
.ideaNav button[aria-selected="true"] {
  background: var(--paper);
  color: var(--red);
  box-shadow: inset 0 -3px currentColor;
}
.ideaNav button:hover { border-color: currentColor; text-decoration: underline; }
.lab :focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.ideaSlide {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
}
.ideaSlide + .ideaSlide { margin-block-start: 2rem; }
.enhanced .ideaSlides { display: grid; isolation: isolate; }
.enhanced .ideaSlide {
  grid-area: 1 / 1;
  margin: 0;
  align-content: center;
}
.enhanced .ideaSlide[aria-hidden="true"]:not(.is-leaving) { visibility: hidden; }
.ideaSlide.is-leaving { pointer-events: none; }
.ideaSlide.is-entering { z-index: 1; }
.ideaCopy { min-width: 0; }
.ideaCopy h3 { font-size: clamp(1.7rem, 2.8vw, 2.85rem); line-height: 1.45; margin-bottom: .7rem; }
.ideaCopy p { font-size: clamp(1.14rem, 1.42vw, 1.42rem); line-height: 1.88; }
.ideaSlide img, .enhanced .ideaSlide:not(:has(> img))::after {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.enhanced .ideaSlide:not(:has(> img))::after { content: ""; }

@media (scripting: enabled) {
  html:not(.enhanced) .ideaSlides { display: grid; }
  html:not(.enhanced) .ideaSlide { grid-area: 1 / 1; margin: 0; }
  html:not(.enhanced) .ideaSlide + .ideaSlide { visibility: hidden; }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 6.4rem);
  align-items: start;
}
.contactSide h2 { font-size: clamp(3rem, 5vw, 5.4rem); word-spacing: .04em; }
.next { border-inline-start: 2px solid var(--red); padding-inline-start: 1rem; margin-top: 2.2rem; }
.next p { color: var(--muted); font-size: 1.03rem; margin-top: .3rem; }
.formCard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: clamp(1.15rem, 2.7vw, 2.5rem);
}
.formTitle { justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.formTitle h3, #confirmation h3 { font-size: 1.65rem; }
.fieldGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fieldGrid label, .fileInfo label { font-size: 1rem; font-weight: 700; display: block; min-width: 0; }
.fieldGrid label span { color: var(--red); }
.fieldGrid input, .fieldGrid textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--control-border);
  background: var(--paper);
  border-radius: 2px;
  margin-top: .3rem;
  padding: .45rem .65rem;
  min-height: 2.65rem;
  font-size: 1.05rem;
  font-weight: 400;
}
.fieldGrid textarea { resize: vertical; }
.fieldGrid ::placeholder { color: var(--muted); opacity: 1; }
.fieldGrid [aria-invalid="true"] { border-color: var(--red); border-inline-start-width: 4px; }
.wide { grid-column: 1/-1; }
.lastField { margin-top: 1rem; }
.replyHint, .fileInfo small { display: block; color: var(--muted); font-size: .94rem; }
.replyHint { margin-top: .5rem; }
.fileBox {
  gap: .65rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  padding: .8rem;
  border: 1px dashed var(--control-border);
  background: var(--subtle);
}
.fileInfo { flex: 1; min-width: 9rem; }
.fileBtn {
  position: relative;
  background: var(--paper);
  border-color: var(--control-border);
  color: var(--ink);
  font-size: .91rem;
  padding: .2rem .7rem;
  overflow: hidden;
}
.fileBtn:hover { text-decoration: underline; border-color: var(--ink); }
.fileBtn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fileBox button { border: 0; text-decoration: underline; background: none; color: var(--red); }
.fileBox button:hover { text-decoration-thickness: 2px; }
.fileBtn:has(input[aria-invalid="true"]) { border-inline-start: 4px solid var(--red); }
#fileName, .formStatus { font-size: .93rem; overflow-wrap: anywhere; }
#mobileHint:not(:empty), .formStatus:not(:empty) {
  display: block;
  margin-top: .65rem;
  padding-inline-start: .6rem;
  border-inline-start: 3px solid currentColor;
  color: var(--red);
  font-weight: 700;
}
#mobileHint:empty, .js-only, .robot-field { display: none; }
.enhanced .js-only { display: inline-flex; }
.submit { width: 100%; margin-block-start: .75rem; }
.check {
  display: inline-grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
#confirmation p { margin: 1rem 0; }

.endbar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 2rem;
}
.endname { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.endname b { font-size: 1.24rem; }
.endname span, .endbar small { color: var(--muted); }
.linkedin { display: inline-grid; width: 44px; height: 44px; place-items: center; }
.linkedin:hover:not(:focus-visible) { outline: 1px solid var(--ink); outline-offset: -3px; }
.linkedin img { width: 23px; height: 23px; }

@media (max-width: 780px) {
  .header nav { gap: .9rem; }
  .hero, .contact, .ideaSlide { grid-template-columns: 1fr; }
  .hero { gap: 1.6rem; }
  .heroCopy { max-width: 43rem; }
  .hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.4rem); }
  .ideaSlide { gap: 1rem; }
  .enhanced .ideaSlide { align-content: start; }
  .ideaSlide img, .enhanced .ideaSlide:not(:has(> img))::after { max-height: 23rem; }
  .ideaNav { gap: .2rem; }
  .ideaNav button { padding: .25rem .6rem; }
  .contact { gap: 1.5rem; }
  .contactSide h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .next { margin-top: 1rem; }
  .endbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 500px) {
  .header { min-height: 4.4rem; }
  .header nav { font-size: .91rem; gap: .75rem; }
  .navcta { padding: .2rem .6rem; }
  .actions { gap: .65rem 1rem; }
  .formTitle { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .fieldGrid { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 450px) {
  .header nav { gap: .5rem; }
  .header .navcta { padding-inline: .65rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  .ideaNav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ideaNav button { padding: .2rem; font-size: .96rem; }
  .contact .next { margin: 1rem 0; }
  .fileInfo { min-width: 0; flex-basis: 100%; }
  .endname { gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
