/* 360 Cycles Clontarf — Website #98
   Cycle shop × motion-ring technical modernism
   Fully offline. HTML + CSS only. */

:root {
  --chalk: #f7f8f4;
  --paper: #fbfcf8;
  --graphite: #24282b;
  --navy: #10263f;
  --blue: #245bdb;
  --lime: #c7f02f;
  --silver: #aeb7bc;
  --steel: #77828a;
  --line: rgba(36, 40, 43, 0.14);
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --shadow: 0 18px 46px rgba(24, 35, 45, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background:
    linear-gradient(180deg, rgba(36,91,219,0.04), transparent 18rem),
    var(--chalk);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,244,0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  line-height: 1;
  text-decoration: none;
}

.brand-main {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 0.25rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.main-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.main-nav a {
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--blue);
  border-color: currentColor;
}

.hero {
  padding: 4.7rem 0 5.4rem;
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.measure-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  max-width: 580px;
  margin-bottom: 1rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.measure-rule {
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.3rem;
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  color: #5b6064;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 1.8rem;
  font-size: 1.04rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.3rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36,91,219,0.20);
}

.hero-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  max-width: 550px;
  margin-top: 2rem;
}

.route-glyph {
  position: relative;
  width: 40px;
  height: 46px;
}

.route-glyph::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.route-glyph::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  width: 2px;
  height: 46px;
  background: var(--blue);
  transform: rotate(32deg);
}

.hero-note p {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(36,91,219,0.06), transparent 55%),
    var(--paper);
  box-shadow: var(--shadow);
}

.technical-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(36,40,43,0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(36,40,43,0.045) 1px, transparent 1px) 0 0 / 32px 32px;
}

.ring-system {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 300px;
  height: 300px;
  border: 4px solid var(--navy);
}

.ring-mid {
  width: 230px;
  height: 230px;
  border: 18px solid rgba(36,91,219,0.12);
  outline: 2px solid var(--blue);
}

.ring-inner {
  width: 138px;
  height: 138px;
  border: 3px dashed var(--lime);
}

.ring-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 24px;
  background: var(--orange, #e26b32);
  transform-origin: 50% 160px;
}

.t1 { transform: translate(-50%, -160px) rotate(0deg); }
.t2 { transform: translate(-50%, -160px) rotate(60deg); }
.t3 { transform: translate(-50%, -160px) rotate(120deg); }
.t4 { transform: translate(-50%, -160px) rotate(180deg); }
.t5 { transform: translate(-50%, -160px) rotate(240deg); }
.t6 { transform: translate(-50%, -160px) rotate(300deg); }

.diag-line {
  position: absolute;
  width: 5px;
  height: 170px;
  background: var(--lime);
  transform: rotate(38deg);
  opacity: 0.75;
}

.dl1 { right: 52px; top: 62px; }
.dl2 { right: 88px; top: 96px; background: var(--blue); }
.dl3 { left: 58px; bottom: 54px; height: 120px; background: var(--steel); transform: rotate(-32deg); }

.tech-tag {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 220px;
  padding: 1rem;
  border: 1px solid var(--graphite);
  background: rgba(247,248,244,0.92);
}

.tech-tag span,
.tech-tag strong {
  display: block;
}

