/* ============================================================================
   IEEE RAS Sup'Com — v2
   ----------------------------------------------------------------------------
   A separate stylesheet, not a rewrite of style.css. The other pages
   (about, competitions, activities, community and the fourteen under activ/)
   still load style.css and are untouched; replacing it would have broken all
   of them at once. This file is loaded by index.html alone.

   The palette is not invented. It is read off img/rascolor.png, the chapter's
   own logo: 83.7% of its opaque pixels are #471e64 and 14.8% are #c71e1c.
   Those two are the brand. Both are too dark to carry text on a black ground,
   so each has a lifted sibling, and the measured figures are in the comment
   beside them.

   No Bootstrap. The old pages keep it; this page does not need 7 MB of it.
   ========================================================================== */

:root {
  /* ground */
  --void:        #08060d;
  --deep:        #0d0a16;
  --surface:     #141020;
  --surface-2:   #1b1529;
  --line:        rgba(166, 99, 232, 0.14);
  --line-strong: rgba(166, 99, 232, 0.32);

  /* brand, straight off the logo */
  --violet:      #471e64;
  --red:         #c71e1c;

  /* Lifted so they can carry type on --void. Measured, not estimated:
     violet-lit 5.35:1, red-lit 6.25:1 against #08060d.
     The brand pair itself manages 1.57:1 and 3.48:1, which is why neither
     is used for text — only for fills, rules and glows. */
  --violet-lit:  #a663e8;
  --red-lit:     #ff5146;

  --glow:        rgba(166, 99, 232, 0.55);
  --glow-red:    rgba(199, 30, 28, 0.55);

  /* Type, measured on --void: ink 17.68:1, soft 9.10:1, mute 5.45:1.
     --ink-mute is not the obvious #80738f. That one clears 4.5 on --void
     but drops to 4.24 on a panel and 4.02 on a hovered one, and the mono
     labels it carries sit on panels. Same hue (268°) and saturation (20%),
     lifted until the worst case — a hovered panel — reaches 4.79:1. */
  --ink:         #f3eefa;
  --ink-soft:    #b7a8cc;
  --ink-mute:    #8e7f9e;

  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  --shell: min(1260px, 92vw);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.shell { width: var(--shell); margin-inline: auto; }
/* scroll-margin, not padding: the nav is fixed, so an anchored section would
   otherwise land underneath it. */
.sec { padding: 110px 0; position: relative; scroll-margin-top: 74px; }

/* A technical label, the way a drawing numbers its parts. The bracket is
   drawn rather than typed so it never gets copied into a search box. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--violet-lit);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--red-lit), var(--violet-lit));
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); text-transform: uppercase; }
.sec > .shell > h2 { margin: 18px 0 14px; }
.lede { color: var(--ink-soft); font-size: 1.04rem; max-width: 62ch; }

.hot { color: var(--red-lit); }
.cool { color: var(--violet-lit); }

/* The blueprint ground. Two hairline grids at different pitches, the way a
   drawing has a fine grid inside a coarse one. Fixed so the page scrolls
   over it rather than dragging it along. */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(166, 99, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 99, 232, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(166, 99, 232, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 99, 232, 0.028) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 16px 0;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 6, 13, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line); padding: 10px 0;
}
.nav-in { display: flex; align-items: center; gap: 22px; }
.nav-logo img { height: 42px; width: auto; transition: height 0.4s; }
.nav.is-stuck .nav-logo img { height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 9px 15px; border-radius: 8px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(166, 99, 232, 0.10); }
.nav-links a.is-on { color: var(--ink); }
.nav-links a.is-on::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: linear-gradient(90deg, var(--red-lit), var(--violet-lit));
}
.nav-burger { display: none; margin-left: auto; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 90px; position: relative; overflow: hidden;
}
.hero-in {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 10.5vw, 8.4rem);
  line-height: 0.88; text-transform: uppercase; letter-spacing: -0.03em;
  margin: 22px 0 26px;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; transform: translateY(104%); animation: liftIn 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.11s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: 0.22s; }
@keyframes liftIn { to { transform: none; } }

