/* Shared styles for the inner pages (About, Portfolio). Tokens, nav, menu and footer mirror index.html. */
:root {
  --bg: #ffffff;
  --ink: #0e0e12;
  --ink-2: #4a4a55;
  --muted: #6e6e7a;
  --line: #ececf0;
  --pill: #f4f4f6;
  --warm: #fdf6f0;
  --brand-grad: linear-gradient(160deg, #f79634 0%, #f3752b 50%, #f05023 100%); /* from the Spyronix logo */
  --brand-1: #f79634;
  --brand-3: #f05023;
  --brand-ink: #c93d14;
  --gutter: clamp(16px, 3vw, 44px);
  --max: 1320px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-1: .16s;
  --dur-2: .28s;
  --dur-3: .45s;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.serif { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -0.02em; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 3px; background: var(--brand-grad);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter) 0;
}
.logo { display: inline-flex; align-items: center; justify-self: start; }
.logo img { display: block; height: 40px; width: auto; transition: rotate var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out); }
.logo:hover img { rotate: -8deg; scale: 1.06; }
.links {
  position: relative;
  display: flex; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid var(--line);
}
.links a {
  position: relative; z-index: 1;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { font-weight: 600; }
.links__pill {
  position: absolute; top: 6px; left: 0;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px -6px rgba(0,0,0,.12);
  pointer-events: none;
}
.nav__end { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.btn-contact {
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 24px;
  border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600;
  transition: translate var(--dur-2) var(--ease-out), background-color var(--dur-2), scale var(--dur-1);
}
.btn-contact:hover { background: #26262d; translate: 0 -1px; }
.btn-contact:active { scale: .97; }

/* Mobile / tablet menu */
.menu-btn {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--pill);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-2), scale var(--dur-1);
}
.menu-btn:hover { background: #ebebef; }
.menu-btn:active { scale: .95; }
.menu-btn i {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; margin: -1px 0 0 -9px;
  border-radius: 2px; background: currentColor;
  transition: translate var(--dur-3) var(--ease-out), rotate var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.menu-btn i:nth-child(1) { translate: 0 -6px; }
.menu-btn i:nth-child(3) { translate: 0 6px; }
.menu-open .menu-btn i:nth-child(1) { translate: 0 0; rotate: 45deg; }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { translate: 0 0; rotate: -45deg; }
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(90% 50% at 100% 0%, rgba(247,150,52,.14) 0%, rgba(247,150,52,0) 60%), #fff;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0 round 0 0 28px 28px);
  transition: clip-path .55s var(--ease-out), opacity .3s, visibility 0s .55s;
}
.menu-open .mmenu {
  visibility: visible; opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path .55s var(--ease-out), opacity .2s, visibility 0s;
}
.mmenu__top { display: flex; align-items: center; justify-content: space-between; }
.mmenu__top .menu-btn { display: inline-block; }
.mmenu__links { display: flex; flex-direction: column; margin: auto 0; padding: 40px 0 32px; }
.mmenu__links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 9vw, 56px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0; translate: 0 18px;
  transition: opacity .35s, translate .5s var(--ease-out), color var(--dur-2);
}
.mmenu__links a span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); min-width: 22px; }
.mmenu__links a:hover, .mmenu__links a[aria-current="page"] {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.menu-open .mmenu__links a { opacity: 1; translate: 0 0; }
.menu-open .mmenu__links a:nth-child(1) { transition-delay: .12s; }
.menu-open .mmenu__links a:nth-child(2) { transition-delay: .17s; }
.menu-open .mmenu__links a:nth-child(3) { transition-delay: .22s; }
.menu-open .mmenu__links a:nth-child(4) { transition-delay: .27s; }
.menu-open .mmenu__links a:nth-child(5) { transition-delay: .32s; }
.mmenu__foot { display: grid; gap: 16px; }
.mmenu__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; border-radius: 14px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 600;
}
.mmenu__cta i {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; margin-left: 10px;
  border-radius: 50%; background: var(--brand-grad); font-style: normal;
}
.mmenu__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.mmenu__contact a:hover { color: var(--ink); }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__end { gap: 10px; }
  .menu-btn { display: inline-block; }
}
@media (min-width: 901px) { .mmenu { display: none; } }
@media (max-width: 760px) {
  .btn-contact { height: 44px; padding: 0 18px; }
  .menu-btn { width: 44px; height: 44px; }
}

