/* ============================================
   TOPEYE.ORG — Main Stylesheet
   Aesthetic: organic editorial humanism
   Warm paper · Fraunces serif display · muted teal + terracotta clay
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

/* --- Reset & Base --- */

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

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

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Fine paper grain over the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--clay); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Custom Properties --- */

:root {
  /* Warm paper neutrals */
  --paper: #f7f2e9;
  --paper-2: #f1e9da;
  --paper-3: #ebe0cd;
  --white: #fffdf8;

  /* Ink */
  --ink: #221f1a;
  --ink-soft: #5d574c;
  --ink-faint: #8c8475;

  /* Brand — muted/earthy */
  --teal: #1f4e57;
  --teal-deep: #143036;
  --teal-soft: #3c727b;
  --clay: #bf6a39;
  --clay-deep: #a4542a;
  --clay-soft: #d98c5c;

  --line: #ddd2bf;
  --line-soft: #e7dccb;

  /* Semantic */
  --color-success: #3a7d54;
  --color-error: #b8472f;

  /* Back-compat aliases (older markup/pages still reference these) */
  --color-teal: var(--teal);
  --color-teal-dark: var(--teal-deep);
  --color-teal-light: var(--teal-soft);
  --color-orange: var(--clay);
  --color-orange-dark: var(--clay-deep);
  --color-orange-light: var(--clay-soft);
  --color-white: var(--white);
  --color-off-white: var(--paper-2);
  --color-gray-100: var(--paper-2);
  --color-gray-200: var(--line);
  --color-gray-300: var(--ink-faint);
  --color-gray-600: var(--ink-soft);
  --color-gray-800: var(--ink);
  --color-black: var(--ink);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-accent: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-hero: 4rem;
  --text-h1: 3.25rem;
  --text-h2: 2.4rem;
  --text-h3: 1.6rem;
  --text-h4: 1.2rem;
  --text-display: 3rem;
  --text-body: 1.0625rem;
  --text-body-lg: 1.25rem;
  --text-small: 0.9375rem;
  --text-xs: 0.8125rem;
  --text-accent: 0.8125rem;

  /* Spacing (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1180px;
  --max-width-narrow: 760px;
  --max-width-wide: 1380px;
  --container-padding: 1.5rem;

  /* Misc */
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 14px rgba(60, 44, 24, 0.06);
  --shadow-md: 0 10px 34px rgba(60, 44, 24, 0.09);
  --shadow-lg: 0 20px 60px rgba(60, 44, 24, 0.13);
  --shadow-header: 0 1px 0 var(--line), 0 6px 24px rgba(60, 44, 24, 0.05);
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { max-width: 64ch; }

.overline {
  font-family: var(--font-accent);
  font-size: var(--text-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay-deep);
}

.text-lg { font-size: var(--text-body-lg); line-height: 1.6; }
.mono { font-family: var(--font-mono); font-size: var(--text-small); }

/* Lead paragraph — large serif intro text */
.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* --- Layout & Container --- */

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--container-padding); position: relative; z-index: 2; }
.container--narrow { max-width: var(--max-width-narrow); margin-inline: auto; padding-inline: var(--container-padding); position: relative; z-index: 2; }
.container--wide { max-width: var(--max-width-wide); margin-inline: auto; padding-inline: var(--container-padding); position: relative; z-index: 2; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-8); }

/* --- Skip to Content --- */

.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--clay); color: var(--white);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-small);
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-2); color: var(--white); }

/* --- Organic decoration --- */

/* sections clip their blobs */
.section, .hero, .page-hero, .cta-banner { position: relative; overflow: hidden; }

.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.5;
}
.blob svg { width: 100%; height: 100%; }

