/* Caprichoso Studio
   Layout: dark brutalist page, cream type, red only for actions and one highlight per screen. */
:root {
  --ink: #222222;
  --ink-2: #1b1b1b;
  --cream: #FFFFE9;
  --red: #C10000;
  --red-hover: #A30000;
  --line: rgba(255, 255, 233, 0.14);
  --muted: rgba(255, 255, 233, 0.7);
  --faint: rgba(255, 255, 233, 0.5);

  --sans: "Inter Tight", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* type scale */
  --t-display: clamp(50px, 7.4vw, 136px);
  --t-h2: clamp(38px, 5.2vw, 84px);
  --t-h3: clamp(22px, 1.9vw, 30px);
  --t-lead: clamp(18px, 1.45vw, 22px);
  --t-body: 17px;
  --t-small: 13px;

  --gutter: max(16px, min(3vw, 40px));
  --section: clamp(88px, 11vw, 168px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--red); color: var(--cream); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* text roles */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: var(--t-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: var(--t-h2); line-height: 0.95; letter-spacing: -0.045em; font-weight: 750; }
.h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.lead { font-size: var(--t-lead); line-height: 1.4; max-width: 46ch; color: var(--muted); }
.muted { color: var(--muted); }
.note { margin-top: 32px; font-size: var(--t-small); color: var(--muted); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-4%); } 75% { transform: translate(-4%,-1%); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 0;
  background: var(--red); color: var(--cream);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn::after { content: "→"; transition: transform 200ms var(--ease-out); }
.btn:hover { background: var(--red-hover); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--small::after { content: none; }
.btn--big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--faint); transition: border-color 200ms var(--ease-out); }
.link-arrow::after { content: "↓"; transition: transform 200ms var(--ease-out); }
.link-arrow:hover { border-color: var(--cream); }
.link-arrow:hover::after { transform: translateY(2px); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.nav.is-scrolled { background: rgba(34, 34, 34, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__logo { color: var(--cream); }
.nav__logo svg { width: 116px; height: auto; }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 0; text-decoration: none; color: var(--muted); transition: color 200ms var(--ease-out); }
.nav__links a:hover { color: var(--cream); }

/* hero: glass logo + lasers behind, one line and one button in front */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__inner {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 7vh, 64px);
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; pointer-events: none;
}
.hero__inner .btn { pointer-events: auto; }
.hero__title { font-size: var(--t-display); line-height: 0.94; letter-spacing: -0.055em; font-weight: 800; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; padding-right: 0.12em; margin-right: -0.12em; }
.hero__title mark { display: inline-block; background: var(--red); color: var(--cream); padding: 0 0.08em; margin-top: 0.06em; line-height: 0.9; font-style: italic; text-shadow: none; }

/* intro */
.js .hero__title .line > span { transform: translateY(105%); }
.js.is-loaded .hero__title .line > span { transform: none; transition: transform 1000ms var(--ease-out) 200ms; }
.js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 280ms; }
.js.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 360ms; }
.js .hero__inner .btn { opacity: 0; }
.js.is-loaded .hero__inner .btn { opacity: 1; transition: opacity 700ms var(--ease-out) 700ms, background-color 180ms var(--ease-out); }
.js .hero__gl { opacity: 0; }
.js .hero__gl.is-ready { opacity: 1; transition: opacity 1600ms var(--ease-out); }

