/* About + Contact page. Palette matches the site: black, Oswald, orange #ff8200,
   with the purple and green from the original skill trees. */
:root {
  --ab-bg: #000;
  --ab-fg: #fff;
  --ab-muted: hsla(0, 0%, 100%, .6);
  --ab-faint: hsla(0, 0%, 100%, .14);
  --ab-dim: #333;
  --ab-orange: #ff8200;
  --ab-purple: #8f8ae0;
  --ab-green: #9cc27f;
}

.ab { background: var(--ab-bg); color: var(--ab-fg); font-family: Oswald, sans-serif; overflow-x: hidden; }
/* The site stylesheet makes every <section> a full-height flex row; reset that here */
.ab section { display: block; height: auto; scroll-snap-align: none; }
.ab-tagline, .ab-detail-org { color: var(--ab-fg); }
.ab-hi, .ab-loc { color: var(--ab-muted); }
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }

/* Nav gets a solid backdrop once the page scrolls under it */
.navigation-bar { transition: background-color .25s, margin .25s; }
.navigation-bar.is-scrolled { background: rgba(0, 0, 0, .88); margin-top: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Each section is a full screen: content centered, scroll cue pinned to its bottom */
.ab .ab-section { max-width: 1200px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 108px 32px 8px; }
.ab-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ab-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 500;
              letter-spacing: 3px; text-transform: uppercase; color: var(--ab-orange); }
.ab-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ab-title { margin: 0 0 clamp(24px, 4.5vh, 52px); font-size: clamp(40px, 6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }

/* Scroll reveal (only when JS is running) */
.ab-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ab-js .reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.ab-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; max-width: 1240px; margin: 0 auto; padding: 100px 32px 6px; }
.ab-hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px; }
.ab-portrait { position: relative; margin: 0; }
.ab-portrait img { display: block; width: 100%; height: auto; max-width: 560px; margin-left: auto; }
.ab-portrait::after { content: ""; position: absolute; left: 12%; right: 8%; bottom: 6%; height: 2px;
                      background: linear-gradient(90deg, transparent, var(--ab-orange), transparent); opacity: .7; }
.ab-role-h { margin: 0 0 22px; font-weight: 600; }
.ab-hi { display: block; margin: 0 0 6px; font-size: 26px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: var(--ab-muted); }
/* Rotating title: one line tall; JS sizes the font so the longest title fits the column */
.ab-role { position: relative; display: block; height: 1.12em; overflow: hidden; font-size: var(--role-size, clamp(48px, 6vw, 100px));
           line-height: 1.12; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; color: var(--ab-orange); }
.ab-role-word { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0;
                transition: transform var(--rd, .5s) cubic-bezier(.2, .8, .2, 1), opacity var(--rd, .5s) ease; }
.ab-role-word.is-in { transform: none; opacity: 1; }
.ab-role-word.is-out { transform: translateY(-100%); opacity: 0; }
.ab-tagline { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; line-height: 1.25; }
.ab-tagline em { font-style: normal; color: var(--ab-orange); }
.ab-loc { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 44px; font-size: 16px; font-weight: 300; letter-spacing: 1px; color: var(--ab-muted); }
.ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ab-faint); }
.ab-stat { padding: 22px 18px 0 0; }
.ab-stat + .ab-stat { padding-left: 22px; border-left: 1px solid var(--ab-faint); }
.ab-stat-num { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1; color: var(--ab-orange); font-variant-numeric: tabular-nums; }
.ab-stat-label { display: block; margin-top: 10px; font-size: 15px; font-weight: 300; line-height: 1.35; letter-spacing: .5px; color: var(--ab-muted); }
@keyframes ab-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- SCROLL CUES ---------- */
.ab-next { display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; margin: 8px auto 0; padding: 8px 16px;
           color: var(--ab-muted); text-decoration: none; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; transition: color .2s; }
