/* SensusTech — dark studio surface built around the brand's own assets:
   the white-text prism logo and the vivid app icons. Deep violet-navy ink,
   off-white type, prism-facet accents used sparingly per section. */

:root {
  --bg: oklch(20% 0.024 286);
  --bg-band: oklch(24% 0.028 286);
  --bg-deep: oklch(16.5% 0.02 286);
  --text: oklch(94.5% 0.012 286);
  --text-soft: oklch(72% 0.018 286);
  --text-faint: oklch(58% 0.018 286);
  --line: oklch(34% 0.025 286);

  --accent: oklch(66% 0.17 275);        /* prism blue-violet: primary */
  --accent-strong: oklch(74% 0.15 275);
  --f-magenta: oklch(64% 0.21 356);
  --f-orange: oklch(72% 0.15 50);
  --f-yellow: oklch(85% 0.14 92);

  --font: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;

  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  --step-2: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.5rem, 1.9rem + 2.8vw, 4.1rem);
  --step-4: clamp(3.1rem, 2.1rem + 4.8vw, 5.9rem);

  --space-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --space-section: clamp(5rem, 12vw, 10rem);
  --measure: 62ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--f-yellow); color: oklch(20% 0.024 286); }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.wordmark img { height: 1.8rem; width: auto; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem) var(--space-section);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
}

.hero h1 .accent-word { color: var(--accent-strong); }

.hero .lede {
  margin-top: 1.6rem;
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero .lede strong { color: var(--text); font-weight: 700; }

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--accent);
  color: oklch(15% 0.02 286);
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.btn:hover, .btn:focus-visible { background: var(--accent-strong); transform: translateY(-2px); }

.link-plain {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1em;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.link-plain:hover, .link-plain:focus-visible { color: var(--accent-strong); }

/* sticker cluster */

.stickers {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}

.stickers::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: oklch(30% 0.06 292);
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  transform: rotate(-8deg);
}

.stickers img {
  position: absolute;
  width: 38%;
  border-radius: 22%;
  box-shadow:
    0 0 0 1px oklch(40% 0.03 286 / 0.55),
    0 4px 10px oklch(8% 0.01 286 / 0.5),
    0 18px 36px oklch(8% 0.01 286 / 0.45);
  transition: transform 240ms var(--ease-out);
}

.stickers img:hover { transform: scale(1.06) rotate(0deg) !important; }

.stickers .st-1 { top: 6%;  left: 8%; transform: rotate(-7deg); width: 44%; z-index: 2; }
.stickers .st-2 { top: 12%; right: 6%; transform: rotate(5deg); }
.stickers .st-3 { bottom: 10%; left: 12%; transform: rotate(4deg); }
.stickers .st-4 { bottom: 4%; right: 10%; transform: rotate(-5deg); width: 42%; }

/* ---------- section headings ---------- */

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}

/* ---------- work ---------- */

.work {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
  padding-block: var(--space-section);
}

.work-intro {
  max-width: var(--measure);
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.app-rows {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.app-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.app-row:nth-child(even) .app-plate { order: 2; }

.app-plate {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.plate-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(10rem, 22vw, 15rem);
  transform: translate(-50%, -46%);
  filter: blur(56px) saturate(1.4);
  opacity: 0.5;
  z-index: -1;
  border-radius: 30%;
  transition: opacity 300ms var(--ease-out);
}

.app-icon {
  width: clamp(8.5rem, 18vw, 12.5rem);
  border-radius: 22%;
  box-shadow:
    0 2px 6px oklch(8% 0.01 286 / 0.55),
    0 24px 48px oklch(8% 0.01 286 / 0.5);
  transform: rotate(-3deg);
  transition: transform 240ms var(--ease-out);
}

.app-row:nth-child(even) .app-icon { transform: rotate(3deg); }

.app-row:hover .app-icon { transform: rotate(0deg) scale(1.04); }

.app-row:hover .plate-bg { opacity: 0.75; }

.app-info h3 {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.app-stats {
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.app-stats b { color: var(--text); font-weight: 800; }

.app-info p {
  margin-top: 1rem;
  max-width: 48ch;
  color: var(--text-soft);
  text-wrap: pretty;
}

.app-info .link-plain { display: inline-block; margin-top: 1.3rem; font-size: 1rem; }

/* ---------- studio ---------- */

.studio { padding-block: var(--space-section) clamp(3rem, 6vw, 4.5rem); }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.studio-lead {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: var(--measure);
  text-wrap: pretty;
}

.studio-lead strong { color: var(--text); }

.principles { list-style: none; display: grid; gap: 2.2rem; align-content: center; }

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
}

.principles .num {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.principles h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.principles p {
  margin-top: 0.4rem;
  color: var(--text-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

/* award band */

.award {
  margin-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3rem);
}

.award-badge {
  flex: 0 0 auto;
  width: clamp(7rem, 12vw, 8.5rem);
  filter: drop-shadow(0 10px 24px oklch(8% 0.01 286 / 0.45));
}

.award h3 {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.award p {
  margin-top: 0.9rem;
  max-width: 52ch;
  color: var(--text-soft);
  text-wrap: pretty;
}

.award p strong { color: var(--text); }

@media (max-width: 44rem) {
  .award { flex-direction: column; align-items: flex-start; }
}

/* ---------- contact ---------- */

.contact {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: var(--space-section) clamp(3rem, 7vw, 5rem);
}

.contact .kicker { color: var(--f-yellow); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.contact-note {
  margin-top: 1.4rem;
  color: var(--text-soft);
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-note a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--f-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.contact-form { display: grid; gap: 1.9rem; align-content: start; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  padding: 0.5rem 0.1rem;
  border-radius: 0;
  transition: border-color 180ms var(--ease-out);
}

.field textarea { min-height: 6.5rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--f-yellow);
}

.field input.invalid,
.field textarea.invalid { border-bottom-color: oklch(62% 0.19 25); }

.contact-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .btn[disabled] { opacity: 0.6; transform: none; cursor: default; }

.form-status {
  font-weight: 600;
  min-height: 1.5em;
  color: var(--f-yellow);
}

.form-status.error { color: oklch(72% 0.16 25); }

/* footer */

.site-foot {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

.site-foot img { height: 2rem; width: auto; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
}

.foot-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); }

.copyright { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(14px); }

.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.hero .reveal-seq > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 640ms var(--ease-out) forwards;
}

.hero .reveal-seq > *:nth-child(1) { animation-delay: 60ms; }
.hero .reveal-seq > *:nth-child(2) { animation-delay: 140ms; }
.hero .reveal-seq > *:nth-child(3) { animation-delay: 220ms; }

.hero .stickers { opacity: 0; animation: rise 700ms var(--ease-out) 260ms forwards; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal-seq > *, .hero .stickers {
    opacity: 1; transform: none; animation: none; transition: none;
  }
  .stickers img, .app-icon, .plate-bg, .btn { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stickers { max-width: 20rem; margin-top: 1rem; }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.88rem; }
  .wordmark span { display: none; }
  .app-row { grid-template-columns: 1fr; }
  .app-row:nth-child(even) .app-plate { order: 0; }
  .app-plate { padding: 1.2rem; }
  .app-icon { width: 7.5rem; }
  .plate-bg { width: 9rem; }
}
