/* ============ Tokens ============ */
:root {
  --bg: #03060d;          /* black with a hint of navy */
  --fg: #fff;
  --muted: #a9b6cc;
  --navy: #0c2a5b;        /* main navy */
  --navy-deep: #071a3a;
  --navy-bright: #1f5fbf; /* highlight navy */
  --sky: #a9ccff;
  --line: #1f5fbf;
  --card: #0a1426;
  --card-2: #0f1f3d;
  --error: #ff6b6b;
  --radius: 16px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Montserrat", system-ui, sans-serif;
  --logo-font: "Montserrat", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 800; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: 0; height: 5px; background: var(--line); margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }

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

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 5px solid var(--line);
}
.nav { display: flex; gap: 22px; }
.nav-right { justify-content: flex-end; }
.nav a, .mobile-menu a {
  text-decoration: none; text-transform: uppercase; font-size: 17px; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a.active { border-color: var(--fg); }

/* ---- Logo: "CUT by CLINT" with the C sliced on a diagonal ---- */
.logo {
  display: inline-flex; align-items: baseline; gap: .22em; justify-self: center;
  text-decoration: none; white-space: nowrap; line-height: 1;
  font: 900 30px/1 var(--font); letter-spacing: -.01em; text-transform: uppercase;
}
.logo-by { font-size: .5em; font-weight: 700; text-transform: lowercase; color: var(--sky); letter-spacing: .02em; }
.logo-sm { font-size: 22px; }

/* The sliced C: the letter is drawn twice, each copy clipped to one side of the cut,
   and the lower piece slides a little along the cut. The light-blue line is the blade. */
.cut-c { position: relative; display: inline-block; color: transparent; }
.cut-c::before, .cut-c::after { content: attr(data-c); position: absolute; inset: 0; color: var(--fg); transition: translate .25s ease; }
/* Cut line runs from (-10%, 64%) to (110%, 36%) of the letter box. Each piece stops
   1.5% short of it, so a thin gap opens along the slice; the blade sits in that gap. */
.cut-c::before { clip-path: polygon(-10% -10%, 110% -10%, 110% 34.5%, -10% 62.5%); }
.cut-c::after  { clip-path: polygon(-10% 65.5%, 110% 37.5%, 110% 110%, -10% 110%); translate: .07em .012em; }
.cut-c i {
  position: absolute; inset: 0; background: var(--sky);
  clip-path: polygon(0 60.6%, 100% 37.3%, 100% 39.4%, 0 62.7%);
}
.logo:hover .cut-c::after { translate: .12em .02em; }

.menu-btn { display: none; }

/* ============ Buttons & highlights ============ */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--fg); color: var(--navy);
  border: 2px solid var(--fg); border-radius: 0;
  padding: 12px 28px; font: 900 16px/1.2 var(--font);
  text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--navy-bright); border-color: var(--navy-bright); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--navy); }

