/* =========================================================
   TOKENS
========================================================= */
:root{
  --bg:        #ffffff;
  --ink:       #0f1115;   /* near-black headings + name */
  --ink-soft:  #3c424b;   /* body copy */
  --ink-dim:   #8a929c;   /* secondary / footer */
  --blue:      #1d4ed8;   /* accent */
  --blue-dark: #163fb0;
  --line:      #e6e8eb;

  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 820px;
  --topbar-h: 70px;
  --pad: clamp(20px, 5vw, 48px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a:focus-visible,
:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   FIXED TOP BAR
========================================================= */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.topbar.is-scrolled{
  box-shadow: 0 4px 20px rgba(15,17,21,0.06);
}
.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-name{
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--blue);
}
.brand-role{
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

/* =========================================================
   PAGE LAYOUT
========================================================= */
.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{
  padding: clamp(48px, 8vw, 88px) 0;
}
.section + .section,
.footer{
  border-top: 1px solid var(--line);
}
.section--about{
  padding-top: calc(var(--topbar-h) + clamp(48px, 8vw, 88px));
}

.section-title{
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px 0;
}
.section-title--center{
  text-align: center;
}

.body-text{
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 18px 0;
}
.body-text:last-child{ margin-bottom: 0; }

/* =========================================================
   SHOWREEL
========================================================= */
.reel-video{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15,17,21,0.10);
}
.reel-video iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.reel-more{
  display: inline-block;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.reel-more:hover{
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   CONTACT
========================================================= */
.section--contact{
  text-align: center;
}
.contact-line{
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--ink-soft);
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
}
.contact-line a{
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.contact-line a:hover{
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-sep{
  color: var(--ink-dim);
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  padding: 32px 0 48px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

/* =========================================================
   REVEAL ON SCROLL (fails open — visible without JS)
========================================================= */
.js .reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1),
              transform 0.8s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 560px){
  .contact-sep{ display: none; }
  .contact-line{ flex-direction: column; gap: 8px; }
}
