/* AQUAPROCESS UFH - Base: reset, variables, typography */
:root {
  --navy: #0B2A4A;
  --navy-dark: #071D33;
  --accent: #C8102E;
  --premium-blue: #C8102E;
  --premium-blue-hover: #A50D25;
  --brand-red: #C8102E;
  --brand-red-hover: #A50D25;
  --ice: #EAF1F8;
  --white: #FFFFFF;
  --ink: #1C2733;
  --ink-muted: #4A5568;
  --hairline: #D7E3EE;
  --max-width: 1280px;
  --gutter: 64px;
  --gutter-m: 24px;
  --header-h: 80px;
  --radius: 5px;
  --ease: 200ms ease;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-fab: 0 4px 16px rgba(11, 42, 74, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

main {
  background: var(--white);
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--navy);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

p {
  color: var(--ink-muted);
}

p + p {
  margin-top: 1rem;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.container {
  width: 100%;
  max-width: min(var(--max-width), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Laptop / mid desktop: tighter gutters so content fits the screen */
@media (max-width: 1366px) {
  :root {
    --gutter: 40px;
    --max-width: 1200px;
  }
}

@media (max-width: 1100px) {
  :root {
    --gutter: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: var(--gutter-m);
  }

  body {
    font-size: 16px;
  }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: translateY(24px) scale(0.98);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Projects section always paints (no scroll-reveal hide) */
#projects.reveal,
#projects,
#projects .projects-grid,
#projects .project-card,
#projects .section-intro,
#projects .btn-group {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
