/* =========================================================
   William Kirkpatrick — Portfolio
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg:           #0c0c0e;
  --bg-elev:      #131316;
  --bg-elev-2:    #18181c;
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);

  --text:         #f5f5f7;
  --text-mid:     #a8a8b0;
  --text-low:     #6b6b74;
  --text-faint:   #45454c;

  --accent:       #ff8a3d;          /* warm amber */
  --accent-soft:  #ffb27a;
  --accent-deep:  #d96a1e;
  --green:        #6ec27a;

  /* Type */
  --serif:    'Instrument Serif', 'Times New Roman', serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing & sizing */
  --container: 1240px;
  --gutter:    clamp(24px, 5vw, 64px);
  --section-y: clamp(96px, 14vh, 180px);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #1a1208; }

/* Subtle film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Atmospheric background gradient */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(110, 194, 122, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .nav, footer { position: relative; z-index: 2; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-faint);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
  margin-top: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  margin-top: 20px;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.55;
}
.muted { color: var(--text-mid); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  z-index: 50;
  transition: backdrop-filter 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-elev);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-logo:hover .logo-mark { border-color: var(--accent); color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(255, 138, 61, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-lg {
  padding: 18px 28px;
  font-size: 15px;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #1a1208;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-inner { max-width: 1080px; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 36px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(110, 194, 122, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110, 194, 122, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(110, 194, 122, 0.05); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) 0.1s forwards;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 0.25s;
}
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-tagline {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
  max-width: 660px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 88px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  max-width: 720px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.meta-value {
  font-size: 15px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-value.link { color: var(--accent); }

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: 20px; }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  transition: color 0.3s var(--ease);
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { animation: float 2.4s var(--ease) infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ---------- About / Stats ---------- */
.about {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
}
.about-copy .section-title { max-width: 720px; }
.about-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-top: 24px;
  max-width: 640px;
}
.about-body strong { color: var(--text); font-weight: 500; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.025em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* ---------- Work ---------- */
.work {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.section-header { margin-bottom: 80px; max-width: 880px; }

.projects {
  display: flex;
  flex-direction: column;
  gap: 140px;
}
@media (max-width: 920px) {
  .projects { gap: 96px; }
}

.project {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.project.reverse {
  grid-template-columns: 1fr 1.05fr;
}
.project.reverse .project-visual { order: 2; }
.project.reverse .project-meta   { order: 1; }

@media (max-width: 920px) {
  .project, .project.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .project.reverse .project-visual { order: 0; }
  .project.reverse .project-meta   { order: 1; }
}

.project-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 24px;
  display: inline-block;
}
.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.project-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--bg-elev);
  letter-spacing: 0.02em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* App Store link */
.app-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.app-store-link:hover {
  gap: 14px;
  color: var(--accent-soft);
}
.app-store-link svg { transition: transform 0.3s var(--ease); }
.app-store-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Project visuals: phone mockups ---------- */
.project-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 56px 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 540px;
  isolation: isolate;
}
/* Visual variants: each project gets a distinct background atmosphere */
.visual-manzanita { background: radial-gradient(circle at 30% 20%, #2b1410 0%, #0e0807 65%); }
.visual-golf      { background: radial-gradient(circle at 70% 30%, #0f2415 0%, #07120c 65%); }
.visual-ruler     { background: radial-gradient(circle at 50% 30%, #0d1d2c 0%, #050a10 65%); }
.visual-oaks      { background: radial-gradient(circle at 30% 70%, #2a1d0e 0%, #0f0a05 65%); }
.visual-fog       { background: radial-gradient(circle at 50% 30%, #1a2330 0%, #07090d 65%); }
.visual-caddie    { background: radial-gradient(circle at 70% 30%, #2b1d09 0%, #0c0805 65%); }

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3));
  z-index: 0;
}

/* The phone */
.phone {
  position: relative;
  width: 270px;
  height: 540px;
  background: linear-gradient(180deg, #1a1a1d, #0a0a0c);
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 50px 100px -40px rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: transform 0.6s var(--ease);
}
.project:hover .phone { transform: translateY(-6px) rotateZ(-0.5deg); }

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #050507;
  border-radius: 14px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0a0a0c;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.screen-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.manzanita-bg {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 200, 170, 0.08), transparent 60%),
    linear-gradient(180deg, #2e160f 0%, #170a07 100%);
}
.golf-bg {
  background:
    radial-gradient(circle at 50% 25%, rgba(180, 230, 180, 0.08), transparent 60%),
    linear-gradient(180deg, #102718 0%, #07140c 100%);
}
.ruler-bg {
  background:
    radial-gradient(circle at 50% 30%, rgba(125, 211, 252, 0.10), transparent 60%),
    linear-gradient(180deg, #0e2030 0%, #060c14 100%);
}
.oaks-bg {
  background:
    radial-gradient(circle at 50% 70%, rgba(212, 163, 115, 0.10), transparent 60%),
    linear-gradient(180deg, #2c1f10 0%, #110a05 100%);
}
.fog-bg {
  background:
    radial-gradient(circle at 50% 30%, rgba(186, 210, 230, 0.10), transparent 60%),
    linear-gradient(180deg, #1a2530 0%, #07090d 100%);
}
.caddie-bg {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 200, 120, 0.12), transparent 60%),
    linear-gradient(180deg, #2c1d09 0%, #0c0805 100%);
}

.screen-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #f5f5f7;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}
.bars {
  display: inline-block;
  width: 22px;
  height: 10px;
  background-image: linear-gradient(90deg, currentColor 22%, transparent 22%, transparent 36%, currentColor 36%, currentColor 56%, transparent 56%, transparent 70%, currentColor 70%, currentColor 92%, transparent 92%);
  opacity: 0.7;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.app-header span:not(.app-back) {
  flex: 1;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
}
.app-back {
  width: 26px;
  font-size: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.card-info {
  margin-top: auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.info-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.info-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* ----- Manzanita screen ----- */
.manzanita-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
}
.manzanita-art svg { width: 70%; height: auto; }

/* ----- Golf screen ----- */
.golf-distance {
  text-align: center;
  padding: 16px 0 24px;
}
.dist-num {
  font-family: var(--serif);
  font-size: 78px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #d4f5d8;
}
.dist-num span {
  font-size: 24px;
  margin-left: 4px;
  color: rgba(212, 245, 216, 0.55);
  letter-spacing: 0;
}
.dist-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.golf-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 24px 12px;
}
.golf-bars .bar {
  flex: 1;
  height: var(--h);
  background: rgba(110, 194, 122, 0.25);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s var(--ease);
}
.golf-bars .bar-active {
  background: linear-gradient(180deg, #6ec27a, #3a8c4a);
  box-shadow: 0 0 14px rgba(110, 194, 122, 0.4);
}

/* ----- Ruler screen ----- */
.ruler-map {
  flex: 1;
  margin: 4px 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.ruler-map svg { width: 100%; height: 100%; }

/* ----- Oaks screen ----- */
.oaks-feed {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feed-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a373, #8b5e34);
  flex-shrink: 0;
}
.avatar-2 { background: linear-gradient(135deg, #6ec27a, #3a8c4a); }
.feed-body { flex: 1; min-width: 0; }
.feed-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}
.feed-text {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- Fog screen ----- */
.fog-overlay {
  position: absolute;
  inset: 60px 0 100px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(220, 230, 240, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(200, 215, 230, 0.16), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(180, 200, 220, 0.12), transparent 60%);
  filter: blur(10px);
  z-index: 1;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translateX(-10px) translateY(0); }
  100% { transform: translateX(10px) translateY(-6px); }
}
.fog-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 20px;
}
.fog-time {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
}
.fog-coords {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.fog-scrubber {
  padding: 12px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.scrubber-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 8px;
}
.scrubber-fill {
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, #7dd3fc, #c4e1f1);
  border-radius: 2px;
}
.scrubber-handle {
  position: absolute;
  top: 50%;
  left: 35%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.scrubber-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ----- Caddie screen ----- */
.caddie-context {
  padding: 8px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctx-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.ctx-row span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.ctx-row strong {
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}
.caddie-bubble {
  margin: auto 16px 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 178, 122, 0.18), rgba(255, 138, 61, 0.06));
  border: 1px solid rgba(255, 178, 122, 0.25);
  border-radius: 18px;
  position: relative;
}
.bubble-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 178, 122, 0.85);
  margin-bottom: 6px;
}
.bubble-club {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}
.bubble-note {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.golf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Skills ---------- */
.skills {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 920px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
}
.skill-group {
  background: var(--bg);
  padding: 32px 28px;
}
.skill-group h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.skill-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-group li {
  font-size: 15px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skill-group li:last-child { border-bottom: none; padding-bottom: 0; }
.skill-group .muted {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-low);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* ---------- Experience timeline ---------- */
.experience {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.timeline {
  position: relative;
  padding-left: 0;
  max-width: 880px;
}
.tl-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 720px) {
  .tl-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-low);
  padding-top: 6px;
}
.tl-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.tl-org {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.tl-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 620px;
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.contact-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.contact .section-label {
  margin-bottom: 24px;
  justify-content: center;
}
.contact .section-label::before { display: none; }
.contact-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.contact-headline em { font-style: italic; color: var(--accent); }
.contact-sub {
  font-size: 18px;
  color: var(--text-mid);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  text-align: left;
}
@media (max-width: 720px) {
  .contact-meta { grid-template-columns: 1fr; gap: 24px; }
}
.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px var(--gutter) 64px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-mid);
}
.footer-meta {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.04em;
}

/* ---------- Mobile: nav-cta hidden on smallest ---------- */
@media (max-width: 480px) {
  .nav { padding: 14px 20px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .hero { padding: 120px 20px 60px; }
  .scroll-cue { display: none; }
}
