/* Palette seed: СОФТТЕХНОСЕРВІС → hue 307 */

:root {
  --bg: hsl(167, 31%, 9%);
  --text: hsl(167, 20%, 96%);
  --accent: hsl(307, 77%, 59%);
  --accent-two: hsl(39, 75%, 54%);
  --accent-three: hsl(187, 62%, 48%);
  --panel: color-mix(in srgb, var(--bg) 72%, hsl(167, 22%, 18%));
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --header-h: 72px;
  --max-w: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Syne", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 800;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

ul {
  list-style: none;
}

/* ─── HEADER: floating pill with underline nav ─── */

.header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  width: calc(100% - 2rem);
  margin: 1rem auto 0;
  padding: 0.55rem 0.85rem 0.55rem 1.1rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--bg) 60%, transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.logo-letter {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: var(--bg);
  font-weight: 900;
  font-size: 1rem;
  transform: rotate(-6deg);
}

.logo-name {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-two));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 60%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lang-toggle:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  transform: scale(1.04);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MAIN ─── */

main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap) 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 2.2);
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: var(--bg);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn.primary:hover {
  box-shadow: 0 10px 36px color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.btn.secondary:hover {
  border-color: color-mix(in srgb, var(--accent-three) 50%, var(--line));
  background: color-mix(in srgb, var(--accent-three) 10%, transparent);
}

.btn--wide {
  width: 100%;
}

/* ═══════════════════════════════════════
   HERO — full-bleed diagonal, orbs, marquee
   ═══════════════════════════════════════ */

.hero {
  position: relative;
  margin: 0 -1rem;
  padding: 2.5rem 1rem 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%,
      var(--bg) 45%,
      color-mix(in srgb, var(--accent-three) 12%, var(--bg)) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 10%;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}

.hero-orb--2 {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: -60px;
  background: color-mix(in srgb, var(--accent-two) 45%, transparent);
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-two);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent-two) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-two) 8%, transparent);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-two);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-text {
  margin: 1.25rem 0 1.75rem;
  max-width: 50ch;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.hero-metrics li {
  flex: 1;
  min-width: 120px;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.hero-metrics li:last-child {
  border-right: none;
}

.hero-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-metrics span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hero-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px dashed color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  animation: ring-spin 30s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 220px;
  height: 260px;
  padding: 2rem 1.5rem;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 4px 24px 4px 24px;
  transform: rotate(-4deg);
  box-shadow:
    0 24px 64px color-mix(in srgb, var(--bg) 50%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  backdrop-filter: blur(12px);
}

.hero-card-letter {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, var(--accent), var(--accent-two), var(--accent-three));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card-words {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.hero-card-dots {
  display: flex;
  gap: 6px;
  margin-top: 0.5rem;
}

.hero-card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card-dots span:nth-child(2) {
  background: var(--accent-two);
}

.hero-card-dots span:nth-child(3) {
  background: var(--accent-three);
}

.hero-marquee {
  position: relative;
  margin-top: 1rem;
  padding: 0.85rem 0;
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  overflow: hidden;
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.hero-marquee-track span {
  flex-shrink: 0;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 70%, var(--accent));
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   PROFILE — editorial magazine layout
   ═══════════════════════════════════════ */

.profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: stretch;
  border-left: 4px solid var(--accent-two);
  background: transparent;
}

.profile-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  border-right: 1px dashed var(--line);
}

.profile-big-letter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-two) 20%, transparent);
  user-select: none;
}

.profile-body {
  padding: 2.5rem 2rem;
}

.profile-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-two);
  letter-spacing: 0.1em;
}

.profile-head h2 {
  margin-bottom: 0;
}

