:root {
  --ink: #071012;
  --charcoal: #101719;
  --charcoal-2: #172123;
  --slate: #26343a;
  --steel: #73808a;
  --steel-2: #9ba6aa;
  --coast: #8fb7b0;
  --copper: #a66a4f;
  --rust: #6f4538;
  --paper: #f3eee4;
  --cream: #fff8ec;
  --stone: #d8cebd;
  --line: rgba(243, 238, 228, 0.14);
  --dark-line: rgba(7, 16, 18, 0.14);
  --forge-line: linear-gradient(90deg, transparent, rgba(166, 106, 79, 0.9), rgba(143, 183, 176, 0.72), transparent);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 18px 44px rgba(7, 16, 18, 0.16);
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 8%, rgba(143, 183, 176, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 28%, rgba(166, 106, 79, 0.12), transparent 26rem),
    linear-gradient(135deg, var(--ink), var(--charcoal) 48%, #0c1718);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(166, 106, 79, 0.22) 48% 48.16%, transparent 48.16%),
    radial-gradient(circle at 12% 88%, rgba(143, 183, 176, 0.16), transparent 24rem);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: rgba(243, 238, 228, 0.76); }
strong { color: inherit; }

:focus-visible {
  outline: 3px solid var(--coast);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 { max-width: 1080px; font-size: clamp(2.55rem, 7.2vw, 5.8rem); }
h2 { max-width: 930px; font-size: clamp(1.9rem, 4.2vw, 3.45rem); }
h3 { font-size: clamp(1.28rem, 1.75vw, 1.72rem); }
h4 { font-size: 1.1rem; }

.container {
  width: min(1180px, calc(100% - 34px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(243, 238, 228, 0.11);
  background: rgba(7, 16, 18, 0.76);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand span:last-child {
  font-size: 0.92rem;
  line-height: 1.05;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(143, 183, 176, 0.62);
  color: var(--paper);
  font-family: var(--serif);
  background:
    linear-gradient(135deg, rgba(143, 183, 176, 0.25), rgba(166, 106, 79, 0.16)),
    rgba(255,255,255,0.03);
}

.site-nav {
  position: fixed;
  inset: 74px 0 auto 0;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 17px 1.35rem;
  background: rgba(7, 16, 18, 0.97);
  border-bottom: 1px solid var(--line);
  transform: translateY(-118%);
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms var(--ease), opacity 260ms ease;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  position: relative;
  padding: 0.82rem 0;
  color: rgba(243, 238, 228, 0.74);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.45rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--coast), var(--copper));
  transition: width 260ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 240ms var(--ease);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(4.4rem, 9vw, 7rem) 0 3.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(2rem, 7vw, 6rem);
  width: min(42vw, 520px);
  height: 1px;
  background: var(--forge-line);
  opacity: 0.8;
  animation: lineTrace 5.5s var(--ease) infinite;
}

.hero-immersive::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 34%;
  background: linear-gradient(90deg, transparent, rgba(143,183,176,0.18), transparent);
  transform: rotate(-3deg);
  filter: blur(24px);
  animation: driftLine 11s ease-in-out infinite alternate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,16,18,0.92) 0%, rgba(7,16,18,0.58) 54%, rgba(7,16,18,0.88) 100%),
    url("https://cdn.pixabay.com/photo/2021/03/30/01/11/fife-6135609_1280.jpg") center / cover;
  opacity: 0.38;
  transform: scale(1.04);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
  max-width: 980px;
}

.hero-copy::before {
  content: "NFC / CUPAR / FIFE";
  width: fit-content;
  padding: 0.36rem 0.55rem;
  border: 1px solid rgba(243, 238, 228, 0.16);
  color: rgba(243, 238, 228, 0.58);
  background: rgba(7, 16, 18, 0.32);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.eyebrow {
  color: var(--coast);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero p,
.page-intro p {
  max-width: 790px;
  font-size: clamp(1.03rem, 1.7vw, 1.24rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.95rem);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid rgba(243, 238, 228, 0.2);
  background: rgba(243, 238, 228, 0.055);
  box-shadow: var(--shadow), 0 0 80px rgba(143, 183, 176, 0.1);
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.hero-visual::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--copper);
  border-left: 1px solid var(--copper);
}

.hero-visual::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--coast);
  border-bottom: 1px solid var(--coast);
}

.hero-photo {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.08) brightness(0.88);
  transition: transform 800ms var(--ease);
}

.hero-visual:hover img,
.project-card:hover img,
.case-card:hover img { transform: scale(1.045); }

.image-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  color: var(--paper);
  background: rgba(7, 16, 18, 0.68);
  border: 1px solid rgba(243, 238, 228, 0.18);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, 0.24);
  color: var(--paper);
  font-weight: 900;
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 183, 176, 0.8);
}

