/* ===== AL TERMO TOV — Cinematic Editorial Design System ===== */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #111116;
  --surface: #16161d;
  --surface-hover: #1c1c26;
  --border: rgba(245, 240, 232, 0.08);
  --border-strong: rgba(245, 240, 232, 0.16);
  --text: #f5f0e8;
  --text-muted: #9a9690;
  --text-dim: #6b6762;
  --accent: #e63946;
  --accent-soft: #ff6b6b;
  --gold: #c9a227;
  --gold-soft: #e8c547;
  --violet: #7b5ea7;
  --gradient-accent: linear-gradient(135deg, #e63946 0%, #c9a227 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(230, 57, 70, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 55%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Typography */
.font-display, h1, h2, h3, .font-heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.font-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

/* Layout */
.page-wrap {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--gradient-hero);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 240, 232, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

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

.logo:hover {
  color: var(--gold-soft);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);
  list-style: none;
  margin: 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  background: var(--surface-hover);
}

.card-featured {
  border-color: rgba(201, 162, 39, 0.25);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(201, 162, 39, 0.04) 100%);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-icon.gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-soft);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
}

.film-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
}

.film-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5rem;
  background: repeating-linear-gradient(
    90deg,
    var(--surface) 0,
    var(--surface) 8px,
    transparent 8px,
    transparent 16px
  );
  border-bottom: 1px solid var(--border);
}

.film-frame-inner {
  position: absolute;
  inset: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(230, 57, 70, 0.08) 0%, rgba(123, 94, 167, 0.06) 50%, transparent 100%);
}

.film-frame-inner .play-ring {
  width: 5rem;
  height: 5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}

.film-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: auto;
  padding-top: 2rem;
}

.film-stat {
  text-align: center;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.film-stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  display: block;
}

.film-stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 1rem 0;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticker-item strong {
  color: var(--gold-soft);
  font-weight: 500;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-label {
  justify-content: center;
}

.section-header.center .section-label::before {
  display: none;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1rem;
}

.section-header.center .section-subtitle {
  margin-inline: auto;
}

/* Bento grid */
.bento-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-item-1 { grid-column: span 7; }
  .bento-item-2 { grid-column: span 5; }
  .bento-item-3 { grid-column: span 5; }
  .bento-item-4 { grid-column: span 7; }
}

.bento-card {
  padding: 2rem;
  height: 100%;
}

.bento-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.bento-card .meta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* About split */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-lead {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.principal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.principal-badge em {
  color: var(--gold-soft);
  font-style: normal;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.info-row .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-row h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.info-row p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Process — horizontal steps */
.process-track {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .process-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 1.75rem;
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(230, 57, 70, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.process-step .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -0.625rem;
    width: 1.25rem;
    height: 1px;
    background: var(--border-strong);
  }
}

/* Industries */
.industries-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.industry-panel {
  padding: 2.5rem;
}

.industry-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.industry-panel h3 svg {
  color: var(--accent);
  flex-shrink: 0;
}

.industry-panel > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.industry-list li:last-child {
  border-bottom: none;
}

.industry-list li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
}

/* Company details */
.details-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 640px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-cell {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .detail-cell:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .detail-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.detail-cell.full-width {
  grid-column: 1 / -1;
  border-right: none;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1rem;
  color: var(--text);
}

.detail-value.highlight {
  color: var(--gold-soft);
  font-family: var(--font-mono);
}

.detail-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.375rem;
}

/* Location & contact */
.contact-panel {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-address h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-address p {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

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

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12) 0%, rgba(201, 162, 39, 0.08) 100%);
  border-block: 1px solid var(--border);
  padding-block: 5rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.footer-brand span {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copy {
    text-align: right;
  }
}

/* Subpages */
.subpage-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
}

.subpage-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.subpage-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.subpage-nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .subpage-nav {
    display: flex;
  }
}

.subpage-main {
  flex: 1;
  padding-block: 4rem;
}

.subpage-content {
  padding: 2.5rem;
}

.subpage-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.subpage-content a {
  color: var(--accent-soft);
  text-decoration: none;
}

.subpage-content a:hover {
  text-decoration: underline;
}

.privacy-policy-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-policy-page > h1 {
  text-align: center;
  width: 100%;
}

.privacy-policy-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-policy-sections .card {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: justify;
}

.privacy-policy-sections .card p,
.privacy-policy-sections .card li {
  text-align: justify;
}

.privacy-policy-sections a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.privacy-policy-sections a:hover {
  color: var(--text);
}

.privacy-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.25rem;
}

.privacy-policy-sections ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.75;
}

.privacy-policy-sections li {
  margin-bottom: 0.35rem;
}

.privacy-policy-sections li:last-child {
  margin-bottom: 0;
}

.privacy-policy-sections p:last-child,
.privacy-policy-sections ul:last-child {
  margin-bottom: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .ticker-track {
    animation: none;
  }

  .film-frame-inner .play-ring {
    animation: none;
  }

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