.hero p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* The button is a plate with a cut corner, like a machine panel. */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-3px); border-color: var(--violet-lit); background: rgba(166, 99, 232, 0.10); }
.btn.solid {
  background: linear-gradient(104deg, var(--violet), #6a2a94);
  border-color: transparent; color: #fff;
  box-shadow: 0 14px 40px -14px var(--glow);
}
.btn.solid:hover { background: linear-gradient(104deg, #58246f, #7c33ab); box-shadow: 0 20px 52px -14px var(--glow); }
.btn.red { border-color: rgba(255, 81, 70, 0.4); color: var(--red-lit); }
.btn.red:hover { background: rgba(199, 30, 28, 0.14); border-color: var(--red-lit); }
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

/* telemetry strip: the readout a machine prints about itself */
.telem {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 46px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
}
.telem b { color: var(--ink-soft); font-weight: 400; }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #35d07f; margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

/* ---------- the arm ---------- */
.rig { position: relative; }
.rig svg { width: 100%; height: auto; overflow: visible; }

.rig .strut { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.rig .envel { stroke: rgba(166, 99, 232, 0.26); stroke-width: 1; fill: none; stroke-dasharray: 3 7; }
.rig .link  { stroke: #cbb8e4; stroke-width: 11; stroke-linecap: round; fill: none; }
.rig .link-in { stroke: var(--violet); stroke-width: 5; stroke-linecap: round; fill: none; }
.rig .joint { fill: var(--void); stroke: var(--violet-lit); stroke-width: 2.5; }
.rig .joint-core { fill: var(--red-lit); }
.rig .plate { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.rig .tick { stroke: rgba(166, 99, 232, 0.4); stroke-width: 1; }
.rig .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; fill: var(--ink-mute); }

/* Each joint rotates about its own pivot. The groups nest, so the forearm
   carries the wrist with it exactly as a real arm does - no coordinates are
   recomputed anywhere. */
.j1 { transform-origin: 170px 432px; animation: j1 7s ease-in-out infinite; }
.j2 { transform-origin: 170px 268px; animation: j2 7s ease-in-out infinite; }
.j3 { transform-origin: 322px 196px; animation: j3 7s ease-in-out infinite; }
/* the fingers pivot at the end of the wrist stub, not at the wrist joint —
   pivoting them at J3 would read as the wrist bending, not a grip closing */
.grip-a { transform-origin: 356px 180px; animation: gripA 7s ease-in-out infinite; }
.grip-b { transform-origin: 356px 180px; animation: gripB 7s ease-in-out infinite; }

@keyframes j1 { 0%,100% { rotate: -14deg; } 42% { rotate: 9deg; } 62% { rotate: 9deg; } }
@keyframes j2 { 0%,100% { rotate: 20deg; } 42% { rotate: -13deg; } 62% { rotate: -13deg; } }
@keyframes j3 { 0%,100% { rotate: -8deg; } 42% { rotate: 16deg; } 62% { rotate: 16deg; } }
@keyframes gripA { 0%,34% { rotate: 0deg; } 46%,58% { rotate: -13deg; } 72%,100% { rotate: 0deg; } }
@keyframes gripB { 0%,34% { rotate: 0deg; } 46%,58% { rotate: 13deg; } 72%,100% { rotate: 0deg; } }

/* The target the arm works toward, and the sweep that finds it.
   There is deliberately no payload travelling with the gripper: making a
   carried object track a three-joint chain means recomputing the composed
   transform, and a payload that drifts a few pixels off the fingers reads
   as broken. A pulsing target costs nothing and cannot be wrong. */
.target { animation: target 7s ease-in-out infinite; transform-origin: 452px 372px; }
@keyframes target {
  0%, 30%  { opacity: 0.35; scale: 1; }
  44%, 60% { opacity: 1; scale: 1.14; }
  74%,100% { opacity: 0.35; scale: 1; }
}
.scan { animation: scan 7s linear infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 40% { opacity: 1; } 50%, 100% { transform: translateY(330px); opacity: 0; } }

/* ============================================================
   INNER PAGE HEAD
   The homepage hero is a full screen with an animated arm. An inner page
   does not get one: it gets a band deep enough to clear the fixed nav and
   carry one large title, so the content starts near the top of the fold
   instead of a screen below it.
   ============================================================ */
.page-head { padding: 148px 0 54px; position: relative; border-bottom: 1px solid var(--line); }
.page-head h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.03em; margin: 18px 0 0;
}
.page-head .lede { margin-top: 20px; }
.crumb { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 20px; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--violet-lit); }

/* ============================================================
   GALLERY
   One grid for every set of photographs on the site: the competition
   blocks, the activity pages and the community page. auto-fill rather
   than a fixed column count, because the sets run from two photographs
   to fourteen and a fixed grid would leave a hole in half of them.
   ============================================================ */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.shot {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.5s; filter: saturate(0.92); }
.shot:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.shot:hover img { transform: scale(1.05); filter: none; }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(8,6,13,0.42));
  opacity: 0; transition: opacity 0.4s;
}
.shot:hover::after { opacity: 1; }

/* Sets of one and two need their own rule. auto-fill lays out tracks whether
   or not there are items to fill them, so a single photograph sits in a
   232px box at the far left of a 1086px row and reads as an afterthought.
   One photograph is the feature image for that event, so it is given real
   size; two read as a pair rather than as two cards adrift on a wide row. */
.gal.one { grid-template-columns: minmax(0, 720px); }
.gal.one .shot { aspect-ratio: 3/2; }
.gal.pair { grid-template-columns: repeat(2, 1fr); }
.gal.pair .shot { aspect-ratio: 16/10; }

/* ============================================================
   EVENT BLOCK — one competition, with its own photographs
   ============================================================ */
.event { padding: 46px 0; border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; padding-top: 10px; }
.event-head { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; margin-bottom: 10px; }
.event h2 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
.event .when { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-lit); }
.event .lede { margin-bottom: 26px; }
.event .lede + .lede { margin-top: -14px; }