.button:hover::before { transform: translateX(120%); }

.button.primary {
  color: #071012;
  border-color: var(--coast);
  background: linear-gradient(135deg, var(--coast), #d8cebd);
}

.trust-strip {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  background: rgba(243, 238, 228, 0.96);
  color: var(--ink);
}

.trust-items {
  display: grid;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: var(--space) 0;
  border-top: 1px solid var(--line);
}

.section.light {
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(143,183,176,0.18), transparent 28rem),
    linear-gradient(180deg, var(--paper), var(--cream));
}

.section.light p,
.section.light li,
.section.light .muted { color: rgba(7, 16, 18, 0.72); }

.angled::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 40px;
  background: inherit;
  transform: skewY(-1.4deg);
  transform-origin: left;
}

.section-head,
.category-head,
.page-intro {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.section-head::before,
.category-head::before,
.page-intro::before {
  content: "";
  width: clamp(72px, 12vw, 160px);
  height: 1px;
  background: var(--forge-line);
  opacity: 0.72;
}

.section-head p,
.category-head p { max-width: 760px; }

.page-hero {
  padding: clamp(5rem, 11vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    linear-gradient(135deg, rgba(143,183,176,0.12), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(166,106,79,0.12), transparent 26rem),
    rgba(16, 23, 25, 0.8);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1020px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
}

.grid { display: grid; gap: 1rem; }
.grid.three, .grid.five { grid-template-columns: 1fr; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sticky-note,
.process-sticky {
  position: relative;
  display: grid;
  gap: 1rem;
}

.stacked-list {
  display: grid;
  gap: 0.85rem;
}

.mini-panel,
.card,
.service-card,
.comparison-card,
.contact-panel,
.enquiry-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, 0.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 183, 176, 0.09), transparent 13rem),
    linear-gradient(145deg, rgba(243, 238, 228, 0.075), rgba(243, 238, 228, 0.028)),
    rgba(7, 16, 18, 0.26);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}

.mini-panel,
.card,
.service-card,
.comparison-card {
  padding: 1.35rem;
  transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.card::before,
.service-card::before,
.comparison-card::before,
.pricing-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(143,183,176,.65), rgba(166,106,79,.35), transparent 65%);
  transition: opacity 280ms ease;
}

.card::after,
.service-card::after,
.comparison-card::after,
.pricing-card::after,
.mini-panel::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(166, 106, 79, 0.6);
  border-right: 1px solid rgba(143, 183, 176, 0.42);
  opacity: 0.72;
  pointer-events: none;
  transition: width 260ms var(--ease), height 260ms var(--ease), opacity 260ms ease;
}

.card:hover::after,
.service-card:hover::after,
.comparison-card:hover::after,
.pricing-card:hover::after,
.mini-panel:hover::after {
  width: 42px;
  height: 42px;
  opacity: 1;
}

.card:hover,
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 183, 176, 0.5);
  box-shadow: var(--soft-shadow);
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 106, 79, 0.38);
  box-shadow: var(--soft-shadow);
}

.card:hover::before,
.service-card:hover::before,
.comparison-card:hover::before,
.pricing-card:hover::before { opacity: 1; }

.light .card,
.light .service-card,
.light .comparison-card,
.light .mini-panel {
  border-color: rgba(7, 16, 18, 0.12);
  background: rgba(255, 248, 236, 0.72);
}

.badge,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(143, 183, 176, 0.42);
  color: var(--coast);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.light .badge,
.light .tag { color: #34524d; border-color: rgba(52, 82, 77, 0.28); }

.icon-card,
.pricing-card,
.service-card,
.comparison-card {
  display: grid;
  gap: 0.95rem;
}

.icon-card h3,
.service-card h3,
.pricing-card h2,
.mini-panel h3,
.timeline-item h3 {
  line-height: 1.12;
}

.icon-card h3,
.service-card h3,
.mini-panel h3,
.timeline-item h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
}

.comparison-grid {
  display: grid;
  gap: 0.85rem;
}

.comparison-card h3 {
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  line-height: 1.12;
}

.static-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(143, 183, 176, 0.12), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(166, 106, 79, 0.1), transparent 24rem);
}

.showcase-grid {
  display: grid;
  gap: 1rem;
}

.showcase-panel {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 0.85rem;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid rgba(243, 238, 228, 0.15);
  background:
    linear-gradient(145deg, rgba(243, 238, 228, 0.08), rgba(243, 238, 228, 0.025)),
    rgba(7, 16, 18, 0.36);
  box-shadow: var(--soft-shadow);
}

.showcase-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent),
    linear-gradient(180deg, transparent, rgba(7,16,18,0.34));
  transform: translateX(-80%);
  animation: panelSheen 7s var(--ease) infinite;
}

