/* ===================================
   AIRIZ — site styles
   Palette follows the logo: warm off-white, charcoal, one red accent.
   =================================== */

:root {
  --bg: #f5f4f1;
  --bg-alt: #eeece7;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --ink-soft: #3a3936;
  --muted: #6b6963;
  --line: rgba(28, 28, 28, 0.1);
  --line-strong: rgba(28, 28, 28, 0.2);
  --accent: #d40f27;
  --accent-ink: #ffffff;
  --btn: #1c1c1c;
  --btn-ink: #f5f4f1;
  --shadow: 0 1px 2px rgba(28, 28, 28, 0.04), 0 8px 24px rgba(28, 28, 28, 0.06);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #121211;
  --bg-alt: #181816;
  --surface: #1e1e1c;
  --ink: #f2f1ee;
  --ink-soft: #d6d4cf;
  --muted: #a3a19b;
  --line: rgba(242, 241, 238, 0.1);
  --line-strong: rgba(242, 241, 238, 0.22);
  --accent: #ee2a42;
  --btn: #f2f1ee;
  --btn-ink: #121211;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* `hidden` must win over component display rules (grid/flex) */
[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--btn);
  color: var(--btn-ink);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Theme-aware logo: two files, never a CSS filter (keeps the red triangle red) */
.logo-dark,
[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 16px/1 var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link:hover::after {
  transform: translateX(3px);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}

.icon-btn:hover {
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta-mobile,
.menu-btn {
  display: none;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
  grid-area: 1 / 1;
}

.menu-btn span:first-child {
  transform: translateY(-3px);
}

.menu-btn span:last-child {
  transform: translateY(3px);
}

.menu-open .menu-btn span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-btn span:last-child {
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.announce::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.announce:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.field .field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--accent);
  flex: none;
}

.field .field-check {
  font-size: 15px;
  font-weight: 400;
}

.field.invalid .field-check input[type="checkbox"] {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 em {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mark svg {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.hero-mark .orbit {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  transform-origin: 300px 300px;
  animation: spin 80s linear infinite;
}

.hero-mark .orbit-2 {
  stroke-dasharray: none;
  stroke: var(--line);
  animation: none;
}

.hero-mark .mark-a {
  fill: var(--ink);
}

.hero-mark .mark-tri {
  fill: var(--accent);
  transform-origin: 224px 260px;
  animation: pulse 4s var(--ease) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.88);
  }
}

.clients {
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.clients-logo {
  width: clamp(120px, 13vw, 160px);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.clients-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.stats {
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats dt {
  font-size: 13px;
  color: var(--muted);
}

.stats dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.work-art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 60%),
    color-mix(in srgb, var(--tint) 12%, var(--surface));
  border-bottom: 1px solid var(--line);
}

.work-art span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--tint);
  color: #fff;
  font: 600 26px/1 var(--font-display);
  letter-spacing: -0.02em;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--tint) 40%, transparent);
}

.work-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.work-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-body p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.work-body .link {
  align-self: flex-start;
  margin-top: 6px;
}

.work-meta {
  display: flex;
  gap: 8px;
}

.work-meta span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.work-next {
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}

.work-next p {
  color: var(--muted);
  font-size: 15px;
}

.work-next .link {
  margin-top: 8px;
}

.work-next-plus {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.work-next:hover .work-next-plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Services ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.sticky {
  position: sticky;
  top: 120px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-no {
  font: 500 14px/1.6 var(--font-sans);
  color: var(--muted);
  padding-top: 2px;
}

.service-list li:hover .service-no {
  color: var(--accent);
}

.service-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Process ---------- */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.process li {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.process li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.process-step {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.process p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-item {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-copy > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.contact-links {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  transition: color 0.2s, padding 0.3s var(--ease);
}

.contact-links a::after {
  content: "↗";
  color: var(--muted);
}

.contact-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: 400 16px/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6963' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--line);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--accent);
}

.field-error {
  font-size: 13px;
  color: var(--accent);
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form .btn {
  justify-self: start;
}

.form-status {
  font-size: 15px;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: #1f8a70;
}

.form-status.error {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  font-size: 15px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 26em;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.footer-col h3 {
  font: 600 14px/1.4 var(--font-sans);
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 404 page ---------- */

.error-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}

.error-code {
  font: 700 clamp(96px, 18vw, 180px)/1 var(--font-display);
  letter-spacing: -0.05em;
}

.error-code span {
  color: var(--accent);
}

.error-page h1 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.error-page p {
  margin: 16px auto 0;
  max-width: 28em;
  color: var(--muted);
}

.error-page .hero-actions {
  justify-content: center;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-cta,
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    inset: 72px 0 0;
    padding: 16px var(--gutter);
    background: var(--bg);
    font: 600 28px/1.2 var(--font-display);
    color: var(--ink);
  }

  .menu-open .nav-links a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-open .nav-links a::after {
    display: none;
  }

  .menu-open .nav-cta-mobile {
    display: block;
    color: var(--accent);
  }

  .menu-open {
    overflow: hidden;
  }

  /* backdrop-filter would trap the fixed menu panel inside the 72px nav */
  .menu-open .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .hero-inner,
  .split,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mark {
    display: none;
  }

  .sticky {
    position: static;
  }

  .stats {
    gap: 16px;
  }

  .stats dd {
    font-size: 20px;
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .work-grid,
  .process,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
