/* ========== Slip Studios ========== */
:root {
  --ink: #0a0b0d;
  --ink-2: #14161a;
  --paper: #f5f4f2;
  --white: #ffffff;
  --red: #ff3b2a;
  --muted: #8d9096;
  --muted-dark: #5b5e64;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(10, 11, 13, .12);
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ink); color: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }
img { display: block; max-width: 100%; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: 0; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; fill: var(--red); }
.brand-word { font-weight: 800; font-size: 15px; line-height: .95; letter-spacing: -.03em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn-icon {
  display: grid; place-items: center; width: 26px; height: 26px; margin: -6px -12px -6px 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18); overflow: hidden;
}
.btn-icon svg, .contact-arrow svg, .contact-icon svg, .copy-btn svg, .contact-location svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-icon svg { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .btn-icon svg { animation: nudge .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes nudge {
  0% { transform: translate(0, 0); }
  45% { transform: translate(140%, 0); opacity: 0; }
  46% { transform: translate(-140%, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light .btn-icon { background: var(--red); color: var(--white); }
.btn-light:hover { background: #ffe9e6; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 24px rgba(255, 59, 42, .28); }
.btn-red:hover { background: #ff5243; box-shadow: 0 12px 30px rgba(255, 59, 42, .4); }
.btn-ghost { border-color: var(--line-dark); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 999px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad);
  background: rgba(10, 11, 13, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; opacity: .8; transition: opacity .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav { transition: padding .3s, background .3s; }
.nav.scrolled { padding-block: 10px; background: rgba(10, 11, 13, .92); }
.brand-mark { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: translateX(3px) skewX(-6deg); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav .btn-icon { width: 24px; height: 24px; margin-right: -10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 14vh, 160px) var(--pad) clamp(80px, 12vh, 140px);
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd17e; }
.hero h1 {
  font-size: clamp(48px, 9vw, 128px); font-weight: 800; letter-spacing: -.05em; line-height: .92;
  max-width: 11ch; position: relative; z-index: 1;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 520px; margin-top: 24px; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; position: relative; z-index: 1; }
.hero-art {
  position: absolute; right: -3%; top: 50%; margin-top: calc(min(46vw, 600px) * -.4);
  width: min(46vw, 600px); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-mark { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(255, 59, 42, .22)); }
.hm { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hm-1 { animation: slipIn 1.1s .25s cubic-bezier(.2, .8, .2, 1) forwards, drift 7s 1.4s ease-in-out infinite; }
.hm-2 { animation: slipIn 1.1s .45s cubic-bezier(.2, .8, .2, 1) forwards, drift 7s 1.6s ease-in-out infinite reverse; }
@keyframes slipIn {
  from { opacity: 0; transform: translate(-60px, 40px); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes drift {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(10px, -8px); }
}

/* Hero intro, staggered on load */
.hero > .status, .hero h1, .hero .lead, .hero-actions { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 { animation-delay: .1s; }
.hero .lead { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 209, 126, .5); }
  50% { box-shadow: 0 0 0 6px rgba(43, 209, 126, 0); }
}

/* Scroll reveal (classes added by main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) var(--pad); }
.light { background: var(--paper); color: var(--ink); }
.section-head { margin-bottom: 48px; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 12px; }
h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.note { margin-top: 16px; color: var(--muted-dark); font-size: 15px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; padding: 32px 28px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s, opacity .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); border-color: rgba(255, 59, 42, .35); }
.card.reveal:not(.in) { transform: translateY(28px); }
.num { font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--red); line-height: 1; }
.card h3, .steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 28px 0 10px; }
.card p { color: var(--muted-dark); font-size: 15px; }

/* Work */
#work { padding-top: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots {
  position: relative; background: #e8e6e2; border-radius: 18px; padding: 24px 24px 0; overflow: hidden;
  aspect-ratio: 5 / 4;
}
.shot-desktop {
  width: 100%; border-radius: 8px 8px 0 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform-origin: top center; transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.shot-phone {
  position: absolute; right: 16px; bottom: -40px; width: 28%;
  border-radius: 14px; border: 4px solid var(--ink); box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.work-item:hover .shot-desktop { transform: scale(1.03); }
.work-item:hover .shot-phone { transform: translateY(-22px); }
.work-item figcaption { margin-top: 16px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.work-item figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--muted-dark); margin-top: 2px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.steps p { color: var(--muted); font-size: 15px; }

/* About */
.about-text { font-size: clamp(24px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; max-width: 920px; }

/* Contact */
.contact { background: radial-gradient(50% 60% at 85% 100%, rgba(255, 59, 42, .14), transparent 70%), var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-checklist { margin-top: 28px; display: grid; gap: 12px; list-style: none; }
.contact-checklist li { position: relative; padding-left: 30px; color: #c9cbd0; font-size: 15px; }
.contact-checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 59, 42, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3b2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 20px;
  transition: border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.contact-card:hover { border-color: rgba(255, 59, 42, .6); background: #181a1f; transform: translateY(-3px); }
.contact-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 59, 42, .12); color: var(--red);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-text { display: grid; gap: 2px; min-width: 0; }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-value { font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-arrow {
  margin-left: auto; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark); transition: background .3s, border-color .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.contact-card:hover .contact-arrow { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.email-copy { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.email-copy:hover .contact-arrow { transform: none; }
.email-copy .icon-check { display: none; }
.email-copy.copied { border-color: #2bd17e; }
.email-copy.copied .contact-label { color: #2bd17e; }
.email-copy.copied .contact-arrow { background: #2bd17e; border-color: #2bd17e; }
.email-copy.copied .icon-copy { display: none; }
.email-copy.copied .icon-check { display: block; }
.contact-location { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 32px var(--pad); border-top: 1px solid var(--line-dark); color: var(--muted); font-size: 14px;
}
.footer .brand { color: var(--white); }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-art { width: 80vw; right: -18%; top: auto; bottom: 4%; margin-top: 0; opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hm { opacity: 1; }
}