.showcase-panel h3 {
  position: relative;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.showcase-panel p,
.showcase-panel .menu-row,
.demo-topline {
  position: relative;
}

.demo-topline,
.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.demo-topline {
  color: var(--coast);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-row {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  color: rgba(243, 238, 228, 0.78);
}

.menu-row em {
  color: var(--paper);
  font-style: normal;
  font-weight: 900;
}

.fake-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: rgba(243, 238, 228, 0.1);
}

.fake-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  background: linear-gradient(90deg, var(--coast), var(--stone));
  animation: progressPulse 4.8s ease-in-out infinite;
}

.qr-mark {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 84px;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(143, 183, 176, 0.38);
  background: rgba(243, 238, 228, 0.08);
}

.qr-mark span {
  background: var(--coast);
  opacity: 0.86;
}

.qr-mark span:nth-child(2),
.qr-mark span:nth-child(3) {
  opacity: 0.3;
}

.css-orbit {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(243, 238, 228, 0.18);
  border-radius: 50%;
}

.css-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coast);
  offset-path: path("M56 2 A54 54 0 1 1 55 2");
  animation: orbit 8s linear infinite;
}

.pricing-card h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.category-head h2,
.section-head h2,
.sticky-note h2,
.process-sticky h2,
.local-photo-band h2,
.final-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
}

.service-card ul,
.feature-list,
.check-list,
.inline-checks {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.service-card li,
.feature-list li,
.check-list li,
.inline-checks li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(243, 238, 228, 0.76);
}

.service-card li::before,
.feature-list li::before,
.check-list li::before,
.inline-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  background: var(--coast);
  transform: rotate(45deg);
}

.inline-checks {
  grid-template-columns: 1fr;
  margin-top: 1.3rem;
}

.local-photo-band {
  min-height: 520px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(7, 16, 18, 0.12), rgba(7, 16, 18, 0.86)),
    var(--local-photo) center / cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.local-photo-band .container {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.local-photo-band h2,
.local-photo-band p { max-width: 800px; }

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card img,
.case-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.9);
  transition: transform 700ms var(--ease);
}

.project-body,
.case-content { padding: 1.3rem; }

.project-body h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.48rem);
  line-height: 1.14;
}

.case-content h2 {
  max-width: 720px;
  font-size: clamp(1.45rem, 2.35vw, 2.1rem);
  line-height: 1.08;
  margin: 0.25rem 0 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  counter-reset: strip;
}

.process-strip span {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--dark-line);
  background:
    linear-gradient(135deg, rgba(166, 106, 79, 0.12), transparent),
    rgba(7, 16, 18, 0.05);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process-strip span::before {
  counter-increment: strip;
  content: "0" counter(strip);
  display: block;
  margin-bottom: 0.6rem;
  color: #6f4538;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.case-grid {
  display: grid;
  gap: 1.2rem;
}

.case-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.05);
  box-shadow: var(--soft-shadow);
}

.process-layout {
  display: grid;
  gap: 2.4rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--copper), var(--coast), rgba(243,238,228,0.12));
  transform-origin: top;
  animation: timelineGlow 5s ease-in-out infinite alternate;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem 1.3rem 1.3rem 4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(143, 183, 176, 0.07), transparent 38%),
    rgba(243, 238, 228, 0.045);
  transition: transform 280ms var(--ease), border-color 280ms ease;
}

.timeline-item:hover {
  transform: translateX(5px);
  border-color: rgba(143, 183, 176, 0.48);
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--copper), var(--coast));
  font-weight: 950;
  font-size: 0.78rem;
  box-shadow: 0 0 0 6px rgba(143, 183, 176, 0.08);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--paper);
}

.light .price { color: var(--ink); }

.featured-price {
  border-color: rgba(143, 183, 176, 0.72);
  background:
    linear-gradient(180deg, rgba(143, 183, 176, 0.16), rgba(243, 238, 228, 0.055)),
    rgba(7, 16, 18, 0.34);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-panel,
.enquiry-card {
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.contact-detail {
  display: grid;
  gap: 0.3rem;
  margin: 1.4rem 0;
}

.contact-detail strong {
  font-size: clamp(1.05rem, 3vw, 1.45rem);
}

.contact-panel h2,
.enquiry-card h2 {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.08;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.04);
}

.faq-question {
  width: 100%;
  min-height: 62px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  color: var(--paper);
  background: transparent;
  text-align: left;
  font: 900 1rem var(--sans);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  color: var(--coast);
  font-size: 1.45rem;
  line-height: 1;
}

.faq-item.is-open .faq-question::after { content: "-"; }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 1rem;
  transition: grid-template-rows 300ms var(--ease), padding 300ms var(--ease);
}