.ab-next i { position: relative; display: block; width: 2px; height: 44px; overflow: hidden; background: #333; border-radius: 1px; }
.ab-next i::after { content: ""; position: absolute; left: 0; top: -45%; width: 100%; height: 45%; border-radius: 1px;
                    background: linear-gradient(transparent, var(--ab-orange)); animation: ab-slide 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes ab-slide { to { top: 100%; } }
.ab-next svg { width: 22px; height: 22px; margin-top: -4px; fill: none; stroke: var(--ab-orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: ab-bob 1.8s ease-in-out infinite; }
.ab-next:hover, .ab-next:focus-visible { color: #fff; outline: none; }
@keyframes ab-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
/* Hero cue is pinned to the bottom of the screen until the visitor starts scrolling */
.ab-next--hero { margin: 4px auto 0; }
.ab-next--hero i { height: 34px; }

/* ---------- BACK TO TOP ---------- */
.ab-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
          background: #000; color: var(--ab-orange); border: 2px solid var(--ab-orange); text-decoration: none;
          font-family: Oswald, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
          opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background-color .2s, color .2s; }
.ab-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ab-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ab-top:hover, .ab-top:focus-visible { background: var(--ab-orange); color: #000; outline: none; }
.ab-top:hover svg { transform: translateY(-3px); }

/* ---------- THE LOOP (skills) ---------- */
.ab-loop-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ab-ring { container-type: inline-size; position: relative; width: clamp(300px, calc(100vh - 252px), 500px); width: clamp(300px, calc(100svh - 252px), 500px); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.ab-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-ring-base { fill: none; stroke: #222; stroke-width: 2; }
.ab-ring-ticks { fill: none; stroke: #2a2a2a; stroke-width: 10; stroke-dasharray: 1 13.7; }
.ab-trail { fill: none; stroke-width: 3; stroke-linecap: round; }
.ab-dot { filter: drop-shadow(0 0 8px currentColor); }
.ab-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ab-ring-center small { font-size: max(10px, 2.7cqw); letter-spacing: 4px; text-transform: uppercase; color: var(--ab-muted); }
.ab-ring-center strong { margin-top: 2px; font-size: 6.2cqw; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.ab-ring-center svg { width: 30px; height: 30px; margin-top: 8px; color: var(--ab-muted); animation: ab-spin 9s linear infinite; }
@keyframes ab-spin { to { transform: rotate(360deg); } }

.ab-node { --c: var(--ab-orange); position: absolute; width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw; padding: 0; border-radius: 50%;
           display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
           background: #000; color: var(--c); border: 2px solid var(--c); font: inherit;
           transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), background-color .3s, color .3s, box-shadow .3s; }
.ab-node svg { width: 6.4cqw; height: 6.4cqw; }
.ab-node span { font-size: max(10px, 2.8cqw); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.ab-node:hover { transform: scale(1.06); }
.ab-node:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ab-node.is-active { background: var(--c); color: #000; transform: scale(1.14); box-shadow: 0 0 0 8px rgba(0, 0, 0, 1), 0 0 34px 6px color-mix(in srgb, var(--c) 45%, transparent); }
.ab-node[data-i="0"] { left: 50%; top: 12.5%; }
.ab-node[data-i="1"] { --c: var(--ab-purple); left: 82.48%; top: 68.75%; }
.ab-node[data-i="2"] { --c: var(--ab-green); left: 17.52%; top: 68.75%; }

.ab-panel { --c: var(--ab-orange); min-height: 290px; }
.ab-title--sm { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: clamp(18px, 3.5vh, 36px); }
.ab-panel-step { font-size: 15px; letter-spacing: 3px; color: var(--c); }
.ab-panel-title { margin: 6px 0 12px; font-size: clamp(44px, 5vw, 72px); font-weight: 600; line-height: 1; text-transform: uppercase; color: var(--c); }
.ab-panel-line { margin: 0 0 26px; max-width: 460px; font-size: 20px; font-weight: 300; line-height: 1.4; color: var(--ab-muted); }
.ab-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ab-chips li { padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: #fff; font-size: 16px; letter-spacing: .5px;
               opacity: 0; transform: translateY(10px); animation: ab-chip .45s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes ab-chip { to { opacity: 1; transform: none; } }
.ab-panel-anim .ab-panel-title, .ab-panel-anim .ab-panel-line { animation: ab-swap .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ab-swap { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- PATH (timeline) ---------- */
.ab-track-wrap { position: relative; }
.ab-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ab-track-wrap::before, .ab-track-fill { content: ""; position: absolute; left: 10%; right: 10%; top: var(--line-top, 46px); height: 2px; background: #2a2a2a; }
.ab-track-fill { right: auto; width: 0; background: var(--ab-orange); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.ab-stop { display: flex; justify-content: center; }
.ab-stop button { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 4px; background: none; border: 0; color: var(--ab-muted);
                  font: inherit; cursor: pointer; transition: color .25s; }
.ab-stop .yr { font-size: 18px; letter-spacing: 2px; }
.ab-stop .pin { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #000; border: 2px solid #555;
                transition: transform .3s, border-color .3s, background-color .3s; }
.ab-stop .org { font-size: 18px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; text-align: center; line-height: 1.2; }
.ab-stop button:hover, .ab-stop button:focus-visible, .ab-stop.is-active button { color: #fff; outline: none; }
.ab-stop button:hover .pin, .ab-stop button:focus-visible .pin { border-color: #fff; transform: scale(1.2); }
.ab-stop.is-active .pin { background: var(--ab-orange); border-color: var(--ab-orange); transform: scale(1.35); }
.ab-stop.is-now .pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--ab-orange); animation: ab-ping 1.8s ease-out infinite; }
@keyframes ab-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ab-stop.is-now .yr::after { content: " \2014  now"; color: var(--ab-orange); }
.ab-detail { margin: 52px auto 0; max-width: 720px; min-height: 120px; text-align: center; }
.ab-detail-org { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.ab-detail-role { margin: 8px 0 12px; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--ab-orange); }
.ab-detail-line { margin: 0; font-size: 20px; font-weight: 300; line-height: 1.4; color: var(--ab-muted); }
.ab-detail.swap > * { animation: ab-fadeup .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes ab-fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- OFF THE CLOCK ---------- */
.ab-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ab-tile { --c: var(--ab-orange); display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 4vh, 40px) 32px;
           border: 1px solid #262626; transition: border-color .25s, transform .25s, background-color .25s; }
.ab-tile:hover { border-color: var(--c); transform: translateY(-4px); background: color-mix(in srgb, var(--c) 6%, #000); }
.ab-tile svg { width: 44px; height: 44px; color: var(--c); margin-bottom: clamp(16px, 3vh, 28px); transition: transform .3s; }
.ab-tile:hover svg { transform: rotate(-8deg) scale(1.08); }
.ab-tile-label { font-size: 14px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--c); }
.ab-tile-big { display: block; margin: 6px 0 10px; font-size: clamp(40px, 4.2vw, 60px); font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff; }
.ab-tile-line { font-size: 18px; font-weight: 300; line-height: 1.4; color: var(--ab-muted); }
.ab-tile:nth-child(2) { --c: var(--ab-purple); }
.ab-tile:nth-child(3) { --c: var(--ab-green); }

/* ---------- CONTACT ---------- */
.ab .ab-full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; }
.ab-contact .heading-9 { color: var(--ab-dim); }
.contact { max-width: 1040px; margin: 0 auto; padding: 32px 24px 96px; font-family: Oswald, sans-serif; color: #fff; text-align: center; }
.contact-lede { margin: 0 0 56px; font-size: 32px; font-weight: 400; line-height: 1.35; letter-spacing: .5px; color: #fff; }
.contact-lede span { display: block; font-size: 22px; font-weight: 300; color: hsla(0,0%,100%,.6); }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-btn { display: flex; align-items: center; gap: 20px; padding: 26px 28px; text-align: left; text-decoration: none;
               color: #fff; border: 2px solid #ff8200; background: transparent; transition: background-color .2s, color .2s; }
.contact-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
                border: 2px solid #ff8200; border-radius: 50%; color: #ff8200; transition: border-color .2s, color .2s; }
.contact-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-label { position: relative; display: block; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #ff8200; transition: color .2s; }
.contact-value { font-size: 24px; font-weight: 500; letter-spacing: .5px; overflow-wrap: anywhere; }
.contact-arrow { flex: none; font-size: 28px; transition: transform .2s; }
.contact-btn:hover, .contact-btn:focus-visible { background: #ff8200; color: #000; outline: none; }
.contact-btn:hover .contact-icon, .contact-btn:focus-visible .contact-icon { border-color: #000; color: #000; }
.contact-btn:hover .contact-label, .contact-btn:focus-visible .contact-label { color: #000; }
.contact-btn:hover .contact-arrow, .contact-btn:focus-visible .contact-arrow { transform: translateX(6px); }
.copy-glyph { flex: none; position: relative; width: 28px; height: 28px; }
.copy-glyph svg { position: absolute; inset: 0; margin: auto; transition: opacity .2s, transform .2s; }
.glyph-check { opacity: 0; transform: scale(.6); }
.glyph-check path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.contact-copy:hover .glyph-copy, .contact-copy:focus-visible .glyph-copy { transform: scale(1.1); }
.label-done { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.label-idle { display: inline-block; transition: opacity .2s, transform .2s; }
.contact-copy.is-copied { background: #ff8200; color: #000; }
.contact-copy.is-copied .contact-icon { border-color: #000; color: #000; }
.contact-copy.is-copied .contact-label { color: #000; }
.contact-copy.is-copied .label-idle { opacity: 0; transform: translateY(-6px); }
.contact-copy.is-copied .label-done { opacity: 1; transform: none; }
.contact-copy.is-copied .glyph-copy { opacity: 0; transform: scale(.6) rotate(-20deg); }
.contact-copy.is-copied .glyph-check { opacity: 1; transform: scale(1); }
.contact-copy.is-copied .glyph-check path { animation: draw-check .35s .08s ease-out forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 991px) {
  .ab-hero { padding-top: 110px; text-align: center; }
  .ab-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .ab-role-word { left: 0; right: 0; text-align: center; }
  .ab-portrait img { max-width: 380px; margin: 0 auto; }
  .ab-stats { text-align: left; }
  .ab-loop-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ab-loop-side { display: contents; }
  .ab-loop-side > .ab-eyebrow { order: -2; align-self: flex-start; }
  .ab-loop-side > .ab-title { order: -1; }
  .ab-ring { order: 0; margin-bottom: 36px; }
  .ab-panel { order: 1; }
  .ab-panel { min-height: 0; text-align: center; }
  .ab-panel-line { margin-left: auto; margin-right: auto; }
  .ab-chips { justify-content: center; }
  .ab-tiles { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .ab-tile { align-items: center; text-align: center; }
}
@media screen and (max-width: 767px) {
  .ab .ab-section { padding: 92px 16px 8px; }
  .ab-next { margin-top: 32px; }
  .ab-hero { padding-left: 16px; padding-right: 16px; }
  .ab-hi { font-size: 18px; }
  .ab-stat { padding: 16px 10px 0 0; }
  .ab-stat + .ab-stat { padding-left: 12px; }
  .ab-stat-label { font-size: 13px; }
  .ab-stop .org { display: none; }
  .ab-stop .yr { font-size: 15px; letter-spacing: 1px; }
  .ab-stop.is-now .yr::after { content: ""; }
  .ab-detail { margin-top: 36px; }
  .contact { padding: 30px 16px 64px; }
  .contact-lede { font-size: 24px; margin-bottom: 36px; }
  .contact-lede span { font-size: 18px; }
  .contact-actions { grid-template-columns: 1fr; gap: 16px; }
  .contact-btn { padding: 20px; gap: 16px; }
  .contact-icon { width: 48px; height: 48px; }
  .contact-value { font-size: 19px; overflow-wrap: normal; }
  .contact-arrow { display: none; }
  .contact { padding-bottom: 110px; }
  .ab-top { right: 16px; bottom: 16px; padding: 10px 14px; font-size: 13px; }
  .ab-portrait img { max-width: 240px; }
  .ab-hero { padding-top: 88px; }
  .ab-hero { min-height: 0; }
  .ab-next--hero { position: fixed; left: 50%; bottom: 12px; z-index: 50; width: 44px; height: 44px; margin: 0 0 0 -22px; padding: 0;
                   justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, .85); border: 1px solid rgba(255, 130, 0, .6);
                   transition: opacity .35s, transform .35s; }
  .ab-next--hero span, .ab-next--hero i { display: none; }
  .ab-next--hero svg { margin-top: 0; }
  .ab-next--hero.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ab *, .ab *::before, .ab *::after { animation: none !important; transition: none !important; }
  .ab-js .reveal { opacity: 1; transform: none; }
  .ab-chips li { opacity: 1; transform: none; }
  .contact-copy.is-copied .glyph-check path { stroke-dashoffset: 0; }
}
