:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --ink: #1b1f3b;
  --ink-fixed: #1b1f3b;
  --muted: #6b7086;
  --muted-soft: #9a9fb4;
  --line: #ececf3;

  --coral: #e8473c;
  --coral-dark: #cf3428;
  --coral-soft: #fdeceb;
  --indigo: #4b3bf0;

  --blue: #2f6feb;
  --amber: #f2a93b;
  --green: #2fb872;

  --font-display: "Rubik", "Plus Jakarta Sans", sans-serif;
  --font-secondary: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;

  --shadow-s: 0 12px 30px -14px rgba(27, 31, 59, 0.14);
  --shadow-m: 0 24px 50px -18px rgba(27, 31, 59, 0.2);
}

:root[data-theme="dark"] {
  --bg: #0f1117;
  --bg-soft: #151822;
  --surface: #1a1e28;
  --header-bg: rgba(15, 17, 23, 0.92);
  --ink: #eef0f7;
  --muted: #a7acc4;
  --muted-soft: #767c99;
  --line: #2a2f3d;
  --coral-soft: rgba(232, 71, 60, 0.14);
  --shadow-s: 0 12px 30px -14px rgba(0, 0, 0, 0.45);
  --shadow-m: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}

body {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.card,
.stack-card,
.founder-card,
.contact-form-card,
.process-step,
.value-item,
.flyer-frame {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Reset ---------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p {
  margin: 0 0 1em;
  color: var(--muted);
}
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Layout helpers -------------------------------------------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-soft {
  background: var(--bg-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 1em;
  display: block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-head p {
  font-size: 1.02rem;
}

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(232, 71, 60, 0.55);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Header / Nav ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
/* Only the home page has a dark hero directly under the header, so only
   there does the header need light text before it picks up a solid
   background. Every other page's top section is already light, so dark
   nav text reads fine over it even while the header itself is transparent.
body[data-page="home"] .site-header:not(.is-scrolled) .nav-links a,
body[data-page="home"] .site-header:not(.is-scrolled) .brand span,
body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle,
body[data-page="home"] .site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}
body[data-page="home"] .site-header:not(.is-scrolled) .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle,
body[data-page="home"] .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}*/
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  padding: 2px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(27, 31, 59, 0.06);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--muted-soft);
  letter-spacing: 0.03em;
  text-transform: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--coral);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-s);
  padding: 0.4em 0.6em;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
.theme-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-s);
    padding: 1.5rem var(--gutter);
    gap: 1.1rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: inline-block;
  }
}

/* Hero ---------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(
    135deg,
    rgba(75, 59, 240, 0.04) 0%,
    rgba(232, 71, 60, 0.04) 100%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  margin-bottom: 0.5em;
  max-width: 11ch;
}
.hero-lede {
  font-size: 1.05rem;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.hero-lede .brand-word {
  color: var(--indigo);
  font-weight: 600;
}
.hero-lede .brand-word.alt {
  color: var(--coral);
}

/* Dot-grid decorated device panel (signature hero visual) --------- */
.hero-visual {
  position: relative;
  padding: 20px;
}
.dot-grid {
  position: absolute;
  width: 150px;
  height: 96px;
  background-image: radial-gradient(var(--indigo) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.55;
  z-index: 0;
}
.dot-grid.top {
  top: -14px;
  left: -14px;
}
.dot-grid.bottom {
  bottom: -14px;
  right: -14px;
}
.device-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #171c3d 0%, #10142a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-l);
  box-shadow: 0 28px 60px -24px rgba(27, 31, 59, 0.45);
  overflow: hidden;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.9em 1.1em;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a517e;
}
.device-body {
  padding: 1.4rem 1.4rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.device-lines {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.device-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f3670, #3f4b8d);
}
.device-line.short {
  width: 45%;
}
.device-line.mid {
  width: 70%;
}
.device-line.accent {
  background: linear-gradient(90deg, var(--coral), #ff8a76);
  width: 35%;
}
.hero-logo-shell {
  align-self: center;
  width: min(190px, 70%);
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-logo-shell img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}
.device-badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.device-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.4em 0.9em;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .hero-visual {
    margin-bottom: 1.2rem;
  }
}

/* Value strip --------------------------------------------------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b1f3b;
  margin: 1rem 0 0.5rem 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.value-item p {
  font-size: 0.9rem;
  color: #6b7086;
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
}

.icon-blob-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.icon-blob-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 70px;
  height: 55px;
  background: #fdeceb;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
}

.icon-svg {
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 1;
  stroke: #ef1014;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .value-strip {
    grid-template-columns: 1fr;
  }
}

/* About split — scattered stat cards + checklist ------------------- */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.scatter {
  position: relative;
  height: 420px;
}
.stat-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 1rem 1.1rem;
}
.stat-card .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.stat-card .l {
  height: 6px;
  width: 60%;
  background: var(--line);
  border-radius: 3px;
  margin-top: 0.5rem;
}
.sc-1 {
  top: 0;
  left: 5%;
  width: 130px;
}
.sc-1 .n {
  color: var(--green);
}
.sc-2 {
  top: 6%;
  left: 46%;
  width: 130px;
  height: 92px;
  padding-bottom: 0.6rem;
}
.sc-2 .bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-top: 0.4rem;
}
.sc-2 .bars span {
  flex: 1;
  background: var(--coral-soft);
  border-radius: 3px 3px 0 0;
}
.sc-2 .bars span.hi {
  background: var(--coral);
}
.sc-3 {
  top: 33%;
  left: 0;
  width: 150px;
}
.sc-3 .gauge {
  width: 100%;
  height: 60px;
  border-radius: 60px 60px 0 0;
  background: conic-gradient(
    var(--blue) 0deg 220deg,
    var(--line) 220deg 360deg
  );
  -webkit-mask: radial-gradient(
    circle at 50% 100%,
    transparent 38px,
    #000 39px
  );
  mask: radial-gradient(circle at 50% 100%, transparent 38px, #000 39px);
}
.sc-4 {
  top: 30%;
  left: 54%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.sc-4 .swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--indigo);
}
.sc-5 {
  top: 55%;
  left: 30%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-5 .ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    var(--amber) 0deg 274deg,
    var(--line) 274deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-5 .ring span {
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.sc-6 {
  bottom: 0;
  left: 12%;
  width: 110px;
}
.sc-6 .n {
  color: var(--coral);
}
.sc-7 {
  bottom: 2%;
  right: 4%;
  width: 128px;
}
.sc-7 .n {
  color: var(--indigo);
}
@media (max-width: 500px) {
  .scatter {
    transform: scale(0.82);
    transform-origin: top left;
    height: 360px;
  }
}

.checklist {
  margin-top: 1.6rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0;
  font-weight: 500;
  color: var(--ink);
}
.checklist li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Card grids ------------------------------------------------------ */
.grid {
  display: grid;
  gap: 1.3rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.solutions-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .solutions-split {
    grid-template-columns: 1fr;
  }
}
.bullet-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.9em;
  font-size: 0.96rem;
  color: var(--muted);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 2px;
}
.card-grid-offset .card:nth-child(2) {
  margin-top: 1.6rem;
}
.card-grid-offset .card:nth-child(4) {
  margin-top: -1.6rem;
}
@media (max-width: 900px) {
  .card-grid-offset .card:nth-child(2),
  .card-grid-offset .card:nth-child(4) {
    margin-top: 0;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.7rem;
  box-shadow: var(--shadow-s);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.card .icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1em;
}
.card .icon-chip svg {
  width: 22px;
  height: 22px;
}
.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.8em;
}
.card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5em;
}
.card p {
  font-size: 0.92rem;
  margin: 0;
}

