/* Exclusive Tech · www.exclusivetech.dev */

:root {
  color-scheme: light dark;

  /* Brand */
  --cobalt: oklch(0.5 0.17 242);
  --cobalt-deep: oklch(0.4 0.15 246);
  --cobalt-ink: oklch(0.985 0.008 240);
  --cobalt-soft: oklch(0.91 0.04 240);
  --vermilion: oklch(0.62 0.205 33);
  --vermilion-bright: oklch(0.72 0.18 38);

  /* Neutrals (light) */
  --bg: oklch(1 0 0);
  --surface: oklch(0.966 0.006 242);
  --ink: oklch(0.19 0.02 252);
  --muted: oklch(0.44 0.02 250);
  --line: oklch(0.89 0.01 245);
  --field: oklch(1 0 0);
  --field-line: oklch(0.63 0.015 245);
  --band: oklch(0.17 0.02 252);
  --band-ink: oklch(0.96 0.005 240);
  --band-muted: oklch(0.76 0.015 245);
  --band-line: oklch(0.32 0.02 250);
  --focus: var(--vermilion);
  --error: oklch(0.52 0.19 28);
  --success: oklch(0.48 0.12 160);
  --mark-ink: var(--bg);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.3rem);
  --step-4: clamp(2.4rem, 1.5rem + 4.6vw, 5.6rem);

  /* Space */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers */
  --z-sticky: 10;
  --z-skip: 20;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cobalt: oklch(0.47 0.165 244);
    --cobalt-deep: oklch(0.37 0.14 248);
    --bg: oklch(0.13 0 0);
    --surface: oklch(0.175 0.008 245);
    --ink: oklch(0.955 0.005 240);
    --muted: oklch(0.74 0.015 245);
    --line: oklch(0.28 0.012 248);
    --field: oklch(0.16 0.006 245);
    --field-line: oklch(0.42 0.015 248);
    --band: oklch(0.19 0.012 248);
    --band-line: oklch(0.32 0.015 248);
    --focus: var(--vermilion-bright);
    --error: oklch(0.72 0.16 30);
    --success: oklch(0.78 0.13 160);
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-ink: currentColor;
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn-light { --btn-bg: var(--cobalt-ink); --btn-ink: var(--cobalt-deep); }
.btn-light:hover { --btn-bg: oklch(1 0 0); }
.btn-ghost { --btn-line: color-mix(in oklch, var(--cobalt-ink) 55%, transparent); --btn-ink: var(--cobalt-ink); }
.btn-ghost:hover { --btn-line: var(--cobalt-ink); --btn-bg: color-mix(in oklch, var(--cobalt-ink) 10%, transparent); }
.btn-primary { --btn-bg: var(--cobalt); --btn-ink: var(--cobalt-ink); }
.btn-primary:hover { --btn-bg: var(--cobalt-deep); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  color: var(--cobalt-ink);
  background: var(--cobalt);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  --mark-ink: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.is-scrolled .brand { --mark-ink: var(--bg); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.is-scrolled .brand-mark, .brand-footer .brand-mark { color: var(--cobalt); }
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 118;
}
.brand-name span { font-weight: 400; margin-left: 0.25em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-weight: 550;
  font-size: var(--step--1);
}
.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.nav a:hover { background-size: 100% 1.5px; }
.nav a.nav-cta {
  padding: 0.55rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.nav a.nav-cta:hover { background: var(--cobalt-ink); color: var(--cobalt-deep); }
.is-scrolled .nav a.nav-cta { border-color: var(--cobalt); background: var(--cobalt); color: var(--cobalt-ink); }
.is-scrolled .nav a.nav-cta:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }

.nav a.nav-cta { white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 47.99rem) {
  .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 26rem) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* Hero */
.hero {
  --focus: var(--cobalt-ink);
  position: relative;
  background: var(--cobalt);
  color: var(--cobalt-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  padding-top: clamp(3rem, 2rem + 6vw, 7rem);
  position: relative;
  z-index: 1;
}
.hero-tag {
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--cobalt-soft);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-tag::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--vermilion-bright);
  border-radius: 2px;
}
.hero-title {
  font-size: var(--step-4);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-variation-settings: "wdth" 112;
  max-width: 17ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-style: normal;
  font-weight: 300;
  font-variation-settings: "wdth" 100;
  color: var(--cobalt-soft);
}
.hero-foot {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  align-items: end;
}
.hero-lead {
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: oklch(0.94 0.02 240);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 60rem) {
  .hero-foot { grid-template-columns: 1fr auto; gap: 3rem; }
}