/* Aperture / contour line-work — crisp fine rings, varied per page */
.aperture {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.aperture svg { width: 100%; height: 100%; display: block; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .aperture svg { animation: aperture-drift 42s ease-in-out infinite alternate; }
}
@keyframes aperture-drift {
  from { transform: rotate(-2.5deg) scale(1); }
  to   { transform: rotate(2.5deg) scale(1.035); }
}

/* soft radial wash helper */
.wash--clay { background:
  radial-gradient(60% 50% at 80% 0%, rgba(191,106,57,0.10), transparent 70%); }
.wash--teal { background:
  radial-gradient(55% 60% at 10% 100%, rgba(31,78,87,0.10), transparent 70%); }

/* legacy diamond motif — kept tiny as a faint accent only */
.diamond-texture { background-color: var(--paper); }
.diamond-texture--dark { background-color: var(--teal); }

/* --- Header & Navigation --- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 233, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  height: 74px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-header); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.site-nav a {
  font-family: var(--font-body); font-size: var(--text-small); font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em; padding: var(--space-2) 0; position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--clay); border-radius: 2px; transition: width 0.25s ease-out;
}
.site-nav a:hover { color: var(--clay); }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a[aria-current="page"]::after { width: 100%; background: var(--teal); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* --- Hero (light, organic) --- */

.hero {
  background: var(--paper);
  padding: var(--space-32) 0 var(--space-24);
  text-align: center;
}
.hero .container { max-width: 880px; }
.hero .overline { color: var(--clay-deep); margin-bottom: var(--space-6); display: block; }
.hero h1 {
  font-size: var(--text-hero); font-weight: 500; color: var(--ink);
  line-height: 1.02; margin-bottom: var(--space-8); letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .tagline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.5;
  color: var(--ink-soft); margin: 0 auto var(--space-12); max-width: 620px; letter-spacing: -0.01em;
}
.hero-buttons { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* decorative hero artwork wrapper */
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Page hero (inner pages) — warm, organic, not a hard teal block */
.page-hero {
  background: var(--paper-2);
  padding: var(--space-32) 0 var(--space-20);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .overline { margin-bottom: var(--space-4); display: block; }
.page-hero h1 { font-size: var(--text-display); color: var(--ink); margin-bottom: var(--space-6); letter-spacing: -0.02em; }
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero .tagline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 620px; margin: 0 auto;
}

/* --- Sections --- */

.section { padding: var(--space-24) 0; background: var(--paper); }
.section--white { background: var(--white); }
.section--alt { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }
.section--teal { background: var(--teal); color: var(--paper); }
.section--teal h2, .section--teal h3 { color: var(--paper); }
.section--teal .overline { color: var(--clay-soft); }
.section--teal a { color: var(--clay-soft); }
.section--teal a:hover { color: var(--white); }

.section-header { text-align: center; margin-bottom: var(--space-16); max-width: 680px; margin-inline: auto; }
.section-header .overline { margin-bottom: var(--space-4); display: block; }
.section-header h2 { margin-bottom: var(--space-6); }
.section-header p { color: var(--ink-soft); font-size: var(--text-body-lg); max-width: 600px; margin-inline: auto; }

/* --- Buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-body);
  padding: 0.9rem 1.9rem; border-radius: 100px; min-height: 50px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none; border: 1.5px solid transparent; letter-spacing: 0.005em;
}
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 6px 18px rgba(191,106,57,0.22); }
.btn-primary:hover { background: var(--clay-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(191,106,57,0.28); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--paper); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }

.btn-ghost { background: transparent; border-color: var(--clay); color: var(--clay-deep); }
.btn-ghost:hover { background: var(--clay); color: var(--white); transform: translateY(-2px); }

/* on teal backgrounds */
.section--teal .btn-ghost, .cta-banner .btn-ghost { border-color: rgba(255,253,248,0.6); color: var(--paper); }
.section--teal .btn-ghost:hover, .cta-banner .btn-ghost:hover { background: rgba(255,253,248,0.12); border-color: var(--paper); color: var(--white); }

/* --- Project cards --- */

.project-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--clay-soft); }
.project-card .card-icon { width: 52px; height: 52px; margin-bottom: var(--space-6); color: var(--teal); }
.project-card .card-icon svg { width: 52px; height: 52px; stroke: var(--teal); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.project-card h3 { font-size: var(--text-h3); margin-bottom: var(--space-3); }
.project-card p { color: var(--ink-soft); font-size: var(--text-body); line-height: 1.6; flex: 1; }
.project-card p em { color: var(--clay-deep); font-style: italic; }
.project-card .card-link {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6);
  font-family: var(--font-body); font-size: var(--text-small); font-weight: 600; color: var(--clay-deep);
  transition: gap 0.2s ease;
}
.project-card:hover .card-link { gap: var(--space-3); }