/* ticker */
.ticker { background: var(--cream); color: var(--ink); overflow: hidden; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 14px 0; animation: ticker 45s linear infinite; }
.ticker span { font-size: clamp(24px, 3vw, 44px); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.ticker i { font-style: normal; color: var(--red); font-size: clamp(18px, 2vw, 28px); align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { padding: var(--section) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }

/* manifesto */
.manifesto { display: grid; gap: 28px; }
.manifesto__text { font-size: clamp(28px, 3.8vw, 60px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; max-width: 24ch; }
.manifesto__text em { font-style: italic; font-weight: 700; }
.js .manifesto__text .mw { opacity: 0.32; transition: opacity 400ms var(--ease-out); }
.js .manifesto__text .mw.on { opacity: 1; }

/* services */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: start;
  padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line);
}
.service__t { font-size: clamp(44px, 6.6vw, 112px); line-height: 0.88; letter-spacing: -0.055em; font-weight: 800; text-transform: uppercase; transition: color 300ms var(--ease-out), transform 400ms var(--ease-out); }
.service:hover .service__t { color: var(--red); transform: translateX(8px); }
.service__body { display: grid; gap: 16px; padding-top: 6px; }
.service__lead { font-size: var(--t-lead); line-height: 1.35; max-width: 32ch; }
.service__list { display: grid; gap: 4px; color: var(--muted); font-size: 16px; }
.service__list li::before { content: "— "; color: var(--faint); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; gap: 12px; align-content: start; padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: var(--t-small); letter-spacing: 0.08em; text-transform: uppercase; color: #ff4a4a; }
.step p:last-child { color: var(--muted); font-size: 16px; max-width: 34ch; }

/* formats (light band) */
.section--light { background: var(--cream); color: var(--ink); --line: rgba(34, 34, 34, 0.16); --muted: rgba(34, 34, 34, 0.72); --faint: rgba(34, 34, 34, 0.5); }
.section + .section--light, .section--light + .section { border-top: 0; }
.section--light ::selection { background: var(--ink); color: var(--cream); }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.format { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); transition: border-color 200ms var(--ease-out); }
.format:hover { border-color: var(--ink); }
.format__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.format > p:not(.format__tag) { font-size: 16px; color: var(--muted); }
.format__cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0; background: none; border: 0; border-bottom: 2px solid currentColor; font-weight: 600; font-size: 15px;
  transition: color 200ms var(--ease-out);
}
.format__cta::after { content: "→"; transition: transform 200ms var(--ease-out); }
.format__cta:hover { color: var(--red); }
.format__cta:hover::after { transform: translateX(3px); }
.format--accent { background: var(--ink); color: var(--cream); border-color: var(--ink); --muted: rgba(255, 255, 233, 0.72); }
.format--accent .format__tag { color: #ff4a4a; }
.format--accent .format__cta:hover { color: var(--cream); opacity: 0.75; }

/* founder */
.founder { background: var(--red); color: var(--cream); padding: var(--section) var(--gutter); --muted: rgba(255, 255, 233, 0.86); }
.founder__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.founder .eyebrow { margin-bottom: 20px; }
.founder__title { font-size: var(--t-h2); line-height: 0.92; letter-spacing: -0.05em; font-weight: 800; }
.founder__body { display: grid; gap: 28px; justify-items: start; }
.founder__body .lead { color: var(--cream); }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.2em; transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { opacity: 0.85; }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* contact */
.contact { display: grid; gap: 28px; }
.contact__title { font-size: clamp(56px, 10vw, 176px); line-height: 0.88; letter-spacing: -0.06em; font-weight: 800; }
.contact__cta { display: grid; gap: 14px; justify-items: start; }

/* footer */
.footer { padding: clamp(56px, 7vw, 104px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer__logo { width: 100%; height: auto; color: var(--cream); }
.footer__row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--cream); }

/* mobile dock */
.dock { display: none; }

/* booking dialog */
.book {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  background: var(--ink-2); color: var(--cream); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  flex-direction: column;
}
.book[open] { display: flex; animation: pop 280ms var(--ease-out); }
.book::backdrop { background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.book__head { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 24px 24px 16px; border-bottom: 1px solid var(--line); }
.book__head .muted { margin-top: 6px; font-size: 15px; }
.book__close { width: 44px; height: 44px; flex: none; background: none; border: 1px solid var(--line); font-size: 16px; transition: border-color 200ms var(--ease-out); }
.book__close:hover { border-color: var(--cream); }
.book__cal { flex: 1; min-height: 480px; background: var(--ink); position: relative; }
.book__cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.book__empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 32px; text-align: center; }
.book__empty .muted { max-width: 40ch; margin-inline: auto; }
.book__alt { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* scroll reveal: only animates once JS is ready */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .steps, .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { padding-bottom: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__logo svg { width: 100px; }
  .hero { height: 92svh; }
  .hero__inner .btn { width: 100%; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .steps, .formats { grid-template-columns: 1fr; }
  .step, .step + .step { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .founder__inner { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(27, 27, 27, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 350ms var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .dock .btn { width: 100%; }
  .book { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; }
  .book__cal { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .js .hero__title .line > span { transform: none; }
  .js .hero__gl { opacity: 1; }
}
