/* alexwaterson.com
   Tokens taken from the Framer project (Colors, Text Styles). */
:root {
  --bg: rgb(0, 0, 0);
  --orange: rgb(235, 81, 44);
  --text: rgb(255, 255, 255);
  --text-2: rgba(255, 255, 255, 0.75);
  --text-3: rgba(255, 255, 255, 0.6);
  --border: rgb(34, 34, 34);
  --border-2: rgb(45, 45, 45);
  --card: rgba(13, 13, 13, 0.8);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, hr { margin: 0; padding: 0; }
ul { list-style: none; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Custom cursor (fine pointers only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor { display: flex; position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none; opacity: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); align-items: center; justify-content: center; overflow: hidden; will-change: transform; transition: opacity 0.2s ease, width 0.25s var(--ease), height 0.25s var(--ease), border-radius 0.25s ease; }
  .cursor span { font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; opacity: 0; transform: scale(0.7); transition: opacity 0.15s ease 0.05s, transform 0.15s ease 0.05s; }
  .cursor.show { opacity: 1; }
  .cursor.hover { width: 110px; height: 44px; border-radius: 100px; }
  .cursor.hover span { opacity: 1; transform: none; }
}

/* Floating nav */
.float-nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 20px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.float-nav.scrolled { background: rgba(10, 10, 10, 0.85); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }
.float-nav a { font-size: 13px; letter-spacing: -0.01em; text-decoration: none; padding: 8px 14px; border-radius: 100px; white-space: nowrap; transition: opacity 0.2s ease, background-color 0.2s ease; }
.float-nav a:hover { opacity: 0.6; }
.float-nav .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.15); flex-shrink: 0; }
.float-nav .nav-cta { background: #fff; color: #000; padding: 8px 18px; }
.float-nav .nav-cta:hover { opacity: 1; background: rgba(255, 255, 255, 0.85); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips.stacked { flex-direction: column; align-items: flex-start; }
.chips li { font-size: 12px; font-weight: 500; letter-spacing: -0.02em; line-height: 1em; border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; white-space: nowrap; }
.chips.accent li { border-color: var(--orange); }
.chips.soft { gap: 6px; }
.chips.soft li { color: rgba(255, 255, 255, 0.55); border-color: var(--border-2); padding: 5px 12px; }
.pill-wrap { display: flex; justify-content: center; }
.pill-lg { background: var(--card); border-radius: 100px; overflow: hidden; display: inline-block; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px 40px 60px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-name { flex: 1; display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-size: 19vw; line-height: 0.88; letter-spacing: -0.04em; }
.hero-name .ln { display: block; overflow: hidden; }
.hero-name .w { display: block; white-space: nowrap; transform: translateY(108%); transition: transform 0.9s var(--ease-out); }
.hero-name .ln:nth-child(2) .w { transition-delay: 120ms; }
.ready .hero-name .w { transform: none; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); opacity: 0; transform: translateY(12px); transition: opacity 0.8s ease 600ms, transform 0.8s ease 600ms; }
.ready .hero-foot { opacity: 1; transform: none; }
.hero-disc { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); white-space: nowrap; flex-shrink: 0; }
.hero-intro { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.65); text-align: right; white-space: nowrap; }
.trail-item { position: fixed; z-index: 50; pointer-events: none; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); transition: opacity 0.6s ease, transform 0.6s ease; }
.trail-item img { width: 100%; height: 100%; object-fit: cover; }

/* Work */
.work { padding-top: 32px; }
.work .pill-wrap { margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 40px 100px; }
.card { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: rgb(18, 18, 18); text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); box-shadow: 0 0 0 0 rgba(235, 81, 44, 0); }
.card:hover, .card:focus-visible { transform: translateY(-8px); box-shadow: 0 20px 44px -14px rgba(235, 81, 44, 0.45); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.card:hover img, .card:focus-visible img { transform: scale(1.05); filter: brightness(1.06); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%); pointer-events: none; }
.card .ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--orange); opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; }
.card:hover .ring, .card:focus-visible .ring { opacity: 1; }
.card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.card-title { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; transition: transform 0.4s var(--ease); }
.card-cat { font-size: 12px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; color: rgba(255, 255, 255, 0.6); text-wrap: balance; transition: transform 0.4s var(--ease) 0.05s, color 0.4s var(--ease); }
.card:hover .card-title, .card:hover .card-cat { transform: translateY(-3px); }
.card:hover .card-cat { color: rgba(255, 255, 255, 0.85); }

