/* SachalSpeaks — rapidassets-style theme test.
   Dark #0A0A0A, orange #FD8305 CTA, cyan #00E5C7 active states.
   Display: Chakra Petch. Body: Inter. Chamfered primary buttons. */
:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --card: #1a1a1a;
  --bar: #171717;
  --line: #2a2a2a;
  --line-2: #353535;
  --ink: #ffffff;
  --body: #f5f5f5;
  --muted: #a3a3a3;
  --orange: #fd8305;
  --cyan: #00e5c7;
  --wrap: 1340px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--body); }
h1, h2, h3 { font-family: "Chakra Petch", "Inter", sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px;
}
.section { padding: 88px 0; position: relative; z-index: 1; }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* Particles + progress */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--cyan); z-index: 60; }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #111; padding: 8px 14px; z-index: 70; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bar);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background .25s ease;
}
.site-header.scrolled { background: rgba(23, 23, 23, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px 16px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; background: var(--ink); color: #0a0a0a;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-style: italic; font-size: 20px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.brand-name { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-style: italic; font-size: 20px; color: var(--ink); letter-spacing: .01em; }
.brand-name b { color: var(--orange); font-weight: 700; }
.nav-menu { display: flex; gap: 28px; margin-left: auto; }
.nav-menu a {
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--body);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { color: var(--orange); border-bottom-color: var(--orange); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #111; }
.btn-primary:hover { background: #ff9a2e; color: #111; }
.btn-quote { margin-left: 4px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-family: "Chakra Petch", sans-serif; font-size: 13px; letter-spacing: .1em; padding: 8px 14px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bar); flex-direction: column; gap: 0; padding: 8px 24px 16px; margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .btn-quote { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 148px 0 40px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-copy h1 { font-size: clamp(38px, 5.2vw, 64px); }
.hero-copy .lede { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-tabs { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.hero-tab {
  background: none; border: 0; cursor: pointer; padding: 0 0 10px;
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.hero-tab:hover { color: var(--ink); }
.hero-tab[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-note {
  border-left: 2px solid var(--cyan); padding-left: 16px;
  min-height: 52px; font-size: 16px; color: var(--body);
}
.tab-note p { margin: 0; transition: opacity .18s ease; }
.tab-note .note-label {
  display: block; font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.hero-visual { position: relative; }
.hero-glow {
  position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(0, 229, 199, .16), rgba(0, 229, 199, .05) 55%, transparent 75%);
}
.hero-frame {
  position: relative; z-index: 1; border: 1px solid var(--line-2); border-radius: 16px;
  overflow: hidden; background: #000; aspect-ratio: 4 / 3;
  transform-style: preserve-3d; will-change: transform;
}
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-frame img.active { opacity: 1; }
.hero-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px 18px; font-size: 13px; color: var(--body);
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
}
.hero-frame figcaption b { color: var(--cyan); font-family: "Chakra Petch", sans-serif; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: "Chakra Petch", sans-serif; font-size: 34px; font-weight: 700; color: var(--cyan); line-height: 1; }
.hero-stats span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Handwritten margin notes ---------- */
.note {
  font-family: "Caveat", cursive; font-weight: 600; font-size: 24px; line-height: 1.2;
  color: var(--orange); transform: rotate(-2deg); margin: 0;
}
.hero-note {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  background: rgba(10, 10, 10, .88); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 8px 14px; max-width: 320px;
}
.work-note { text-align: right; margin: -6px 0 20px; }

/* ---------- Work grid ---------- */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; background: var(--panel); color: var(--muted);
  border: 1px solid var(--line-2); padding: 9px 18px; border-radius: 999px;
}
.chip:hover { color: var(--ink); border-color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #111; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; display: block;
  transition: border-color .2s ease;
}
.work-card:hover { border-color: var(--orange); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-card-body { padding: 16px 18px 18px; }
.work-card-body h3 { margin: 0 0 4px; font-size: 19px; }
.work-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.work-card-body .tag { display: inline-block; font-family: "Chakra Petch", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.work-card[hidden] { display: none; }
.work-card.featured { grid-column: span 2; }
.work-card.featured img { aspect-ratio: 16 / 9; }
@media (min-width: 901px) {
  .work-grid .work-card:nth-child(even) { transform: translateY(20px); }
  .work-grid .work-card.featured { transform: none; }
}
.work-more-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.work-more-card h3 { margin: 0; }
.work-more-card p { color: var(--muted); font-size: 14px; margin: 0; }
.work-more-card a { color: var(--cyan); font-weight: 600; text-decoration: none; }

/* ---------- Rig steps + tools strip ---------- */
.rig-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .rig-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rig-steps { grid-template-columns: 1fr; } }
.rig-step { border-top: 2px solid var(--orange); padding-top: 16px; }
.rig-step h3 { font-size: 19px; margin-bottom: 4px; }
.rig-step p { color: var(--muted); font-size: 15px; margin: 0; }
.tools-strip {
  display: flex; gap: 0; flex-wrap: wrap; align-items: baseline;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 26px; background: var(--card);
}
.tools-strip b { font-family: "Chakra Petch", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 18px; }
.tools-strip span { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.tools-strip i { font-style: normal; color: var(--orange); margin: 0 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; display: block; border-radius: 14px; border: 0; filter: grayscale(1) contrast(1.05); }
.about-note { margin: 12px 0 0 4px; }
.about-copy h2 { margin-bottom: 12px; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.about-copy p:first-child { margin-bottom: 8px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 320px; }
}

/* ---------- Reel ---------- */
.reel-main { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.reel-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 720px) { .reel-strip { grid-template-columns: repeat(2, 1fr); } }
.reel-thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; position: relative; }
.reel-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.reel-thumb span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.yt-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.yt-facade iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
iframe[src*="youtube-nocookie"] { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.reel-main .yt-play { width: 76px; height: 76px; font-size: 26px; }

/* ---------- Projects (numbered) ---------- */
.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid; grid-template-columns: 64px 120px 1fr; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.project-row .num { font-family: "Chakra Petch", sans-serif; font-size: 26px; font-weight: 700; color: var(--orange); }
.project-row img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.project-row h3 { margin: 0 0 4px; font-size: 22px; }
.project-row p { margin: 0; color: var(--muted); font-size: 15px; }
.project-row p a { color: var(--cyan); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) { .project-row { grid-template-columns: 44px 1fr; } .project-row img { display: none; } .project-row .num { font-size: 20px; } }

/* ---------- Testimonials ---------- */
.quote-box { max-width: 780px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px; }
.quote-stars { color: var(--orange); letter-spacing: 4px; font-size: 20px; }
.quote-stage { min-height: 150px; }
.quote { display: none; margin: 0; }
.quote.active { display: block; }
.quote p { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: clamp(19px, 2.6vw, 25px); line-height: 1.4; margin: 14px 0; color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: 14px; }
.quote-nav { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 18px; }
.quote-nav button { background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; padding: 8px 16px; font: inherit; font-family: "Chakra Petch", sans-serif; font-size: 13px; letter-spacing: .08em; cursor: pointer; }
.quote-nav button:hover { border-color: var(--orange); color: var(--orange); }
.quote-count { color: var(--muted); font-size: 14px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }
.process-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.process-step .num { font-family: "Chakra Petch", sans-serif; font-size: 26px; font-weight: 700; color: var(--orange); display: block; margin-bottom: 10px; }
.process-step h3 { font-size: 19px; }
.process-step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.service-row {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row h3 { margin: 0; font-size: clamp(21px, 2.8vw, 28px); }
.service-row p { margin: 0 0 0 auto; color: var(--muted); font-size: 14px; text-align: right; }
.service-row:hover { background: var(--panel); }
.service-row:hover h3 { color: var(--orange); }

/* ---------- AI band ---------- */
.ai-band { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--card); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ai-band h3 { margin: 0; }
.ai-band p { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 620px; }
.ai-band .btn { margin-left: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 26px; line-height: 1; color: var(--orange); transition: transform .25s ease; flex-shrink: 0; }
.faq-list details[open ] .faq-plus { transform: rotate(45deg); }
.faq-list p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 { font-size: clamp(32px, 4.6vw, 50px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: "Chakra Petch", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-error { display: none; color: #ff7a6b; font-size: 14px; margin-top: 10px; }
.form-error.show { display: block; }
.form-success { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--card); }
.contact-side { display: flex; flex-direction: column; }
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row b { min-width: 92px; font-family: "Chakra Petch", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-row span { font-size: 16px; }
.contact-row:hover span { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.footer-inner { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--cyan); }
.footer-inner span:last-child { margin-left: auto; }

/* ---------- Float avatar ---------- */
.float-avatar {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--orange); border-radius: 999px;
  padding: 6px 14px 6px 6px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.float-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.float-avatar span { font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .float-avatar span { display: none; } .float-avatar { padding: 6px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .prompt-box .cursor { animation: none; }
}
