/* Palette and type follow the AEC Agent workspace so the two read as one brand. */
:root {
  --bg: #091a2b;
  --glow: #14364e;
  --panel: #191f27;
  --text: #f4f6f8;
  --muted: #a4b0be;
  --line: #ffffff21;
  --line-soft: #ffffff15;
  --accent: #82b5ff;
  --sea: #82b5ff1f;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --header-h: 72px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(at 62% 22%, var(--glow) 0%, #0000 64%);
}

h1, h2, h3, h4, p, dl, dd, ol, address { margin: 0; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #091a2bd9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: block;
  perspective: 500px;
  border-radius: 4px;
}

/* Two faces of one card: English on the front, Hindi on the back. */
.logo-card {
  display: grid;
  width: clamp(112px, 14vw, 140px);
  aspect-ratio: 385 / 100;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.logo-face {
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo-hi { transform: rotateX(180deg); }

.logo-card.is-flipped { transform: rotateX(180deg); }

@media (prefers-reduced-motion: reduce) {
  .logo-card,
  .logo-card.is-flipped { transform: none; transition: none; }
  .logo-face { transition: opacity 0.6s; }
  .logo-hi { transform: none; opacity: 0; }
  .logo-card.is-flipped .logo-en { opacity: 0; }
  .logo-card.is-flipped .logo-hi { opacity: 1; }
}

.site-header nav {
  display: flex;
  gap: clamp(4px, 1.5vw, 12px);
}

.site-header nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-header nav a:hover {
  color: var(--text);
  background: var(--sea);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--max);
  min-height: min(calc(100svh - var(--header-h)), 760px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid #82b5ff59;
  border-radius: 999px;
  background: var(--sea);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 32em;
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { background: #a3c8ff; }
.btn:active { transform: translateY(1px); }

.hero-model {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0;
  justify-self: end;
}

.hero-model canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Disciplines */

.disciplines,
.products,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 9vw, 120px);
}

.disciplines dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.disciplines dl > div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.disciplines dt {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.disciplines dd {
  max-width: 30em;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Products */

h2 {
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
}

.product-head {
  padding: clamp(28px, 4.5vw, 56px);
}

.product-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 28px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-brand sub {
  position: relative;
  bottom: -0.2em;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

.product h3 {
  max-width: 11ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.product-desc {
  max-width: 32em;
  margin-bottom: 32px;
  color: var(--muted);
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* The steps are a path through the product, so a line ties them together. */
.product-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 56px);
  list-style: none;
  counter-reset: step;
  border-left: 1px solid var(--line-soft);
  background: radial-gradient(at 85% 15%, var(--sea) 0%, #0000 70%);
}

.product-steps li {
  position: relative;
  padding: 0 0 28px 52px;
  counter-increment: step;
}
.product-steps li:last-child { padding-bottom: 0; }

.product-steps li::before {
  content: counter(step);
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--panel);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.product-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #82b5ff59;
}

.product-steps h4 {
  margin-bottom: 4px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.product-steps p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.more {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

.contact-grid p {
  max-width: 34em;
  margin-bottom: 20px;
  color: var(--muted);
}

.contact-mail {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid #82b5ff80;
  overflow-wrap: anywhere;
  transition: border-color 0.15s;
}
.contact-mail:hover { border-bottom-color: var(--accent); }

address {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.address-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 500;
}

/* Footer */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

/* Responsive */

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-model {
    justify-self: center;
    max-width: 420px;
  }
  .product,
  .contact-grid,
  .disciplines dl { grid-template-columns: minmax(0, 1fr); }
  .product-steps {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}