.tag-kicker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.tech-tag strong {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.tech-tag > span:last-child {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.axis-label {
  position: absolute;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.x-label {
  right: 24px;
  bottom: 22px;
}

.y-label {
  left: 18px;
  bottom: 80px;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(174,183,188,0.10), transparent 34%),
    #fbfcf9;
}

.about-grid {
  display: grid;
  grid-template-columns: 70px 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.section-index {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.about-copy {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.about-copy p {
  font-size: 1.02rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tech-module {
  position: relative;
  min-height: 310px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(36,91,219,0.035), transparent 62%),
    var(--paper);
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.module-id {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.module-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 6px solid;
}

.ring-green { border-color: var(--navy); }
.ring-lime { border-color: var(--lime); }
.ring-steel { border-color: var(--steel); }

.module-title {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.module-scale {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.module-scale i {
  height: 1px;
  background: var(--line);
}

.module-ref {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.motion-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.motion-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(36,40,43,0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(36,40,43,0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    #eef1f0;
}

.motion-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 850px;
  margin-bottom: 3rem;
}

.motion-heading p:last-child {
  max-width: 690px;
}

.motion-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.motion-step {
  position: relative;
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(251,252,248,0.84);
}

.motion-num {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.motion-circle {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.motion-circle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--lime);
  border-radius: 50%;
}

.motion-circle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.motion-step strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.motion-step small {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.motion-stripe {
  position: absolute;
  height: 5px;
  opacity: 0.45;
}

.stripe-one {
  right: 0;
  top: 84px;
  width: 36%;
  background: var(--blue);
}

.stripe-two {
  right: 0;
  bottom: 78px;
  width: 48%;
  background: var(--lime);
}

.gear-outline {
  position: absolute;
  right: 4%;
  top: 9%;
  width: 145px;
  height: 145px;
  border: 14px solid rgba(16,38,63,0.08);
  border-radius: 50%;
  outline: 2px dashed rgba(36,91,219,0.18);
  outline-offset: 8px;
}

.closing-section {
  background: #f1f2ef;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.closing-copy {
  max-width: 700px;
}

.closing-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.closing-ring {
  position: absolute;
  border-radius: 50%;
}

.cr1 {
  width: 190px;
  height: 190px;
  right: 38px;
  top: 40px;
  border: 4px solid var(--navy);
}

.cr2 {
  width: 138px;
  height: 138px;
  right: 64px;
  top: 66px;
  border: 14px solid rgba(36,91,219,0.13);
  outline: 2px solid var(--blue);
}

.cr3 {
  width: 78px;
  height: 78px;
  right: 94px;
  top: 96px;
  border: 3px dashed var(--lime);
}

.closing-core {
  position: absolute;
  right: 109px;
  top: 111px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.closing-tag {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 230px;
  padding: 1rem;
  border: 1px solid var(--graphite);
  background: rgba(247,248,244,0.92);
}

.closing-tag span,
.closing-tag strong,
.closing-tag small {
  display: block;
}

.closing-tag span,
.closing-tag small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.closing-tag span {
  color: var(--blue);
}

.closing-tag strong {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.closing-route {
  position: absolute;
  left: 42px;
  bottom: 42px;
  height: 5px;
}

.rr1 {
  width: 46%;
  background: var(--lime);
}

.rr2 {
  width: 30%;
  bottom: 66px;
  background: var(--blue);
}

.legal-section {
  background: #e6e9e6;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(251,252,248,0.68);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-transform: none;
  letter-spacing: -0.03em;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #e6e9e6;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.15rem;
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.6rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 450px;
  }

  .about-grid {
    grid-template-columns: 56px 1fr;
  }

  .about-copy {
    grid-column: 2;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .tech-module {
    min-height: 240px;
  }

  .motion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero {
    padding-top: 3rem;
  }

  .measure-strip {
    grid-template-columns: 1fr;
  }

  .measure-rule {
    display: none;
  }

  .hero-visual {
    min-height: 380px;
  }

  .ring-system {
    width: 240px;
    height: 240px;
  }

  .ring-outer {
    width: 220px;
    height: 220px;
  }

  .ring-mid {
    width: 170px;
    height: 170px;
    border-width: 14px;
  }

  .ring-inner {
    width: 100px;
    height: 100px;
  }

  .ring-core {
    width: 62px;
    height: 62px;
    font-size: 1rem;
  }

  .tick {
    height: 18px;
    transform-origin: 50% 120px;
  }

  .t1 { transform: translate(-50%, -120px) rotate(0deg); }
  .t2 { transform: translate(-50%, -120px) rotate(60deg); }
  .t3 { transform: translate(-50%, -120px) rotate(120deg); }
  .t4 { transform: translate(-50%, -120px) rotate(180deg); }
  .t5 { transform: translate(-50%, -120px) rotate(240deg); }
  .t6 { transform: translate(-50%, -120px) rotate(300deg); }

  .tech-tag {
    left: 20px;
    top: 20px;
    width: 185px;
  }

  .about-grid,
  .section-heading,
  .motion-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .about-copy {
    grid-column: auto;
  }

  .motion-grid {
    grid-template-columns: 1fr;
  }

  .motion-step {
    min-height: 150px;
  }

  .gear-outline {
    right: -20px;
    top: 20px;
    transform: scale(0.72);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.55rem 1rem;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .hero-visual {
    min-height: 350px;
  }

  .tech-tag {
    max-width: 62%;
    padding: 0.8rem;
  }

  .diag-line {
    opacity: 0.4;
  }

  .closing-tag {
    left: 18px;
    top: 18px;
    max-width: 62%;
  }

  .legal-card,
  .motion-panel {
    padding: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