/* Testimonials */
.testimonials { padding: 120px 0; overflow: hidden; }
.t-head { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 20px; margin-bottom: 56px; text-align: center; }
.t-head h2 { font-size: 50px; font-weight: 400; }
.marquee { overflow: hidden; -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); }
.track { display: flex; align-items: stretch; width: fit-content; gap: 28px; cursor: grab; touch-action: pan-y; will-change: transform; user-select: none; }
.quote { display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; width: 740px; padding: 44px 52px; gap: 56px; border-radius: 12px; border: 2px solid var(--orange); background: #000; }
.quote p { font-size: 23px; line-height: 1.45; letter-spacing: -0.02em; }
.quote figcaption { display: flex; flex-direction: column; gap: 6px; }
.quote strong { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.quote span { font-size: 16px; letter-spacing: -0.02em; color: var(--text-3); }
.swipe { display: none; }

/* About */
.about { border-top: 1px solid var(--border); padding: 100px 120px; }
.about-top { display: flex; gap: 80px; align-items: flex-start; margin-bottom: 80px; }
.about-top h2 { flex-shrink: 0; width: 280px; font-size: 50px; line-height: 1.05; }
.bio { flex: 1; max-width: 60%; font-size: 18px; font-weight: 400; line-height: 1.65; letter-spacing: -0.02em; color: var(--text-2); }
.disc-list { border-top: 1px solid var(--border); }
.disc { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.disc h3 { font-size: 22px; letter-spacing: -0.03em; flex-shrink: 0; line-height: 1.2; }
.disc .chips { justify-content: flex-end; }

/* Philosophy */
.philosophy { max-width: 1200px; margin: 0 auto; padding: 120px 20px; display: flex; flex-direction: column; align-items: center; gap: 38px; }
.quote-big { font-size: 50px; font-weight: 400; text-align: center; max-width: 1160px; }
.move-row { display: block; }
.move { display: inline-block; color: var(--orange); font-weight: 500; will-change: transform; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); color: rgb(235, 81, 44); } 25% { color: rgb(255, 120, 80); } 50% { transform: translateY(-8px); color: rgb(235, 81, 44); } 75% { color: rgb(220, 60, 20); } }

/* Contact */
.contact { display: flex; align-items: flex-start; gap: 80px; padding: 80px 120px; border-top: 1px solid var(--border); }
.contact-copy { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.contact-copy h2 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 600; line-height: 1.05; }
.contact-body { margin-top: -12px; max-width: 360px; font-size: 15px; font-weight: 400; line-height: 1.65; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.45); }
.contact-links { display: flex; flex-direction: column; gap: 20px; }
.contact-links .label { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, 0.3); }
.contact-links a { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.2s ease; }
.contact-links a:hover { color: #fff; }
.social-row { display: flex; gap: 16px; }
.form-card { flex: 1; width: 100%; border: 1px solid var(--border-2); border-radius: 16px; background: rgb(10, 10, 10); padding: 40px; }
.form { display: flex; flex-direction: column; }
.form label { display: block; margin-bottom: 20px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); }
.form input, .form textarea { display: block; width: 100%; margin-top: 4px; padding: 16px 0; background: transparent; border: 0; border-bottom: 1px solid rgb(50, 50, 50); border-radius: 0; font: inherit; font-size: 16px; font-weight: 400; letter-spacing: -0.01em; text-transform: none; color: #fff; outline: none; transition: border-color 0.2s ease; }
.form textarea { resize: none; line-height: 1.6; margin-bottom: 4px; }
.form input:focus, .form textarea:focus { border-bottom-color: rgba(255, 255, 255, 0.4); }
.form ::placeholder { color: rgba(255, 255, 255, 0.35); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-send { margin-top: 4px; width: 100%; padding: 14px 32px; border: 0; border-radius: 100px; background: var(--orange); color: #fff; font: inherit; font-size: 14px; letter-spacing: 0.01em; cursor: pointer; transition: opacity 0.2s ease; }
.btn-send:hover { opacity: 0.85; }
.btn-send:disabled { opacity: 0.7; cursor: wait; }
.err { margin-bottom: 20px; padding: 12px 16px; border-radius: 8px; font-size: 13px; color: var(--orange); background: rgba(235, 81, 44, 0.1); border: 1px solid rgba(235, 81, 44, 0.3); }
.sent { display: flex; flex-direction: column; gap: 12px; }
.sent span { font-size: 28px; letter-spacing: -0.03em; }
.sent p { font-size: 15px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, 0.45); }

/* Case studies */
.parallax { position: relative; height: 100vh; height: 100svh; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; background-color: #000; }
.parallax-m { display: none; }
.panel { position: relative; z-index: 2; margin-top: -24px; background: var(--bg); border-radius: 24px 24px 0 0; }
.panel-in { max-width: 1024px; margin: 0 auto; padding: 0 32px; }
.case-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 56px 0 32px; }
.case-head h1 { font-size: 50px; font-weight: 400; }
.lede { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-2); }
.rule { border: 0; height: 1px; background: var(--border); }
.case-sec { padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.case-sec h2 { font-size: 35px; line-height: 1.1; }
.case-sec > p { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-2); }
.gallery { display: flex; flex-direction: column; gap: 20px; padding: 12px 0; }
.media { border-radius: 10px; overflow: hidden; background: rgb(18, 18, 18); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media.wide { height: 560px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair .media { height: 500px; }
.media.embed { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.media.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-sec:last-child { padding-bottom: 24px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 80px 32px 100px; }
.cta h2 { font-size: 35px; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 6px; font-size: 14px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: opacity 0.2s ease; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--orange); }
.btn-ghost { background: var(--card); border: 1px solid var(--border-2); }

/* Footer */
.site-footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--border); overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; padding: 60px 40px 48px; }
.foot-line { max-width: 520px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }
.foot-cols { display: flex; gap: 60px; flex-shrink: 0; }
.foot-cols .label { display: block; margin-bottom: 16px; color: rgba(255, 255, 255, 0.25); }
.foot-cols .label.gap { margin-top: 24px; }
.foot-cols a { display: block; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.4; color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.2s ease; }
.foot-cols a:hover { color: #fff; }
.site-footer hr { height: 1px; border: 0; background: var(--border); margin: 0 40px; }
.foot-meta { display: flex; justify-content: space-between; padding: 20px 40px 16px; font-size: 12px; font-weight: 400; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.2); }
.foot-name { padding: 0 40px; line-height: 0.85; overflow: hidden; }
.foot-name span { display: block; white-space: nowrap; font-weight: 700; letter-spacing: -0.04em; opacity: 0.08; font-size: 11vw; }

/* Scroll reveal (classes added by main.js, only to below-fold elements) */
.sr { opacity: 0; will-change: opacity, transform; }
.sr-up { transform: translateY(28px); }
.sr-scale { transform: scale(0.96); }
.sr.in-view { opacity: 1 !important; transform: none !important; transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.cards > .sr:nth-child(2) { transition-delay: 85ms !important; } .cards > .sr:nth-child(3) { transition-delay: 170ms !important; }
.cards > .sr:nth-child(4) { transition-delay: 255ms !important; } .cards > .sr:nth-child(5) { transition-delay: 340ms !important; }
.cards > .sr:nth-child(6) { transition-delay: 425ms !important; }

/* Tablet */
@media (max-width: 900px) {
  .hero { padding: 100px 32px 48px; }
  .cards { padding-left: 32px; padding-right: 32px; }
  .t-head h2 { font-size: 40px; }
  .track { gap: 20px; }
  .quote { width: 420px; padding: 34px 38px; gap: 40px; }
  .quote p { font-size: 19px; line-height: 1.42; }
  .quote strong { font-size: 21px; }
  .quote span { font-size: 14px; }
  .about { padding: 100px 32px; }
  .about-top { gap: 40px; }
  .bio { max-width: 100%; }
  .contact { flex-direction: column; gap: 40px; padding: 80px 32px; }
  .contact-links { flex-direction: row; gap: 32px; }
  .foot-top { padding-left: 32px; padding-right: 32px; }
  .site-footer hr { margin: 0 32px; }
  .foot-meta, .foot-name { padding-left: 32px; padding-right: 32px; }
  .media.wide { height: 420px; }
  .pair .media { height: 360px; }
}

/* Mobile */
@media (max-width: 599px) {
  .float-nav { position: absolute; top: 40px; }
  .float-nav a { padding: 8px 10px; }
  .float-nav .nav-cta { padding: 8px 14px; }
  .float-nav { padding-left: 14px; }
  .hero { min-height: auto; padding: 120px 20px 32px; }
  .hero-name { padding-bottom: 8px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; }
  .hero-intro { font-size: 14px; text-align: left; white-space: normal; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 60px; }
  .card { border-radius: 8px; }
  .card-text { padding: 12px; }
  .card-title { font-size: 13px; }
  .card-cat { display: none; }
  .card .shade { background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 35%, transparent 55%); }
  .testimonials { padding: 80px 0; }
  .t-head h2 { font-size: 34px; }
  .about { padding: 60px 20px; }
  .about-top { flex-direction: column; gap: 24px; margin-bottom: 48px; }
  .about-top h2 { width: 100%; font-size: 36px; }
  .bio { font-size: 16px; }
  .disc { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 0; }
  .disc h3 { font-size: 18px; }
  .disc .chips { justify-content: flex-start; }
  .chips li { font-size: 11px; padding: 5px 10px; }
  .philosophy { padding: 80px 20px; }
  .quote-big { font-size: 34px; }
  .contact { align-items: center; gap: 32px; padding: 48px 20px; }
  .contact-copy { align-items: center; text-align: center; }
  .contact-copy h2 { font-size: 28px; }
  .contact-links { justify-content: center; }
  .social-row { justify-content: center; }
  .form-card { padding: 20px; }
  .foot-top { flex-direction: column; gap: 40px; padding: 60px 20px 48px; }
  .foot-cols { gap: 40px; }
  .site-footer hr { margin: 0 20px; }
  .foot-meta { flex-direction: column; gap: 4px; padding: 20px 20px 16px; }
  .foot-name { padding: 0 20px; }
  .parallax { display: none; }
  .parallax-m { display: block; width: 100%; height: auto; background: #000; }
  .panel { margin-top: -24px; }
  .panel-in { padding: 0 20px; }
  .case-head { padding-top: 40px; }
  .case-head h1 { font-size: 40px; }
  .case-sec h2 { font-size: 28px; }
  .media.wide { height: auto; }
  .media.wide img, .media.wide video { height: auto; }
  .pair { gap: 12px; }
  .pair .media { height: auto; aspect-ratio: 1 / 1; }
  .gallery { gap: 12px; }
  .cta { padding: 60px 20px 80px; }
  .cta h2 { font-size: 28px; }
  /* testimonials: swipe on phones */
  .marquee { display: none; }
  .swipe { display: block; }
  .swipe-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 6vw 8px; }
  .swipe-track::-webkit-scrollbar { display: none; }
  .swipe .quote { width: 82vw; max-width: 340px; padding: 26px; gap: 28px; scroll-snap-align: center; }
  .swipe .quote p { font-size: 17px; line-height: 1.4; }
  .swipe .quote strong { font-size: 19px; }
  .swipe .quote span { font-size: 13px; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-name .w { transform: none; transition: none; }
  .hero-foot { opacity: 1; transform: none; transition: none; }
  .move { animation: none; }
  .sr { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