/* ============================================================
   MARQUEE
   ============================================================ */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 15px 0; overflow: hidden; background: rgba(13, 10, 22, 0.6);
}
.strip-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.strip-track span {
  font-family: var(--display); font-size: 0.98rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  padding: 0 28px; white-space: nowrap;
}
.strip-track span::after { content: "◆"; margin-left: 28px; color: var(--red-lit); font-size: 0.6em; vertical-align: 3px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--void); padding: 34px 26px; }
.stat .n {
  font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1; color: var(--ink); letter-spacing: -0.03em;
}
.stat .n em { font-style: normal; color: var(--red-lit); }
.stat .l {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 11px;
}

/* ============================================================
   PANELS — the shared card. Corner ticks instead of a full border,
   the way a technical drawing marks a crop.
   ============================================================ */
.panel {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); padding: 28px;
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  border: 2px solid var(--red-lit); opacity: 0; transition: opacity 0.4s;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-5px); }
.panel:hover::before, .panel:hover::after { opacity: 1; }

/* ============================================================
   MISSION
   ============================================================ */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.mission-copy p + p { margin-top: 16px; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 86px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.fact b { font-family: var(--display); font-size: 1.5rem; color: var(--violet-lit); font-weight: 700; }
.fact span { color: var(--ink-soft); font-size: 0.94rem; }

/* ============================================================
   COMPETITIONS
   ============================================================ */
.comp-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border: 1px solid var(--line-strong); margin-bottom: 26px; }
.comp-hero-fig { position: relative; overflow: hidden; min-height: 300px; background: var(--surface-2); }
.comp-hero-fig img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: transform 1.2s var(--ease); }
.comp-hero:hover .comp-hero-fig img { transform: scale(1.05); }
.comp-hero-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.rank {
  display: inline-flex; align-items: baseline; gap: 9px; align-self: flex-start;
  padding: 8px 16px; margin-bottom: 18px;
  background: linear-gradient(100deg, var(--red), #e0402c); color: #fff;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.comp-hero-body h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; margin-bottom: 10px; }
.comp-hero-body p { color: var(--ink-soft); font-size: 0.95rem; }
.comp-when { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--violet-lit); text-transform: uppercase; margin-bottom: 14px; }

.comp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.comp { padding: 24px; }
.comp h4 { font-size: 1.06rem; text-transform: uppercase; line-height: 1.2; margin-bottom: 8px; }
.comp .when { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; }

/* ============================================================
   ACTIVITIES
   ============================================================ */
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
a.act { display: flex; flex-direction: column; gap: 9px; padding: 24px; }
a.act .yr { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--red-lit); text-transform: uppercase; }
a.act h4 { font-size: 1.04rem; line-height: 1.22; text-transform: uppercase; }
a.act .go { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; transition: color 0.3s; }
a.act:hover .go { color: var(--violet-lit); }