/* ---------- Page hero ---------- */
.phero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(247,150,52,.16) 0%, rgba(247,150,52,0) 70%),
    radial-gradient(70% 45% at 50% 0%, #f6f6f9 0%, rgba(255,255,255,0) 70%),
    var(--bg);
}
.phero__body { padding: clamp(56px, 10vh, 120px) 0 clamp(48px, 8vh, 96px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); box-shadow: 0 0 0 4px rgba(243,117,43,.15); }
.phero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(44px, 7.4vw, 118px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.phero h1 .serif { font-weight: 300; }
.phero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(28px, 4vw, 48px);
}
.phero__lede { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 10px 0 26px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 600;
  transition: translate var(--dur-2) var(--ease-out), background-color var(--dur-2), box-shadow var(--dur-2), scale var(--dur-1);
}
.btn:hover { translate: 0 -2px; background: #1d1d24; box-shadow: 0 16px 34px -16px rgba(240,80,35,.55); }
.btn:active { scale: .97; }
.btn__arrow {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  transition: rotate var(--dur-3) var(--ease-out);
}
.btn:hover .btn__arrow { rotate: 45deg; }
.btn__arrow svg { width: 16px; height: 16px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 0 26px; }
.btn--ghost:hover { background: #fff; border-color: #d8d8de; }

/* ---------- Section heading ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec__kicker { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.sec__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(34px, 4.6vw, 72px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec__lede { margin: 20px 0 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.cta-band__card {
  position: relative; overflow: hidden;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 88px);
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(247,150,52,.5) 0%, rgba(240,80,35,0) 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(240,80,35,.28) 0%, rgba(240,80,35,0) 60%),
    #0e0e12;
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 32px;
}
.cta-band__card h2 { margin: 0; font-size: clamp(34px, 5vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.cta-band__card p { margin: 18px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.72); }
.cta-band__card .btn { background: #fff; color: var(--ink); }
.cta-band__card .btn:hover { background: #fff; }
@media (max-width: 760px) { .cta-band__card { grid-template-columns: 1fr; border-radius: 24px; } }

/* ================= Footer (same as home) ================= */
.site-footer {
  position: relative; overflow: hidden;
  color: #4a4a52;
  background:
    radial-gradient(55% 45% at 88% 8%, rgba(243, 117, 43, .10), transparent 70%),
    radial-gradient(50% 40% at 6% 92%, rgba(247, 150, 52, .08), transparent 70%),
    linear-gradient(180deg, #fdf9f5 0%, #ffffff 40%, #fdf9f5 100%);
  padding: clamp(64px, 7vw, 110px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.footer__inner { max-width: 1400px; margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.footer__logo img { width: 44px; height: auto; transition: rotate var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out); }
.footer__logo:hover img { rotate: -8deg; scale: 1.06; }
.footer__tag { margin: 18px 0 0; max-width: 30ch; font-size: 17px; line-height: 1.5; }
.footer__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; background: var(--brand-grad); color: var(--ink);
  font-size: 15px; font-weight: 600;
  transition: translate var(--dur-2) var(--ease-out), box-shadow var(--dur-2), scale var(--dur-1);
}
.footer__cta:hover { translate: 0 -2px; box-shadow: 0 14px 30px -14px rgba(240, 80, 35, .6); }
.footer__cta:active { scale: .97; }
.footer__cta svg { width: 16px; height: 16px; transition: translate var(--dur-2) var(--ease-out); }
.footer__cta:hover svg { translate: 2px -2px; }
.footer__col h3 { margin: 6px 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a8a93; }
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.footer__col a, .footer__col address { color: #1d1d22; font-style: normal; font-size: 16px; line-height: 1.55; }
.footer__col a { position: relative; transition: color .2s; }
.footer__col a:hover { color: var(--brand-ink); }
.footer__col a:not(.footer__map) {
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
  transition: color var(--dur-2), background-size var(--dur-3) var(--ease-out);
}
.footer__col a:not(.footer__map):hover { background-size: 100% 1px; }
.footer__icon-row { display: flex; gap: 10px; align-items: flex-start; }
.footer__icon-row svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #f3752b; }
.footer__map { display: inline-block; margin-top: 12px; font-size: 14px !important; font-weight: 600; color: var(--brand-ink) !important; transition: translate var(--dur-2) var(--ease-out); }
.footer__map:hover { translate: 3px 0; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* Footer statement band */
.footer__statement {
  margin: 0 0 clamp(48px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid rgba(20, 20, 30, .08);
}
.footer__q1 {
  display: block;
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.2vw, 52px); line-height: 1.15; letter-spacing: -0.015em;
  color: #6b6b74; text-wrap: balance;
}
.footer__q2 {
  display: block; margin-top: 8px;
  font-size: clamp(44px, 7.2vw, 128px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  color: var(--ink); text-wrap: balance;
}
.footer__brandword {
  display: inline-block;
  background: linear-gradient(100deg, #f79634 0%, #f05023 30%, #ffd3ad 45%, #f05023 60%, #f79634 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(243, 117, 43, .28));
  transition: background-position 1.2s var(--ease-out);
}
.footer__statement:hover .footer__brandword { background-position: 0 0; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 22px;
  border-top: 1px solid rgba(20, 20, 30, .08);
  font-size: 14px; color: #6b6b74;
}
.footer__top-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(20, 20, 30, .14); border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer;
  transition: background-color .2s, border-color .2s, scale var(--dur-1);
}
.footer__top-btn:hover { background: #fff; border-color: rgba(20, 20, 30, .3); }
.footer__top-btn:active { scale: .97; }
.footer__top-btn svg { width: 16px; height: 16px; transition: translate var(--dur-2) var(--ease-out); }
.footer__top-btn:hover svg { translate: 0 -2px; }
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .mmenu, .menu-open .mmenu { clip-path: none; transition: opacity .2s, visibility 0s; }
  .mmenu__links a { translate: 0 0; transition: none; }
}
