/* ============================================================
   CRYO SNAX — COMPLETELY UNIQUE DESIGN SYSTEM
   No templates. No gradients. No 3-column grids. No rgba text.
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --cryo: #00c8c8;
  --cryo-deep: #007a7a;
  --cryo-ice: #e0f7f7;
  --signal: #ff3b3b;
  --stone: #2a2a2a;
  --warm-gray: #f0ede8;
  --border-thick: 2px solid var(--ink);

  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --line-height-relaxed: 1.75;
  --line-height-tight: 1.15;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: var(--line-height-relaxed);
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p { margin-bottom: 1.2em; }

a {
  color: var(--cryo-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover, a:focus-visible { color: var(--ink); text-decoration-color: var(--cryo); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

strong { font-weight: 700; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   NAVIGATION — Vertical accent bar, not a standard header
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  z-index: 1000;
}

.nav-mark {
  width: 32px;
  height: 32px;
  background: var(--cryo);
  transform: rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-mark:hover { transform: rotate(225deg); }

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.nav-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--cryo);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--cryo);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-contact-dot {
  width: 12px;
  height: 12px;
  background: var(--cryo);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--cryo); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* --- Main content offset for fixed nav --- */
main {
  margin-left: 80px;
}

/* ============================================================
   HOMEPAGE LAYOUT — Asymmetric, no hero, no columns
   ============================================================ */

/* --- Section 0: The Hammerhead --- */
.hammerhead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  min-height: 100vh;
}

.hammerhead-brand {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.brand-slab {
  text-align: left;
  max-width: 500px;
}

.brand-slab .company-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cryo);
  display: block;
  margin-bottom: 1rem;
}

.brand-slab h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: var(--paper);
  margin-bottom: 0.15em;
  line-height: 0.9;
}

.brand-slab .tagline {
  font-size: 1.1rem;
  color: var(--cryo);
  font-family: var(--font-mono);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--cryo);
}

/* Decorative geometry behind the brand */
.brand-geo {
  position: absolute;
  top: -15%;
  right: -15%;
  width: 60%;
  height: 80%;
  border: 3px solid var(--cryo-deep);
  transform: rotate(12deg);
  opacity: 0.25;
  pointer-events: none;
}
.brand-geo::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--cryo);
  transform: rotate(-3deg);
}

.hammerhead-contact-card {
  grid-column: 2;
  grid-row: 1;
  background: var(--warm-gray);
  padding: 3rem 3rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--ink);
}
.hammerhead-contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.hammerhead-contact-card address {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}
.hammerhead-contact-card .contact-methods {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hammerhead-visual {
  grid-column: 2;
  grid-row: 2;
  background: var(--cryo-ice);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Abstract cryo pattern — not a stock image, not a gradient */
.cryo-abstract {
  width: 180px;
  height: 180px;
  position: relative;
}

.cryo-abstract .core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--ink);
}

.cryo-abstract .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--cryo-deep);
  animation: ring-expand 3s ease-out infinite;
}
.cryo-abstract .ring:nth-child(2) { width: 90px; height: 90px; animation-delay: 0s; }
.cryo-abstract .ring:nth-child(3) { width: 130px; height: 130px; animation-delay: 1s; }
.cryo-abstract .ring:nth-child(4) { width: 170px; height: 170px; animation-delay: 2s; }