.profile-text {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.profile-quote {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  border: none;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.profile-quote::before {
  content: "\201C";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}

.profile-quote p {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
}

.profile-pillars {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.profile-pillars li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.profile-pillars li:last-child {
  border-bottom: none;
}

.profile-pillars li:hover {
  background: color-mix(in srgb, var(--accent-three) 8%, transparent);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-three);
  line-height: 1;
}

.pillar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 14ch;
}

/* ═══════════════════════════════════════
   AREAS — bento mosaic grid
   ═══════════════════════════════════════ */

.areas-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.areas-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.35rem;
}

.section-title {
  margin-bottom: 0.35rem;
}

.areas-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

.areas-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 0.85rem;
}

.area-card {
  position: relative;
  padding: 1.4rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.area-card:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.area-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  opacity: 0.35;
  line-height: 1;
}

.area-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.area-card h3 {
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.area-card p {
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Featured — spans 2 cols, gradient bg */
.area-card--featured {
  grid-column: span 3;
  grid-row: span 2;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--accent) 22%, var(--panel)),
    color-mix(in srgb, var(--accent-two) 12%, var(--panel)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}

.area-card--featured .area-num { color: var(--accent-two); }
.area-card--featured .area-icon { font-size: 2rem; opacity: 0.25; top: 1.5rem; right: 1.5rem; }

/* Compact — small square */
.area-card--compact {
  grid-column: span 2;
  border-radius: 50% 12px 50% 12px / 12px 50% 12px 50%;
  background: var(--panel);
  border: 2px dotted color-mix(in srgb, var(--accent-three) 40%, var(--line));
}

.area-card--compact .area-num { color: var(--accent-three); }

/* Tall — vertical strip */
.area-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  border-radius: 999px 12px 999px 12px;
  background: color-mix(in srgb, var(--accent-three) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent-three) 30%, var(--line));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.area-card--tall .area-num { color: var(--accent-three); }

/* Wide — horizontal banner */
.area-card--wide {
  grid-column: span 3;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.area-card--wide .area-num {
  font-size: 2.5rem;
  color: color-mix(in srgb, var(--accent) 50%, transparent);
  margin-bottom: 0;
  grid-row: span 2;
  align-self: center;
}

.area-card--wide .area-icon { display: none; }

/* Accent — bold color block */
.area-card--accent {
  grid-column: span 2;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-two) 60%, var(--accent)));
  border: none;
  color: var(--bg);
}

.area-card--accent h3,
.area-card--accent p,
.area-card--accent .area-num {
  color: var(--bg);
}

.area-card--accent p {
  opacity: 0.85;
}

.area-card--accent .area-icon {
  color: color-mix(in srgb, var(--bg) 30%, transparent);
  opacity: 1;
}

/* Outline — ghost card */
.area-card--outline {
  grid-column: span 2;
  border-radius: var(--radius);
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--accent-two) 45%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-two) 10%, transparent);
}

.area-card--outline .area-num { color: var(--accent-two); }

/* Dark — inverted */
.area-card--dark {
  grid-column: span 2;
  border-radius: 12px 12px 40px 12px;
  background: color-mix(in srgb, var(--bg) 40%, hsl(167, 25%, 6%));
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--bg) 70%, transparent);
}

.area-card--dark .area-num { color: var(--accent); }
.area-card--dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-three));
}

/* ═══════════════════════════════════════
   PROCESS — horizontal timeline
   ═══════════════════════════════════════ */

.process {
  padding: 2.5rem 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, color-mix(in srgb, var(--accent-three) 10%, transparent), transparent);
}

.process-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
}

.process-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-three);
  letter-spacing: 0.1em;
  padding-top: 0.35rem;
}

.process-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
}

.timeline-rail {
  position: absolute;
  top: 2.6rem;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--accent),
    var(--accent-two),
    var(--accent-three),
    var(--accent));
  border-radius: 3px;
  opacity: 0.5;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.step-node {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}

.step:hover .step-node {
  transform: scale(1.1);
  border-color: var(--accent);
}