/* Pillar cards — now illustration-led, no photos */
.pillar-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--clay-soft); }
.pillar-illus { aspect-ratio: 16 / 10; width: 100%; display: block; }
.pillar-card .pillar-content { padding: var(--space-8); }
.pillar-card .overline { margin-bottom: var(--space-2); display: block; }
.pillar-card h3 { margin-bottom: var(--space-3); }
.pillar-card p { color: var(--ink-soft); font-size: var(--text-body); }

/* --- Logo Grid (partners) --- */

.logo-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-12) var(--space-16); }
.logo-grid img { height: 38px; width: auto; filter: grayscale(100%) sepia(18%) brightness(0.95); opacity: 0.55; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
.logo-grid img:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.logo-grid--tech img { height: 30px; }

/* --- CTA Banner --- */

.cta-banner { background: var(--teal); text-align: center; padding: var(--space-24) var(--container-padding); }
.cta-banner h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); color: var(--paper); margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,253,248,0.8); font-size: var(--text-body-lg); margin: 0 auto var(--space-8); max-width: 600px; }
.cta-banner .btn + .btn { margin-left: var(--space-3); }

/* --- Forms --- */

.form-group { margin-bottom: var(--space-6); }
.form-group label { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--text-small); color: var(--ink); margin-bottom: var(--space-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); background: var(--white);
  font-family: var(--font-body); font-size: var(--text-body); color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,78,87,0.14);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-faint); }

.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-16); }
.contact-form {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--space-12); box-shadow: var(--shadow-sm);
}
.contact-sidebar .contact-item { margin-bottom: var(--space-8); }
.contact-sidebar .contact-item h3 { font-size: var(--text-h4); font-family: var(--font-display); font-weight: 500; color: var(--teal); margin-bottom: var(--space-2); }
.contact-sidebar .contact-item a { font-size: var(--text-body); color: var(--clay-deep); font-weight: 500; }
.contact-sidebar .contact-item a:hover { color: var(--clay); }
.contact-sidebar .contact-item p { color: var(--ink-soft); font-size: var(--text-body); }

/* --- Alternating Feature Layout --- */

.feature-row { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-16); align-items: center; padding: var(--space-20) 0; }
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.feature-row--reverse { grid-template-columns: 6fr 5fr; }
.feature-row--reverse .feature-image { order: 2; }
.feature-image { border-radius: var(--radius-lg); overflow: hidden; }
.feature-image img, .feature-image svg { width: 100%; border-radius: var(--radius-lg); }
.feature-text .overline { margin-bottom: var(--space-3); display: block; }
.feature-text h3 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: var(--space-4); }
.feature-text p { color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--space-4); }
.feature-text p em { color: var(--clay-deep); font-style: italic; }

.tech-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tech-badge { font-family: var(--font-mono); font-size: var(--text-xs); background: var(--paper-2); color: var(--ink-soft); padding: var(--space-1) var(--space-3); border-radius: 100px; border: 1px solid var(--line); }

/* --- Presence / pullquote --- */

.presence-cities { font-family: var(--font-display); font-weight: 400; font-size: var(--text-body-lg); color: rgba(255,253,248,0.85); max-width: 720px; margin: 0 auto; text-align: center; line-height: 1.8; }

/* --- Info cards (Partners) --- */

.info-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--space-12); box-shadow: var(--shadow-sm); height: 100%; }
.info-card .overline { display: block; margin-bottom: var(--space-2); }
.info-card h3 { margin-bottom: var(--space-6); }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: var(--space-4); color: var(--ink-soft); line-height: 1.55; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg); }

/* --- Transparency ledger --- */

