/* johnshiells.com — Northern Signal */
:root {
  --ink: #141a1f;
  --ink-soft: #2c363f;
  --paper: #eef1f3;
  --paper-2: #e2e7eb;
  --mist: #c5ced6;
  --amber: #c9792a;
  --amber-deep: #9a5a18;
  --pitch: #16352c;
  --steel: #4a5d6a;
  --white: #f7f9fa;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 121, 42, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(22, 53, 44, 0.06), transparent 50%),
    linear-gradient(180deg, #f4f6f8 0%, var(--paper) 40%, #ebeff2 100%);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow.light { color: #e8b06a; }

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* —— Top bar —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  background: rgba(238, 241, 243, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.top.is-scrolled {
  background: rgba(238, 241, 243, 0.92);
  border-color: rgba(20, 26, 31, 0.08);
  box-shadow: 0 8px 24px rgba(20, 26, 31, 0.05);
}
.top-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.top-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}
.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.top-nav a:hover { color: var(--ink); }
.top-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.top-cta:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  background: var(--amber);
  color: #1a1208;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover {
  background: #d98932;
  color: #1a1208;
  transform: translateY(-2px);
}
.btn.ghost {
  background: transparent;
  border-color: rgba(247, 249, 250, 0.55);
  color: var(--white);
}
.btn.ghost:hover {
  background: rgba(247, 249, 250, 0.12);
  color: var(--white);
  border-color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease) infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.35) 0%, rgba(10, 14, 18, 0.15) 35%, rgba(10, 14, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 14, 18, 0.55) 0%, transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5.5rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 40rem);
}
.hero-place {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8b06a;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}
.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.28s forwards;
}
.hero-line {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(247, 249, 250, 0.88);
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.42s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.55s forwards;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 1.5px solid rgba(247, 249, 250, 0.45);
  border-radius: 16px;
  text-decoration: none;
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--amber);
  border-radius: 50%;
  animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 0; transform: translateY(18px); }
}

/* —— About —— */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.about-text p { color: var(--ink-soft); }
.about-text p + p { margin-top: 0.85rem; }
.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.skill-row li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(20, 26, 31, 0.14);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.about-figure {
  margin: 0;
  position: relative;
}
.about-figure::before {
  content: "";
  position: absolute;
  inset: 1rem -0.85rem -0.85rem 1rem;
  background: linear-gradient(135deg, var(--pitch), #2a4a3e);
  z-index: 0;
}
.about-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

/* —— Work —— */
.work {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    linear-gradient(180deg, transparent, rgba(22, 53, 44, 0.04) 20%, rgba(22, 53, 44, 0.06) 80%, transparent),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(20, 26, 31, 0.015) 11px,
      rgba(20, 26, 31, 0.015) 12px
    );
}
.work-head { margin-bottom: 2.25rem; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.brand-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 26, 31, 0.1);
  border-left: 3px solid var(--amber);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.brand-link:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(20, 26, 31, 0.18);
  color: inherit;
}
.brand-link.award { border-left-color: var(--pitch); }
.brand-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* —— Pitch —— */
.pitch {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}
.pitch-media {
  position: absolute;
  inset: 0;
}
.pitch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.pitch-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 14, 0.82) 0%, rgba(8, 16, 14, 0.45) 48%, rgba(8, 16, 14, 0.25) 100%),
    linear-gradient(180deg, transparent 20%, rgba(8, 16, 14, 0.55) 100%);
}
.pitch-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 34rem;
}
.pitch-copy p { color: rgba(247, 249, 250, 0.88); }
.pitch-copy strong { color: var(--white); font-weight: 700; }
.pitch-actions { margin-top: 1.5rem; }

/* —— Elsewhere —— */
.elsewhere {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
.elsewhere-head { margin-bottom: 2rem; }
.link-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 3.5rem;
}
.link-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list li + li { margin-top: 0.65rem; }
.link-list a {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(20, 26, 31, 0.1);
  transition: border-color 0.25s var(--ease);
}
.link-list a:hover { border-color: var(--amber); color: inherit; }
.ll-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.ll-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.memorial {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
  background: #f7f5f0;
  border: 1px solid rgba(20, 26, 31, 0.08);
}
.memorial-fig { margin: 0; }
.memorial-fig img {
  width: 100%;
  box-shadow: 0 10px 30px rgba(20, 26, 31, 0.12);
  filter: grayscale(0.15) contrast(1.02);
}
.memorial-copy h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.memorial-copy .dates {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--steel);
}
.memorial-copy p { color: var(--ink-soft); }
.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--amber-deep);
}

/* —— Footer —— */
.foot {
  padding: 2.75rem 0 2.25rem;
  background: var(--ink);
  color: rgba(247, 249, 250, 0.72);
}
.foot-inner { display: grid; gap: 0.45rem; }
.foot-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.foot-meta { margin: 0; font-size: 0.95rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0;
}
.foot-links a {
  color: #e8b06a;
  text-decoration: none;
  font-weight: 600;
}
.foot-links a:hover { color: var(--white); }
.foot-copy {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(247, 249, 250, 0.45);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-figure { order: -1; max-width: 520px; }
  .brand-grid { grid-template-columns: 1fr; }
  .link-blocks { grid-template-columns: 1fr; gap: 1.75rem; }
  .memorial {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .top-nav { display: none; }
  .hero-copy { padding-bottom: 4.5rem; }
  .pitch-copy { padding: 4rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .hero-place, .hero-brand, .hero-line, .hero-actions {
    opacity: 1;
    animation: none;
  }
  .hero-scroll span { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover, .brand-link:hover { transform: none; }
}