.hl { padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-blue { background: var(--navy-bright); color: #fff; }
.hl-navy { background: #173e7a; color: #fff; }
.hl-sky { background: var(--sky); color: #03060d; }

.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .15em; font-size: 14px; color: var(--muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); }

/* ============ 1. About ============ */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.about-photo { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 14px 14px 0 var(--navy); }
.about-photo { aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.about-text h1 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 20px; }
.about-bio p { margin: 0 0 18px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* photo placeholder when no image yet */
.ph {
  width: 100%; height: 100%; min-height: 240px;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(31,95,191,.55), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(12,42,91,.9), transparent 60%),
    var(--card-2);
  font-family: var(--logo-font); font-size: clamp(60px, 10vw, 140px); line-height: 1;
}
.ph small { display: block; font: 500 14px var(--font); color: rgba(255,255,255,.75); margin-top: 12px; }

/* ============ Tagline ============ */
.tagline { padding-block: clamp(36px, 5vw, 60px); text-align: center; }
.tagline h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.22; max-width: 18ch; margin-inline: auto; }

/* ============ Clients marquee ============ */
.clients {
  overflow: hidden; padding-block: clamp(22px, 3vw, 34px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee { display: flex; align-items: center; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.brand {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  height: clamp(56px, 6vw, 84px); padding-inline: clamp(26px, 4vw, 56px);
}
/* logos are white-on-transparent files; height evens them out, max-width tames wide ones */
.brand img { height: 100%; width: auto; max-width: clamp(130px, 15vw, 200px); object-fit: contain; opacity: .88; transition: opacity .2s; }
.brand:hover img { opacity: 1; }
.brand-text {
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; white-space: nowrap; opacity: .88;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Stats ============ */
.stats-band { background: var(--navy); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-block: clamp(32px, 5vw, 56px); text-align: center;
}
.stat b { display: block; font-size: clamp(38px, 5vw, 64px); font-weight: 900; line-height: 1; }
.stat span { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }

/* ============ 2. Videos ============ */
.videos { padding-block: clamp(48px, 7vw, 88px); }
.video-block + .video-block { margin-top: clamp(48px, 7vw, 80px); }
#videos { padding-bottom: 0; }
.videos-long { padding-top: clamp(48px, 7vw, 80px); }

/* Long-form: 16:9 cards with a moving trailer, duration badge, then tag + title */
.lcard { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.lcard-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--card);
  outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .25s;
}
.lcard-media video, .lcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.lcard:hover .lcard-media, .lcard:focus-visible .lcard-media { outline-color: var(--sky); }
.lcard:hover .lcard-media video { transform: scale(1.03); }
.lcard-len {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px;
  background: rgba(3, 6, 13, .85); font-size: 14px; font-weight: 800;
}
.lcard .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s;
}
.lcard .play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--navy); }
.lcard:hover .play, .lcard:focus-visible .play { opacity: 1; }
@media (hover: none) { .lcard .play { opacity: .85; width: 52px; height: 52px; } }
.lcard-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lcard-meta h4 { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; line-height: 1.25; }
.lcard:hover h4 { color: var(--sky); }

/* Short-form: two sliding rows, full screen width */
.reels { display: grid; gap: 16px; }
.reel-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.reel-track { display: flex; width: max-content; padding-block: 8px; animation: scroll var(--dur, 44s) linear infinite; }
.reel-row.reverse .reel-track { animation-direction: reverse; }
.reel-row:hover .reel-track, .reel-row:focus-within .reel-track { animation-play-state: paused; }
.reel {
  /* margin, not gap, so the doubled track is exactly twice one set wide */
  flex: 0 0 auto; margin-right: 16px; position: relative; display: block;
  width: clamp(130px, 15vw, 210px); aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  outline: 3px solid transparent; outline-offset: -3px;
  transition: transform .25s, outline-color .25s;
}
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel:hover, .reel:focus-visible { transform: scale(1.05); outline-color: var(--sky); }
.reel .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s;
}
.reel .play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--navy); }
.reel:hover .play, .reel:focus-visible .play { opacity: 1; }
@media (hover: none) { .reel .play { opacity: .85; width: 40px; height: 40px; } }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.block-head h3 { font-size: clamp(28px, 3.4vw, 42px); }
.block-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.grid-long { grid-template-columns: repeat(2, 1fr); row-gap: clamp(28px, 3.4vw, 44px); }
/* First long-form video is featured full width; the rest sit two by two below it. */
.grid-long .lcard:first-child { grid-column: 1 / -1; }
.grid-long .lcard:first-child h4 { font-size: clamp(22px, 2.4vw, 30px); }