@keyframes ring-expand {
  0% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* --- Section 1: What We Do — L-shaped layout --- */
.what-we-do {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: auto auto;
  border-top: var(--border-thick);
}

.wwd-label {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--ink);
  color: var(--paper);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wwd-label h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cryo);
  line-height: 1.05;
}
.wwd-label .section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.wwd-primary {
  grid-column: 2;
  grid-row: 1;
  padding: 3rem 4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.wwd-primary .big-text {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
}

.wwd-secondary {
  grid-column: 2;
  grid-row: 2;
  padding: 3rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-chip {
  flex: 1 1 200px;
  max-width: 280px;
  background: var(--warm-gray);
  padding: 1.8rem;
  border-left: 5px solid var(--cryo-deep);
}
.service-chip h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.service-chip p {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 0;
}

/* --- Section 2: Counter Stats — horizontal stripe --- */
.stats-stripe {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 3rem;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.stat-item {
  text-align: center;
  flex: 1 1 180px;
  max-width: 240px;
}

.stat-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--cryo);
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: var(--paper);
  opacity: 0.8;
}

/* --- Section 3: Contact Form — full-width split --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.contact-intro {
  background: var(--cryo-ice);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--ink);
}
.contact-intro h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.contact-intro .intro-rule {
  width: 60px;
  height: 4px;
  background: var(--cryo-deep);
  margin-bottom: 1.5rem;
}
.contact-intro p {
  max-width: 400px;
  font-size: 1.05rem;
}

.contact-form-wrap {
  padding: 4rem;
  display: flex;
  align-items: center;
  background: var(--paper);
}

.contact-form {
  width: 100%;
  max-width: 520px;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cryo-deep);
  box-shadow: 6px 6px 0 var(--cryo-ice);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-send:hover, .btn-send:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--cryo);
}
.btn-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn-send .arrow-icon {
  display: inline-block;
  transition: transform 0.2s;
}
.btn-send:hover .arrow-icon { transform: translateX(4px); }

.form-feedback {
  margin-top: 1rem;
  font-weight: 700;
  min-height: 1.5em;
}
.form-feedback.success { color: var(--cryo-deep); }
.form-feedback.error { color: var(--signal); }

/* --- Footer --- */
.site-footer {
  margin-left: 80px;
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-branding .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-sans);
  margin-bottom: 0.3rem;
}
.footer-branding .footer-legal-name {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover, .footer-links a:focus-visible { opacity: 1; color: var(--cryo); }

.footer-extra {
  opacity: 0.5;
}

/* ============================================================
   PRIVACY & TERMS PAGES — Clean, readable, unique layout
   ============================================================ */
.legal-page {
  padding: 5rem 4rem;
  max-width: 820px;
}

.legal-page .legal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cryo);
  padding: 0.4em 1em;
  margin-bottom: 2rem;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.legal-page .legal-effective {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 5px solid var(--cryo-deep);
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p, .legal-page ul, .legal-page ol {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
}
.legal-page li { margin-bottom: 0.5em; }

.legal-page .company-block {
  background: var(--warm-gray);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.9;
}
.legal-page .company-block strong {
  font-family: var(--font-sans);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.8rem 1.5rem;
    position: relative;
  }
  .nav-links {
    flex-direction: row;
    writing-mode: horizontal-tb;
    gap: 1.2rem;
  }
  .nav-links a { font-size: 0.7rem; }
  .nav-contact-dot { display: none; }
  .nav-mark { width: 22px; height: 22px; }
  main { margin-left: 0; }
  .site-footer { margin-left: 0; }

  .hammerhead {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }
  .hammerhead-brand { grid-column: 1; grid-row: 1; padding: 3rem 2rem; }
  .hammerhead-contact-card { grid-column: 1; grid-row: 2; padding: 2rem; }
  .hammerhead-visual { grid-column: 1; grid-row: 3; padding: 3rem 2rem; }

  .what-we-do {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .wwd-label { grid-column: 1; grid-row: 1; padding: 2rem; }
  .wwd-primary { grid-column: 1; grid-row: 2; padding: 2rem; }
  .wwd-secondary { grid-column: 1; grid-row: 3; padding: 2rem; }

  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-intro, .contact-form-wrap {
    padding: 2.5rem 2rem;
  }
  .contact-intro { border-right: none; border-bottom: 1px solid var(--ink); }

  .stats-stripe { padding: 3rem 2rem; gap: 2rem; }
  .legal-page { padding: 3rem 2rem; }
}

@media (max-width: 500px) {
  html { font-size: 16px; }
  .site-nav { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.8rem; }
  .brand-slab h1 { font-size: 2.8rem; }
  .hammerhead-brand { padding: 2rem 1.2rem; }
  .wwd-primary { padding: 1.5rem; }
  .wwd-secondary { flex-direction: column; }
  .service-chip { max-width: none; }
  .stats-stripe { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 1.5rem; }
  .site-footer { flex-direction: column; padding: 2rem 1.5rem; }
}