/* ============================================================
   BOARD
   ============================================================ */
/* Three across, because the board is six. On four columns the second row
   would carry two cards and a gap the width of two more. */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mem { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 3/4; transition: border-color 0.4s, transform 0.5s var(--ease); }
.mem img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(0.55) contrast(1.05); transition: filter 0.5s, transform 1s var(--ease); }
.mem:hover { border-color: var(--line-strong); transform: translateY(-5px); }
.mem:hover img { filter: none; transform: scale(1.04); }
.mem::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(8,6,13,0.42) 58%, rgba(8,6,13,0.88) 78%, rgba(8,6,13,0.97));
}
.mem-body { position: absolute; left: 18px; right: 14px; bottom: 15px; z-index: 2; }
.mem-role { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-lit); }
.mem-name { font-family: var(--display); font-size: 1.02rem; font-weight: 700; line-height: 1.2; margin-top: 5px; }

/* Profile links. Always visible rather than revealed on hover: a hover-only
   control does not exist on a phone, and half the people looking at a board
   are on one. */
.mem-links { display: flex; gap: 8px; margin-top: 11px; }
.mem-links a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  background: rgba(8, 6, 13, 0.55);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.mem-links a:hover { color: #fff; border-color: transparent; background: var(--violet); transform: translateY(-2px); }
.mem-links svg { display: block; }

/* ============================================================
   CONTACT
   ============================================================ */
/* One frame, two halves, no gap between them. The map used to be
   grayscale-inverted into the dark theme, where it read as a smudge and
   told nobody anything. It is in colour now and it is the larger half;
   the details sit on the dark panel beside it, and the hard join between
   the two is the design rather than something to soften. */
.find {
  display: grid; grid-template-columns: 0.84fr 1.16fr;
  border: 1px solid var(--line-strong); background: var(--surface);
  overflow: hidden;
}
.find-info { padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.find-map { position: relative; min-height: 440px; border-left: 1px solid var(--line-strong); }
.find-map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

.rows { display: grid; gap: 2px; width: 100%; }
.row-i { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-i:last-child { border-bottom: 0; }
.row-i .ic { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--violet-lit); }
.row-i b { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 400; }
.row-i em { font-style: normal; font-size: 0.98rem; color: var(--ink); line-height: 1.45; }
.row-i a:hover { color: var(--violet-lit); }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 1.05rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.socials a:hover { color: #fff; border-color: transparent; background: var(--violet); transform: translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.foot p { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--ink-mute); }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--violet-lit); }

/* ============================================================
   REVEAL
   ============================================================ */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .rig { max-width: 520px; margin-inline: auto; opacity: 0.9; }
  .mission { grid-template-columns: 1fr; gap: 34px; }
  .comp-hero { grid-template-columns: 1fr; }
  .comp-hero-fig { min-height: 230px; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .find { grid-template-columns: 1fr; }
  .find-map { min-height: 340px; border-left: 0; border-top: 1px solid var(--line-strong); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sec { padding: 76px 0; }
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 10px 5vw 20px;
    background: rgba(8, 6, 13, 0.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 0.78rem; }
  .nav-links a.is-on::after { left: 4px; right: auto; width: 26px; }
  .hero { padding: 110px 0 70px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .comp-hero-body { padding: 26px; }
  .acts { grid-template-columns: 1fr; }
  .find-info { padding: 26px 22px; }
  .page-head { padding: 118px 0 40px; }
  /* 30px is a fine mouse target and a poor thumb one. */
  .mem-links { gap: 10px; }
  .mem-links a { width: 40px; height: 40px; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal.pair { grid-template-columns: 1fr; }
  .event { padding: 34px 0; }
}

@media (max-width: 420px) {
  .board { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
}

/* ============================================================
   MOTION OFF
   The arm is the page's one real idea, so it does not simply stop in a
   half-folded pose: it is parked at the rest angles the keyframes start
   from, which is a posture a drawing would use.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
  .j1 { rotate: -14deg; } .j2 { rotate: 20deg; } .j3 { rotate: -8deg; }
  .scan { display: none; }
  .target { opacity: 0.6; }
  .strip-track { animation: none; }
}