/* ============ 3. Channels ============ */
.channels { padding-block: clamp(48px, 7vw, 88px); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.industry { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; background: var(--navy-bright); color: #fff; }
.yt {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border: 2px solid var(--navy-bright); border-radius: var(--radius); background: var(--card);
  transition: transform .2s, border-color .2s, background .2s;
}
.yt:hover, .yt:focus-visible { transform: translateY(-4px); border-color: var(--sky); background: var(--navy-deep); }
.yt-banner {
  aspect-ratio: 4 / 1; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-bright));
}
.yt-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yt:hover .yt-banner img { transform: scale(1.05); }
.yt-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 0 22px 22px; }
.yt-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-top: -48px; margin-bottom: 6px;
  border: 4px solid var(--card); background: var(--card); transition: border-color .2s;
}
.yt:hover .yt-avatar { border-color: var(--navy-deep); }
.yt h3 { font-size: clamp(21px, 2vw, 26px); }
.yt-handle { margin: -4px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.yt .results { display: flex; gap: 28px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid #1c2a44; }
.yt .results b { display: block; font-size: 26px; font-weight: 900; line-height: 1.1; }
.yt .results span { font-size: 12px; color: var(--sky); text-transform: uppercase; letter-spacing: .08em; }
.yt-visit { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.yt:hover .yt-visit { color: var(--sky); }

/* ============ 4. Contact ============ */
.contact {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(48px, 7vw, 88px);
}
.contact-card {
  align-self: start; display: grid; gap: 22px;
  padding: clamp(24px, 3vw, 40px); background: var(--navy); border-radius: var(--radius);
}
.contact-card .eyebrow { color: var(--sky); margin: 0; }
.contact-card-lead { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.3; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--sky); font-size: clamp(14px, 1.15vw, 16px); }
.contact-card .btn { justify-self: start; }

/* ============ Resume ============ */
.resume { padding-block: clamp(48px, 7vw, 88px); }
.resume-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.resume-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 64px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--navy-bright); display: grid; gap: 28px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -38px; top: 7px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--bg); border: 4px solid var(--navy-bright);
}
.timeline li:nth-child(-n+3)::before { background: var(--sky); }
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.tl-head b { font-size: clamp(20px, 2vw, 26px); font-weight: 900; }
.tl-head span { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); padding-top: 6px; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.resume-side { display: grid; gap: 28px; align-content: start; }
.side-block h3 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--sky); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--navy-bright); border-radius: 999px; }
.chips-solid li { background: var(--fg); color: var(--navy); border-color: var(--fg); }
ul.plain { margin: 0; padding-left: 20px; font-size: 16px; }
p.plain { margin: 0; font-size: 16px; }

/* ============ Resume viewer ============ */
.resume-viewer {
  width: min(96vw, 980px); height: 94vh; max-height: 94vh; padding: 0; border: 0;
  background: var(--card); color: var(--fg); border-radius: var(--radius); overflow: hidden;
  display: none; flex-direction: column;
}
.resume-viewer[open] { display: flex; }
.resume-viewer::backdrop { background: rgba(3, 6, 13, .9); }
.rv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--navy); }
.rv-bar h2 { font-size: 17px; font-weight: 800; }
.rv-actions { display: flex; gap: 8px; }
.rv-btn {
  width: 40px; height: 40px; border: 2px solid var(--fg); background: transparent; color: var(--fg);
  font: 700 22px/1 var(--font); cursor: pointer;
}
.rv-btn:hover { background: var(--fg); color: var(--navy); }
.rv-pages { flex: 1; overflow: auto; scrollbar-gutter: stable; padding: 16px; display: grid; justify-items: safe center; align-content: start; gap: 16px; }
.rv-pages canvas { max-width: none; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.rv-status { margin: 40px 0; color: var(--muted); text-align: center; }
.contact-form-wrap h2 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 8px; }
.contact-sub { margin: 0 0 20px; color: var(--muted); }
.contact-form { display: grid; gap: 18px; max-width: 560px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { padding: 0; margin-bottom: 6px; font-size: 20px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.contact-form label.big { font-size: 20px; font-weight: 500; }
.contact-form em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 15px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 2px solid var(--fg); border-radius: 0; padding: 12px 14px;
  background: #fff; color: #000; font: 500 17px var(--font);
}
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px var(--error); }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.6em; font-size: 16px; }
.hp { position: absolute; left: -9999px; }

/* ============ Footer ============ */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; text-transform: uppercase; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.copy { margin: 0; font-size: 14px; color: var(--muted); }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .nav { display: none; }
  .logo { justify-self: start; font-size: 24px; }
  .menu-btn {
    display: grid; gap: 7px; justify-self: end; padding: 12px 6px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 30px; height: 3px; background: var(--fg); transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; top: 76px; z-index: 40; background: var(--bg);
    display: flex; flex-direction: column; gap: 10px; padding: 32px var(--gutter);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-size: 32px; font-weight: 900; }

  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .contact-card { order: 2; }
  .resume-grid { grid-template-columns: 1fr; }
  .grid-long { grid-template-columns: 1fr; }
  .about-photo { box-shadow: 10px 10px 0 var(--navy); }
}
@media (max-width: 560px) {
  .channel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reel-track { animation: none; }
  .reel-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