.step--1 .step-node { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.step--2 .step-node { border-color: color-mix(in srgb, var(--accent-two) 60%, var(--line)); }
.step--3 .step-node { border-color: color-mix(in srgb, var(--accent-three) 60%, var(--line)); }
.step--4 .step-node { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }

.step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}

.step-body {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
}

.step--1 .step-body { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 20px 4px 20px 4px; }
.step--2 .step-body { background: color-mix(in srgb, var(--accent-two) 10%, transparent); border-radius: 4px 20px 4px 20px; }
.step--3 .step-body { background: color-mix(in srgb, var(--accent-three) 10%, transparent); border-radius: 20px 20px 4px 4px; }
.step--4 .step-body { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 4px 4px 20px 20px; }

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.86rem;
}

/* ═══════════════════════════════════════
   CONTACT — split asymmetric panels
   ═══════════════════════════════════════ */

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--bg) 50%, transparent);
}

.contact-panel--info {
  padding: 2.5rem 2rem;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 20%, hsl(167, 28%, 11%)),
      hsl(167, 30%, 8%));
  position: relative;
  overflow: hidden;
}

.contact-panel--info::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  filter: blur(40px);
  pointer-events: none;
}

.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-two);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.contact-panel--info h2 {
  margin-bottom: 0.5rem;
}

.contact-lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-text {
  font-size: 0.92rem;
  margin-bottom: 2rem;
  max-width: 36ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-chip {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}

.contact-chip:hover {
  transform: translateX(4px);
}

.contact-chip--phone {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-left: 3px solid var(--accent);
}

.contact-chip--email {
  background: color-mix(in srgb, var(--accent-two) 12%, transparent);
  border-left: 3px solid var(--accent-two);
}

.contact-chip--address {
  background: color-mix(in srgb, var(--accent-three) 12%, transparent);
  border-left: 3px solid var(--accent-three);
}

.contact-details dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-details a:hover {
  color: var(--accent-two);
}

.contact-panel--form {
  padding: 2.5rem 2rem;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* ═══════════════════════════════════════
   FOOTER — three-column band
   ═══════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, hsl(167, 25%, 6%));
  padding: 2rem 1rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  justify-self: start;
}

.footer-logo .logo-letter {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  transform: none;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  justify-self: center;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  justify-self: end;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 1.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: color-mix(in srgb, var(--panel) 95%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav a::after {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-card {
    width: 200px;
    height: 240px;
  }

  .profile {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 4px solid var(--accent-two);
  }

  .profile-accent {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px dashed var(--line);
  }

  .profile-big-letter {
    font-size: 4rem;
  }

  .profile-pillars {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .profile-pillars li {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 1.25rem 1rem;
  }

  .profile-pillars li:last-child {
    border-right: none;
  }

  .areas-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-card--featured,
  .area-card--wide,
  .area-card--accent,
  .area-card--outline,
  .area-card--dark,
  .area-card--compact {
    grid-column: span 2;
    grid-row: span 1;
  }

  .area-card--tall {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: var(--radius-sm);
  }

  .area-card--wide {
    display: block;
  }

  .area-card--wide .area-num {
    font-size: 0.7rem;
    grid-row: auto;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 0;
  }

  .timeline-rail {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-panel--form {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo,
  .footer-copy {
    justify-self: center;
    text-align: center;
  }

  .footer-nav {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .logo-name {
    font-size: 0.72rem;
  }

  .hero {
    clip-path: none;
    border-radius: var(--radius);
    margin: 0;
    padding: 1.5rem 1rem 0;
  }

  .hero-metrics li {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-metrics li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .profile-pillars {
    flex-direction: column;
  }

  .profile-pillars li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .areas-bento {
    grid-template-columns: 1fr;
  }

  .area-card--featured,
  .area-card--wide,
  .area-card--accent,
  .area-card--outline,
  .area-card--dark,
  .area-card--compact,
  .area-card--tall {
    grid-column: span 1;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .step-node {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