/* Centered feature trio (dashboards / reports / protection) --------- */
.feature-trio {
  text-align: center;
}
.feature-trio .icon-chip {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3em;
}
.feature-trio .icon-chip svg {
  width: 28px;
  height: 28px;
}
.feature-trio h3 {
  font-size: 1.12rem;
}
.feature-trio p {
  font-size: 0.93rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* Stack / skills list --------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.stack-card h4 {
  font-size: 1rem;
  color: var(--coral);
  margin-bottom: 0.6em;
}
.stack-card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.25em 0;
  border-bottom: 1px dashed var(--line);
}
.stack-card ul li:last-child {
  border-bottom: none;
}

/* Process ----------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
  }
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-s);
}
.process-step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--coral);
}
.process-step h4 {
  font-size: 1rem;
  margin: 0.5em 0 0.4em;
}
.process-step p {
  font-size: 0.86rem;
}

/* CTA band ------------------------------------------------------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--ink-fixed);
  border-radius: var(--radius-l);
  padding: 2.4rem 2.6rem;
  color: #fff;
}
.cta-band h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}
.cta-band p {
  margin: 0;
  color: #b6b9d6;
}
.cta-band .btn-primary {
  box-shadow: none;
}

/* Footer — white, like the reference ------------------------------- */
.site-footer {
  background: var(--surface);
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.footer-grid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 1.1em;
}
.footer-grid li {
  margin-bottom: 0.65em;
  font-size: 0.9rem;
}
.footer-grid a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-grid a:hover {
  color: var(--coral);
}
.footer-grid p {
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted-soft);
}
.socials {
  display: flex;
  gap: 0.8rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.socials a:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* Page header (About / Contact) ------------------------------------ */
.page-header {
  padding: clamp(2.8rem, 6vw, 4.2rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.page-header p {
  max-width: 60ch;
  font-size: 1.02rem;
}

/* About page principles ---------------------------------------------- */
.principle {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.principle:last-child {
  border-bottom: none;
}
.principle .idx {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 2.2em;
}
.principle h4 {
  font-size: 1rem;
  margin-bottom: 0.3em;
}
.principle p {
  font-size: 0.9rem;
  margin: 0;
}

.founder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  padding: 2rem;
}
.founder-card .role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.founder-card h3 {
  margin: 0.6em 0 0.4em;
}
.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1rem;
}
.founder-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35em 0.9em;
  color: var(--muted);
  background: var(--bg-soft);
}

/* Contact page -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child {
  border-bottom: none;
}
.contact-detail .k {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 6.5em;
  flex-shrink: 0;
  padding-top: 0.2em;
}
.contact-detail a {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-detail span.val {
  font-size: 0.95rem;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: 2rem;
}
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  margin-bottom: 1.2rem;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  padding: 0.8em 0.95em;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
  background: var(--surface);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85em 1em;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status.ok {
  border-color: #a9e2c2;
  background: #eefdf3;
  color: #1a8a4c;
}
.form-status.err {
  border-color: #f3aba3;
  background: #fef2f1;
  color: #c0392b;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq-item h4 {
  font-size: 0.98rem;
  margin-bottom: 0.4em;
}
.faq-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Scroll blur-reveal -------------------------------------------------- */
.reveal {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(16px);
  transition:
    filter 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: filter, opacity, transform;
}
.reveal.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Flyer gallery ------------------------------------------------------ */
.flyer-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .flyer-gallery {
    grid-template-columns: 1fr;
  }
}
.flyer-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  border: 1px solid var(--line);
}
.flyer-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Preloader ----------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.35s ease;
}
#preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--coral);
  animation: preloader-spin 0.7s linear infinite;
}
@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-spinner {
    animation: none;
  }
}