.hero-scene {
  position: relative;
  height: clamp(200px, 28vw, 360px);
  margin-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.hero-scene canvas { width: 100%; height: 100%; }

/* Hero entrance (content is visible by default; animation only enhances) */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1.1s var(--ease-expo) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero-title .line:nth-child(3) > span { animation-delay: 0.16s; }
  .hero-tag, .hero-foot { animation: fade-up 1s var(--ease-out) 0.35s both; }
  .hero-scene { animation: fade 1.6s var(--ease-out) 0.2s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* Section heads */
.section-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 760;
  letter-spacing: -0.022em;
  font-variation-settings: "wdth" 110;
}
.section-head p { max-width: 46ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 60rem) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* Services */
.services { padding-block: var(--section); }
.service-list { border-top: 1.5px solid var(--ink); }
.service {
  position: relative;
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.service-name {
  font-size: var(--step-2);
  font-weight: 720;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 108;
  max-width: 16ch;
  transition: color 0.3s var(--ease-out);
}
.service:hover .service-name { color: var(--cobalt); }
.service-body p { max-width: 60ch; color: var(--ink); }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 520;
  color: var(--muted);
  background: var(--bg);
}
.service-ai {
  margin-top: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  padding-inline: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 60rem) {
  .service { grid-template-columns: 1.1fr 1fr; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service, .step {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes slide-in { from { opacity: 0.25; transform: translateY(28px); } }

/* Approach */
.approach {
  --focus: var(--vermilion-bright);
  padding-block: var(--section);
  background: var(--band);
  color: var(--band-ink);
}
.approach .section-head p { color: var(--band-muted); }
.steps {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--band-line);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--vermilion-bright);
}
.step-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: var(--step-3);
  font-weight: 200;
  line-height: 1;
  color: var(--band-muted);
  font-variation-settings: "wdth" 125;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: var(--step-1);
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  margin-bottom: 0.6rem;
}
.step p { color: var(--band-muted); font-size: var(--step-0); max-width: 34ch; }

/* Contact */
.contact { padding-block: var(--section); }
.contact-inner { display: grid; gap: 3rem 5rem; }
@media (min-width: 60rem) {
  .contact-inner { grid-template-columns: 0.85fr 1.15fr; }
  .contact-intro { position: sticky; top: 7rem; align-self: start; }
}
.contact-intro h2 {
  font-size: var(--step-3);
  font-weight: 760;
  letter-spacing: -0.022em;
  font-variation-settings: "wdth" 110;
  margin-bottom: 1.25rem;
}
.contact-intro p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.contact-mail { margin-top: 2rem; font-size: var(--step-0) !important; }
.contact-mail a {
  display: inline-block;
  color: var(--cobalt);
  font-weight: 650;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}
@media (prefers-color-scheme: dark) {
  .contact-mail a { color: var(--cobalt-soft); }
}

.form { display: grid; gap: 1.4rem; }
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label, .topics legend {
  font-size: var(--step--1);
  font-weight: 620;
}
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  line-height: 1.4;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--cobalt) 30%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 0; font-size: var(--step--1); color: var(--error); font-weight: 520; }
.field-error:empty { display: none; }

.topics { border: 0; padding: 0; min-width: 0; }
.topics legend { margin-bottom: 0.6rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--field-line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 560;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.chip:hover span { border-color: var(--cobalt); }
.chip input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: var(--cobalt-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.4rem; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-weight: 560; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.form-status a { font-weight: 650; }

.btn[aria-busy="true"]::after {
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  width: 0.9em;
  height: 0.9em;
  transform: none;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-inner { display: grid; gap: 0.75rem; }
.brand-footer { --mark-ink: var(--bg); color: var(--ink); margin-bottom: 0.5rem; }
.legal a { text-underline-offset: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