.ledger-note { background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--clay); border-radius: var(--radius); padding: var(--space-12); box-shadow: var(--shadow-sm); margin-bottom: var(--space-12); }
.ledger-note p { color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--space-6); max-width: none; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.ledger-table th, .ledger-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-soft); }
.ledger-table thead th { font-family: var(--font-accent); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); background: var(--paper-2); }
.ledger-table .num { text-align: right; font-family: var(--font-mono); }
.ledger-table .ledger-empty { text-align: center; color: var(--ink-faint); padding: var(--space-8); font-style: italic; }
.ledger-caption { font-size: var(--text-xs); color: var(--ink-faint); text-align: center; margin-top: var(--space-3); }

/* --- Pending project card --- */

.project-card--pending { background: var(--paper-2); border-style: dashed; border-color: var(--line); box-shadow: none; }
.project-card--pending:hover { transform: none; box-shadow: none; border-color: var(--line); }
.project-card--pending .card-icon svg { stroke: var(--ink-faint); }
.project-card--pending h3 { color: var(--ink-soft); }
.card-link--muted { color: var(--ink-faint); cursor: default; }

/* --- Footer --- */

.site-footer { background: var(--teal-deep); padding: var(--space-20) 0 var(--space-8); color: var(--paper); position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-16); }
.footer-brand p { font-size: var(--text-small); color: rgba(247,242,233,0.6); margin-top: var(--space-4); line-height: 1.7; max-width: 300px; }
.footer-brand img { height: 26px; width: auto; }
.footer-col h4 { font-family: var(--font-accent); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--clay-soft); margin-bottom: var(--space-4); }
.footer-col ul li + li { margin-top: var(--space-2); }
.footer-col a { color: rgba(247,242,233,0.8); font-size: var(--text-small); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--clay-soft); }
.footer-bottom { border-top: 1px solid rgba(247,242,233,0.14); padding-top: var(--space-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); color: rgba(247,242,233,0.5); }
.footer-bottom a { color: rgba(247,242,233,0.5); }
.footer-bottom a:hover { color: var(--clay-soft); }

/* --- Utilities --- */

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px;
}

/* --- Animations --- */

.animate-ready .fade-in-up { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.2,0.7,0.2,1), transform 0.55s cubic-bezier(0.2,0.7,0.2,1); }
.animate-ready .fade-in-up.visible { opacity: 1; transform: translateY(0); }
.animate-ready .grid-3 > :nth-child(1) { transition-delay: 0ms; }
.animate-ready .grid-3 > :nth-child(2) { transition-delay: 90ms; }
.animate-ready .grid-3 > :nth-child(3) { transition-delay: 180ms; }
.animate-ready .grid-3 > :nth-child(4) { transition-delay: 270ms; }
.animate-ready .grid-3 > :nth-child(5) { transition-delay: 360ms; }
.animate-ready .grid-3 > :nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade-in-up { opacity: 1; transform: none; }
}

/* --- Media Queries --- */

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .contact-sidebar { order: -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; gap: var(--space-8); }
  .feature-row--reverse .feature-image { order: 0; }
}

@media (max-width: 767px) {
  :root {
    --text-hero: 2.6rem; --text-h1: 2.2rem; --text-h2: 1.8rem; --text-h3: 1.4rem;
    --text-display: 2.2rem; --container-padding: 1.25rem;
  }
  .hero { padding: var(--space-20) 0 var(--space-16); }
  .page-hero { padding: var(--space-20) 0 var(--space-16); }
  .site-header { height: 62px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: fixed; top: 62px; right: 0; bottom: 0; width: 280px;
    background: var(--paper); flex-direction: column; padding: var(--space-8) var(--space-6);
    gap: var(--space-4); box-shadow: -8px 0 30px rgba(60,44,24,0.12); z-index: 99; overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: var(--text-body); padding: var(--space-3) 0; }
  .site-nav a::after { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
  .section { padding: var(--space-16) 0; }
  .section-header { margin-bottom: var(--space-12); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner .btn + .btn { margin-left: 0; margin-top: var(--space-4); }
  .info-card, .contact-form { padding: var(--space-8); }
  .project-card { padding: var(--space-6); }
}
