/* ----- Variables (AREA 17 light theme) ----- */
:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --surface: #fff;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #1a1a1a;
  --border: #e0e0e0;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --space: clamp(1.5rem, 4vw, 4rem);
  --max: 75rem;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space);
  background: transparent;
  transition: background 0.3s ease, color 0.3s;
}
.header.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover,
.nav a:focus-visible { color: var(--text); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--text);
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--surface);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0,0,0,0.06);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; color: var(--text); }
}
@media (min-width: 769px) {
  .menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--space) * 2) var(--space) var(--space);
  background: var(--bg);
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 2rem;
  max-width: 18ch;
  color: var(--text);
}
.hero-partner-with {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.5em;
  margin-bottom: 1rem;
}
.hero-partner-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
}
.hero-client-rotator {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  min-height: 1.4em;
  color: var(--text);
}
.hero-client-rotator .hero-client-name { display: none; }
.hero-client-rotator .hero-client-name.active { display: inline; }
.hero-view-clients {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  width: fit-content;
  transition: opacity 0.2s;
}
.hero-view-clients:hover { opacity: 0.7; }

/* ----- Clients section (grid of client names) ----- */
.clients-section {
  padding: calc(var(--space) * 2) var(--space);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.client-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.client-item:hover { color: var(--text); }

/* ----- Intro + Industries ----- */
.intro {
  padding: calc(var(--space) * 2) var(--space);
  max-width: var(--max);
  margin: 0 auto;
}
.intro-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  max-width: 28ch;
  color: var(--text);
}
.intro-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}
.intro-links a {
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.intro-links a:hover { opacity: 0.7; }
.industries-heading {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.industries-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 2rem;
}
.industries-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.industries-list a:hover { color: var(--text); }

/* ----- Capabilities (with images) ----- */
.capabilities {
  padding: calc(var(--space) * 2) var(--space);
  background: var(--bg-alt);
}
.capabilities-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.capabilities-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 40ch;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cap-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #ccc;
}
.cap-card-image {
  aspect-ratio: 400/280;
  overflow: hidden;
  background: var(--bg-alt);
}
.cap-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  padding: 1.25rem 1.25rem 0.25rem;
  color: var(--text);
}
.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

/* ----- Culture (with team images) ----- */
.culture {
  padding: calc(var(--space) * 2) var(--space);
  max-width: var(--max);
  margin: 0 auto;
}
.culture-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.culture-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 2rem;
  line-height: 1.7;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-card-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-alt);
}
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.team-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Latest updates (with thumbnails) ----- */
.updates {
  padding: calc(var(--space) * 2) var(--space);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.updates-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto 1.5rem;
}
.update-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.update-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #ccc;
}
.update-card-image {
  display: block;
  aspect-ratio: 600/340;
  overflow: hidden;
  background: var(--bg-alt);
}
.update-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.update-card-title {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 1rem 1rem 0.25rem;
  color: var(--text);
}
.update-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 1rem 1rem;
}
.update-card-meta:hover { color: var(--text); }
.updates-more {
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  width: fit-content;
}
.updates-more:hover { opacity: 0.7; }

/* ----- CTA + Footer ----- */
.cta {
  padding: calc(var(--space) * 2) var(--space);
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.cta-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-button:hover { opacity: 0.85; transform: translateY(-1px); }
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.footer a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer a:hover { color: var(--text); }
.footer-newsletter { font-weight: 500; }
.copyright {
  width: 100%;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-lang {
  width: 100%;
  margin-top: 0.5rem;
}

/* ----- Modals ----- */
.modal.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-box--small { max-width: 380px; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.form-label .required { color: var(--text); }
.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-file {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-about-you {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.form-about-you .form-input { margin-bottom: 0.75rem; }
.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.9; }
.modal-footer-text {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-footer-text a { color: var(--text); }

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero-headline { max-width: none; }
  .intro-title { max-width: none; }
  .industries-list { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; }
}
