/* ============================================================
   Atkinson Web Consulting
   Theme carried from the original site — the photographic
   backdrop, Existence Light display type, wide tracking,
   #67c1fd accent — rebuilt on a modern layout system.
   ============================================================ */

@font-face {
  font-family: existence;
  src: url(assets/Existence-Light.otf) format("opentype");
  font-display: swap;
}

:root {
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.4);
  --accent: #67c1fd;
  --accent-dim: rgba(103, 193, 253, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --line-hi: rgba(255, 255, 255, 0.28);
  --glass: rgba(10, 15, 22, 0.5);
  --glass-hi: rgba(18, 26, 36, 0.68);
  --shade: 0 24px 70px rgba(0, 0, 0, 0.45);

  --display: existence, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --r: 20px;
  --gutter: clamp(22px, 6vw, 90px);
  --bay: clamp(88px, 13vh, 170px);
  --max: 1180px;
}

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

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

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: #080b10;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The backdrop: fixed photo, then a scrim that lightens at the
   top so the image reads, and deepens down-page for legibility. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url(assets/background.jpeg) center / cover no-repeat;
  transform: scale(1.04);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(115% 75% at 50% -10%, rgba(103, 193, 253, 0.13), transparent 62%),
    linear-gradient(180deg,
      rgba(8, 11, 16, 0.42) 0%,
      rgba(8, 11, 16, 0.72) 42%,
      rgba(8, 11, 16, 0.9) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #06121c; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Sized so "ATKINSON WEB CONSULTING" (15.84em at this tracking) always
   fits the content box on one line, from 320px up. */
h1 {
  font-size: clamp(0.8rem, 3.6vw, 3.4rem);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
h2 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
h3 { font-size: 0.95rem; letter-spacing: 0.2em; }

p { color: var(--dim); font-size: clamp(0.95rem, 1.05vw, 1.02rem); }
p + p { margin-top: 1.1em; }
p a { color: var(--accent); }
p a:hover { text-decoration: underline; text-underline-offset: 4px; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 20px; top: 20px; z-index: 200;
  background: #0c141d; padding: 14px 20px;
  border: 1px solid var(--line-hi); border-radius: 10px;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.85));
  z-index: 120;
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--gutter);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease,
              border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
nav.stuck {
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 32px; width: 32px; object-fit: contain; }
.brand span {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.navLinks { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.navLinks a {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.navLinks a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.navLinks a:hover { color: var(--ink); }
.navLinks a:hover::after,
.navLinks a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.navLinks a[aria-current="page"] { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22vh var(--gutter) 16vh;
  position: relative;
}
.hero.compact { min-height: 66svh; padding: 24vh var(--gutter) 10vh; }

.heroMark {
  width: clamp(78px, 9vw, 118px);
  height: auto;
  margin-bottom: clamp(26px, 4vh, 44px);
  filter: drop-shadow(0 14px 44px rgba(103, 193, 253, 0.34));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero h1 { max-width: 100%; }

.hero .tagline {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(0.76rem, 1.5vw, 0.92rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--dim);
}

.rule {
  width: 54px;
  height: 1px;
  margin: 30px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.scrollCue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
}
.scrollCue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: 0 0; }
  45% { transform: scaleY(1); transform-origin: 0 0; }
  55% { transform: scaleY(1); transform-origin: 0 100%; }
  100% { transform: scaleY(0); transform-origin: 0 100%; }
}

/* ---------- layout shells ---------- */
.bay { padding: var(--bay) var(--gutter); }
.inner { max-width: var(--max); margin: 0 auto; }

.panel {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shade);
}

/* ---------- about ---------- */
.aboutGrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.aboutCopy { padding: clamp(34px, 4.4vw, 64px); }
.aboutCopy h2 { margin-bottom: 26px; }

.partnerCard {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  padding: clamp(28px, 3vw, 40px);
  isolation: isolate;
}
.partnerCard img.shot {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}
.partnerCard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 15, 0.15) 0%, rgba(6, 10, 15, 0.9) 78%);
}
.partnerCard:hover img.shot { transform: scale(1.06); }
.partnerCard h3 { margin-bottom: 10px; }
.partnerCard p { font-size: 0.88rem; }
.partnerCard .go {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- apps ---------- */
.bay.apps { text-align: center; }
.apps .lede { max-width: 56ch; margin: 22px auto 0; }

.appGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2vw, 26px);
  margin-top: clamp(46px, 6vh, 74px);
  text-align: left;
}

.appCard {
  position: relative;
  display: flex;
  flex-flow: column;
  padding: clamp(28px, 3vw, 38px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1),
              border-color 0.4s ease, background-color 0.4s ease;
}
.appCard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(70% 55% at 50% 0%, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.appCard:hover {
  transform: translateY(-7px);
  border-color: var(--line-hi);
  background: var(--glass-hi);
}
.appCard:hover::before { opacity: 1; }

.appCard .icon {
  width: 78px; height: 78px;
  border-radius: 19px;
  margin-bottom: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}
.appCard:hover .icon { transform: scale(1.06) rotate(-2deg); }

.appCard h3 { margin-bottom: 12px; }
.appCard p { font-size: 0.9rem; flex: 1; }

.appCard .go {
  margin-top: 24px;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.appCard .go span { transition: transform 0.32s ease; }
.appCard:hover .go span { transform: translateX(6px); }

/* ---------- contact ---------- */
.callout {
  text-align: center;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 70px);
}
.callout p { max-width: 48ch; margin-left: auto; margin-right: auto; }
.mailLink {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(0.8rem, 1.9vw, 1.05rem);
  letter-spacing: 0.16em;
  color: var(--accent);
  word-break: break-word;
}
.mailLink:hover { text-decoration: underline; text-underline-offset: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 19px 42px;
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background-color 0.32s ease, border-color 0.32s ease,
              transform 0.32s cubic-bezier(0.2, 0, 0.2, 1);
}
.btn span { transition: transform 0.32s ease; }
.btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.btn:hover span { transform: translateX(6px); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 46px var(--gutter);
}
.footInner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.footLinks { display: flex; gap: 28px; flex-wrap: wrap; }
.footLinks a,
footer small {
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.footLinks a { transition: color 0.25s ease; }
.footLinks a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal.active { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .aboutGrid { grid-template-columns: 1fr; }
  .partnerCard { min-height: 300px; }
  .brand span { display: none; }
  .footInner { flex-flow: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero { padding-top: 25vh; }
  .navLinks { gap: 18px; }
  .navLinks a { font-size: 0.64rem; letter-spacing: 0.2em; }
  .scrollCue { display: none; }
  .btn { padding: 17px 34px; }
}

/* Backdrop-filter fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel { background: rgba(9, 13, 19, 0.9); }
  nav.stuck { background: rgba(8, 11, 16, 0.95); }
  footer { background: rgba(6, 9, 13, 0.95); }
}