.faq-answer > p { overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; padding-bottom: 1rem; }

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 20%, rgba(166, 106, 79, 0.14), transparent 22rem),
    radial-gradient(circle at 88% 80%, rgba(143, 183, 176, 0.11), transparent 22rem),
    linear-gradient(145deg, #050a0c, #101719 58%, #071012);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--forge-line);
  animation: lineTrace 7s var(--ease) infinite;
}

.site-footer::after {
  content: "CUPAR / FIFE / STATIC-FIRST";
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 1.2rem;
  color: rgba(243, 238, 228, 0.09);
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 0.85;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.footer-inner h3 {
  max-width: 760px;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 0.98;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links a,
.footer-inner p { color: rgba(243, 238, 228, 0.68); }
.footer-links a {
  position: relative;
  width: fit-content;
  font-weight: 850;
}
.footer-links a:hover { color: var(--paper); }
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 1px;
  background: var(--forge-line);
  transition: width 260ms var(--ease);
}
.footer-links a:hover::after { width: 100%; }

.footer-legal {
  max-width: 720px;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftLine {
  from { transform: translateX(-3%) rotate(-3deg); opacity: 0.45; }
  to { transform: translateX(3%) rotate(-2deg); opacity: 0.78; }
}

@keyframes panelSheen {
  0%, 42% { transform: translateX(-90%); opacity: 0; }
  58% { opacity: 1; }
  100% { transform: translateX(90%); opacity: 0; }
}

@keyframes progressPulse {
  0%, 100% { width: 46%; }
  50% { width: 82%; }
}

@keyframes orbit {
  to { offset-distance: 100%; }
}

@keyframes lineTrace {
  0%, 100% { transform: scaleX(0.28); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 0.88; }
}

@keyframes timelineGlow {
  from { opacity: 0.42; transform: scaleY(0.82); }
  to { opacity: 1; transform: scaleY(1); }
}

@media (min-width: 680px) {
  .trust-items { grid-template-columns: repeat(5, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .grid.five { grid-template-columns: repeat(2, 1fr); }
  .inline-checks { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .case-card { grid-template-columns: 0.9fr 1.1fr; }
  .case-card:nth-child(even) img { order: 2; }
  .process-strip { grid-template-columns: repeat(5, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-demo { grid-row: span 2; }
}

@media (min-width: 940px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 0; }
  .site-nav a::after { bottom: -0.45rem; }
  .nav-cta {
    margin-top: 0;
    border: 1px solid rgba(243, 238, 228, 0.18);
    padding: 0.58rem 0.8rem !important;
  }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr); }
  .hero { align-items: center; }
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .sticky-note,
  .process-sticky {
    position: sticky;
    top: 110px;
  }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.five { grid-template-columns: repeat(5, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .process-layout { grid-template-columns: 0.78fr 1.22fr; }
  .footer-inner { grid-template-columns: 1fr minmax(180px, auto); align-items: start; }
}

@media (hover: none), (pointer: coarse) {
  .hero-visual:hover img,
  .project-card:hover img,
  .case-card:hover img,
  .button:hover,
  .card:hover,
  .service-card:hover,
  .comparison-card:hover,
  .timeline-item:hover {
    transform: none;
  }
  .reveal {
    transform: translateY(12px);
    transition-duration: 520ms;
    transition-delay: 0ms !important;
  }
  .site-nav {
    transition: transform 260ms var(--ease), opacity 220ms ease;
  }
  .showcase-panel::before {
    animation-duration: 10s;
  }
  .hero::after,
  .site-footer::before,
  .timeline::before {
    animation: none;
  }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(2.35rem, 13vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  .hero h1,
  .page-hero h1 { font-size: clamp(2.4rem, 12vw, 3.3rem); }
  .case-content h2 { font-size: clamp(1.45rem, 8vw, 2rem); }
  .price { font-size: clamp(2rem, 12vw, 2.7rem); }
  .hero-photo { clip-path: none; }
  .hero { min-height: auto; padding-top: 3.4rem; }
  .hero::after { width: 70vw; left: 17px; right: auto; bottom: 1.4rem; }
  .hero-visual { min-height: 260px; }
  .hero-visual img { min-height: 300px; }
  .section { padding: clamp(3.2rem, 12vw, 4.6rem) 0; }
  .site-nav a { font-size: 1.08rem; padding: 0.95rem 0; }
  .button { width: 100%; }
  .service-card,
  .card,
  .comparison-card,
  .mini-panel,
  .timeline-item {
    padding: 1.1rem;
  }
  .timeline-item { padding-left: 3.5rem; }
  .showcase-panel { min-height: 220px; }
  .qr-mark,
  .css-orbit {
    opacity: 0.52;
    transform: scale(0.82);
    transform-origin: top right;
  }
  .site-footer::after {
    right: 1rem;
    bottom: 0.8rem;
    font-size: 2.1rem;
    max-width: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
