:root{
  --bg:#202124;
  --panel:#202124;
  --ink:#f2f2f2;
  --muted:#b0b7c3;
  --line:#202124;
  --brand:#b0b7c3;
  --brand-ink:#b0b7c3;
  --rounded:16px;
  --radius:14px;
}

/* ==== Base & page fade ==== */
*{box-sizing:border-box;}

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  animation:pageFade .35s ease both;
}

@keyframes pageFade{from{opacity:.001}to{opacity:1}}

a{
  color:var(--brand-ink);
  text-decoration:none;
}
a:hover{opacity:.92}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding-inline:24px;
}

@media (max-width:640px){
  .wrap{padding-inline:16px;}
}

/* ===== Section reveal on scroll ===== */
.section{
  padding:42px 0;
  border-bottom:1px solid var(--line);
  opacity:0;
  transform:translateY(14px);
  transition:opacity .45s ease,transform .45s ease;
  will-change:opacity,transform;
  scroll-margin-top:84px;
}
.section.is-in{
  opacity:1;
  transform:translateY(0);
}

/* Headings inside sections (Services, Portfolio, Certs, etc.) */
.section > h2,
.section > h3{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:3rem;
  font-weight:400;
  color:var(--ink);
  margin:0 0 18px;
  text-align:center;
}

/* =========================================================
   HEADER / NAV BAR (shared by index + privacy)
   ========================================================= */

.bar{
  background:var(--bg);
  border-bottom:1px solid var(--bg);
  position:sticky;
  top:0;
  z-index:5;
}
.bar-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  height:56px;
  padding:0 16px;
  gap:10px;
}
.bar .wrap{
  max-width:1200px;
  margin:0 auto;
}

/* No inline nav — burger only */
.nav{display:none !important;}

/* Burger button (left) */
.menu-toggle{
  display:inline-block;
  font:inherit;
  font-size:1.25rem;
  line-height:1;
  padding:8px 10px;
  border:none;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  justify-self:start;
}

/* Date / time / location (right) */
.meta{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.95rem;
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  white-space:nowrap;
}
.meta__item{white-space:nowrap;}
.meta__loc{opacity:.85;}

/* Overlay behind drawer */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
  z-index:900;
  display:block;
}
.nav-overlay[hidden]{display:none;}

/* Left drawer menu */
.menu-panel{
  position:fixed;
  top:56px;
  left:0;
  width:min(78vw,360px);
  height:calc(100dvh - 56px);
  background:#202124;
  border-right:1px solid var(--line);
  transform:translateX(-100%);
  transition:transform .25s ease;
  padding:14px 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:1000;
}
.menu-panel a{
  color:var(--ink);
  text-decoration:none;
  padding:12px 6px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.menu-panel a:last-child{border-bottom:none;}
.menu-panel a:focus-visible{
  outline:2px solid rgba(255,255,255,.22);
  outline-offset:3px;
}
.menu-panel.open{transform:translateX(0);}

/* Privacy page home icon (re-uses .menu-toggle slot) */
#homeLink{
  display:flex;
  align-items:center;
  justify-content:center;
  width:37px;
  height:37px;
  cursor:pointer;
}
#homeLink svg{
  width:37px;
  height:37px;
  stroke:var(--ink);
  fill:none;
  stroke-width:1.6;
}

/* ===== Header hero (name + subtitle + logo) ===== */

header.pagehead{
  padding-top:clamp(48px,6vw,90px);
  padding-bottom:clamp(28px,5vw,50px);
  text-align:center;
  border-bottom:1px solid var(--line);
}
header.pagehead .brand-logo{
  display:block;
  width:clamp(50px,7vw,52px);
  margin:0 auto 18px;
  opacity:.95;
}
header.pagehead .title{
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:3rem;
  font-weight:300;
  margin:0 0 6px;
  letter-spacing:-0.015em;
}
header.pagehead .subtitle{
  font-size:clamp(1.05rem,2vw,1.25rem);
  color: var(--muted);
  font-weight:200;
  margin:0;
}

@media (max-width:768px){
  header.pagehead{
    padding-top:56px;
    padding-bottom:36px;
  }
  header.pagehead .brand-logo{
    width:40px;
    margin-bottom:14px;
  }
  header.pagehead .title{
    font-size:clamp(1.2rem,4.8vw,1.55rem);
    line-height:1.05;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  header.pagehead .subtitle{
    font-size:clamp(.9rem,3.6vw,1.05rem);
  }
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:28px;
  align-items:center;
}
.portrait{
  border-radius:var(--rounded);
  overflow:hidden;
  border:1px solid var(--line);
  transform: none;
  opacity: 1 !important;
}
.portrait img{
  display:block;
  width:100%;
  height:auto;
}

.about-card{
  max-width:620px;
  margin:0 auto;
  background:linear-gradient(150deg,#24272f,#202020);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  padding:20px 22px 24px;
  transition:transform .22s ease-out,border-color .22s ease-out,background .22s ease-out;
}
.about-card:hover{
  background:linear-gradient(150deg,#2b313b,#212329);
  border-color:rgba(0,110,230,0.35);
  transform:translateY(-3px);
}

#about p{
  margin:0 0 1.1rem;
  line-height:1.6;
  text-align:justify;
  text-justify:inter-word;
}
#about p:first-of-type::first-letter{
  font-size:1.35em;
  font-weight:600;
  letter-spacing:.01em;
}

/* About CTA buttons (stacked on mobile) */
#about .cta-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  margin-top:3.2rem;
}

.btn,
.btn-outline{
  display:inline-block;
  padding:.7rem 1rem;
  border-radius:999px;
  border:1px solid transparent;
  white-space:nowrap;
}

.btn-primary{
  background:#006ee6;
  color:#fff;
  border:none;
}
.btn-primary:hover{
  background:#006ee6;
  transform:translateY(-1px);
}
.btn-outline{
  background:transparent;
  border-color:#006ee6;
  color:#e4f0ff;
}
.btn-outline:hover{
  border-color:#006ee6;
  background:rgba(0,110,230,0.12);
  color:#f2f2f2;
  transform:translateY(-1px);
}

/* About responsiveness */
@media (max-width:960px){
  .about{
    grid-template-columns:320px 1fr;
    gap:24px;
  }
}
@media (max-width:700px){
  .about{
    grid-template-columns:1fr;
    gap:18px;
  }
  .about .portrait{
    min-height:320px;
    border-radius:18px;
    margin:0 auto;
    max-width:420px;
    width:100%;
  }
  #about p{
    text-align:left !important;
    text-justify:auto !important;
    hyphens:none !important;
  }
}
@media (max-width:480px){
  #about .cta-row{gap:10px;}
  #about .btn,
  #about .btn-outline{
    font-size:.85rem;
    padding:10px 12px;
  }
}

/* =========================================================
 SERVICES — AGENCY LAYOUT
 ========================================================= */

#services.section{
  padding-top:34px;
  padding-bottom:46px;
  border-bottom:1px solid var(--line);
}

.services-shell{
  max-width:1100px;
  margin:0 auto;
}

/* Header */
.services-header{
  max-width:620px;
  margin:0 auto 0px;
  text-align: center;

}

.services-title{
  margin:0 0 10px;
  font-size:3rem;
  font-weight:400;
  letter-spacing:-0.02em;
}

/* Layout: left grid + right meta card */
.services-layout{
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(0,1.1fr);
  gap:28px;
  align-items:flex-start;
}

/* Service pill grid */
.service-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.service-pill{
  position:relative;
  padding:16px 16px 14px;
  border-radius:18px;
  background:linear-gradient(145deg,#262931,#191b21);
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
  transition:
    opacity .45s ease,
    transform .45s ease,
    background .25s ease,
    border-color .25s ease;
  opacity:0;
  transform:translateY(14px);
}

#services.section.is-in .service-pill{
  opacity:1;
  transform:translateY(0);
}

/* subtle stagger */
#services.section.is-in .service-pill:nth-child(1){transition-delay:.04s;}
#services.section.is-in .service-pill:nth-child(2){transition-delay:.08s;}
#services.section.is-in .service-pill:nth-child(3){transition-delay:.12s;}
#services.section.is-in .service-pill:nth-child(4){transition-delay:.16s;}
#services.section.is-in .service-pill:nth-child(5){transition-delay:.20s;}
#services.section.is-in .service-pill:nth-child(6){transition-delay:.24s;}

.service-pill::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:radial-gradient(circle at top left,rgba(255,255,255,0.08),transparent 55%);
  opacity:0;
  transition:opacity .25s ease;
}

.service-pill:hover{
  background:linear-gradient(145deg,#2b3039,#1c1e25);
  border-color:rgba(0,110,230,0.45);
  transform:translateY(-3px);
}
.service-pill:hover::before{
  opacity:1;
}

.service-pill-label{
  font-size:.92rem;
  font-weight:500;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0 0 6px;
}

.service-pill-copy{
  margin:0 0 10px;
  font-size:.88rem;
  line-height:1.6;
  color:var(--muted);
}

.service-pill-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.service-pill-tags span{
  font-size:.76rem;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.55);
  color:var(--ink);
}

/* Right-side meta card */
.services-meta-card{
  border-radius:20px;
  background:linear-gradient(150deg,#262931,#181a20);
  border:1px solid rgba(255,255,255,0.10);
  padding:18px 18px 18px;
}

.services-meta-label{
  margin:0 0 8px;
  font-size:.84rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}

.services-meta-copy{
  margin:0 0 14px;
  font-size:.9rem;
  line-height:1.7;
  color:var(--ink);
}

.services-meta-list{
  list-style:none;
  margin:0 0 14px;
  padding:0;
  font-size:.88rem;
  color:var(--muted);
}
.services-meta-list li{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.services-meta-list .dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:radial-gradient(circle,#9fffbf 0%,#3dcc71 55%,#0f3a24 100%);
  box-shadow:0 0 8px rgba(159,255,191,0.9);
}

.services-meta-footnote{
  margin:0;
  font-size:.82rem;
  line-height:1.6;
  color:var(--muted);
}

/* Responsive: stack columns + meta first */
@media (max-width:900px){
  .services-layout{
    grid-template-columns:1fr;
    gap:22px;
  }

  /* Meta card above, grid below */
  .services-column--meta{
    order:1;
  }
  .services-column--primary{
    order:2;
  }
}

@media (max-width:600px){
  #services.section{
    padding-top:26px;
    padding-bottom:38px;
  }

  .services-header{
    margin-bottom:20px;
    text-align: center;
  }

  .services-title{
    font-size:1.6rem;
  }

  /* Two pills per row on phone */
  .service-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  .service-pill{
    padding:12px 10px 10px;
    border-radius:16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-pill-label{
    font-size:.82rem;
    line-height:1.3;
    margin-bottom: 4px;
  }

  .service-pill-copy{
    font-size:.8rem;
    line-height:1.5;
    margin-bottom: 8px;
  }
.service-pill-tags{
  justify-content: center;
}
  .service-pill-tags span{
    font-size:.7rem;
    padding:3px 7px;
    justify-content: center;
  }
}

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.portfolio-grid a{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  border-radius:14px;
  overflow:hidden;
}
.portfolio-grid img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Responsive portfolio grid */
@media (max-width:1140px){
  .portfolio-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:840px){
  .portfolio-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .portfolio-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
  .portfolio-grid a{border-radius:12px;}
}

/* =========================================================
   ARCHITECTURE / METHOD PANEL
   ========================================================= */

#craft.section{
  position:relative;
  padding:56px 0 56px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.craft-shell{
  position:relative;
  max-width:780px;
  margin:0 auto;
}
.craft-panel{
  position:relative;
  z-index:1;
  max-width:720px;
  margin:0 auto;
  padding:26px 28px 30px;
  border-radius:22px;
  background:linear-gradient(145deg,#262931,#181a20);
  border:1px solid rgba(255,255,255,0.10);
  text-align:center;
  overflow:hidden;
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.craft-panel::before,
.craft-panel::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.06);
}
.craft-panel::after{
  inset:4px;
  border-color:rgba(0,110,230,0.25);
  opacity:.7;
  mix-blend-mode:screen;
}
.craft-panel:hover{
  transform:translateY(-3px);
  border-color:rgba(0,110,230,0.40);
}
.craft-heading{margin-bottom:14px;}
.craft-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at top,rgba(255,255,255,0.16),transparent 60%),
    rgba(0,0,0,0.65);
  font-size:.78rem;
  letter-spacing:.20em;
  text-transform:uppercase;
  color:#f5f5f5;
}
.craft-tag-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:radial-gradient(circle,#9fffbf 0%,#3dcc71 55%,#0f3a24 100%);
  box-shadow:0 0 9px rgba(159,255,191,0.9);
}
.craft-copy{
  margin:0;
  font-size:.9rem;
  line-height:1.7;
  color:var(--muted);
}

@media (max-width:640px){
  #craft.section{
    padding:44px 0 50px;
  }
  .craft-panel{
    padding:20px 18px 22px;
    border-radius:18px;
  }
  .craft-panel::before,
  .craft-panel::after{
    inset:8px;
  }
  .craft-tag{
    font-size:.72rem;
    letter-spacing:.16em;
  }
  .craft-copy{font-size:.94rem;}
}

/* =========================================================
   CERTIFICATIONS GRID
   ========================================================= */

#certs.section{ 
  border-top:1px solid var(--line);
  padding-top:36px;
  padding-bottom:120px;
}

.cert-grid{
  max-width:880px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
  align-items:center;
}
.cert-card{
  background:linear-gradient(150deg,#262931,#171920);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  padding:18px 18px 22px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:left;
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.cert-card:hover{
  transform:translateY(-4px);
  border-color:rgba(0,110,230,0.45);
  background:linear-gradient(150deg,#2b2f38,#191b23);
}
.cert-figure{
  margin:0 0 14px;
  padding:10px;
  border-radius:14px;
  background:
    radial-gradient(circle at bottom,rgba(0,0,0,0.6),#181a20);
  overflow:hidden;
}
.cert-figure img{
  display:block;
  width:100%;
  border-radius:10px;
}
.cert-badge{
  margin-top:12px;
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:4px 14px;
  border-radius:999px;
  background:rgba(0,0,0,0.88);
  border:1px solid rgba(180,244,204,0.45);
  font-size:.7rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#d9ffe9;
}
.cert-badge-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:radial-gradient(circle,#9fffbf 0%,#3dcc71 55%,#0f3a24 100%);
  box-shadow:0 0 10px rgba(159,255,191,0.9);
}

@media (max-width:640px){
  .cert-grid{gap:18px;}
  .cert-card{
    padding:16px 14px 20px;
    border-radius:16px;
  }
  .cert-figure{padding:8px;}
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-shell{
  margin-top:72px;
  margin-bottom:40px;
}

.site-footer-panel{
  background:linear-gradient(150deg,#262931,#191b21);
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.10);
  padding:26px 24px 26px;
}

.footer-main{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px 32px;
  padding-bottom:18px;
}

.footer-contact{
  max-width:420px;
  font-size:.94rem;
  color:var(--muted);
}

.footer-label{
  margin:0 0 6px;
  font-size: 1.2rem;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:  0em;
  color:var(--ink);
}
.footer-copy{
  margin:0 0 10px;
  line-height:1.7;
}

.footer-email a{
  font-weight:300;
  color:#9fbfff;
}
.footer-email a:hover{text-decoration:underline;}

.footer-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.footer-chip{
  font-size:.84rem;
  padding:4px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.55);
  color:var(--ink);
}
.footer-chip:hover{
  background:rgba(0,110,230,0.18);
  border-color:rgba(0,110,230,0.55);
}

/* Social icons */
.footer-social{min-width:140px;}
.footer-social-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(0,0,0,0.80);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease,border-color .2s ease,transform .15s ease;
  color:#f5f5f5;
}
.footer-icon svg{
  width:18px;
  height:18px;
}
.footer-icon:hover{
  background:#006ee6;
  border-color:#006ee6;
  transform:translateY(-1px);
}

/* Bottom row */
.footer-bottom-right{
  display:flex;
  align-items:center;
  gap:16px;
  justify-self:end;
  ;
}

.privacy-link{
  margin:0;
}
.privacy-link a{
  color:#9fbfff;
  font-size:.9rem;
  letter-spacing:.01em;
}
.privacy-link a:hover{color:#fff;}

.to-top-circle{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.26);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:var(--ink);
  font-size:.9rem;
}
.to-top-circle:hover{
  background:rgba(255,255,255,0.06);
}

@media (max-width:760px){
  .site-footer-panel{
    border-radius:20px;
    padding:22px 18px 26px;
  }
  .footer-main{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* =========================================================
   PRIVACY PAGE LAYOUT
   ========================================================= */

body.privacy-page .section{
  opacity:1 !important;
  transform:none !important;
  transition:none !important;
}

#policy{
  padding-block:0;
  padding-inline:16px;
}
@media (min-width:768px){
  #policy{padding-inline:24px;}
}

.policy-shell{
  max-width:1120px;
  margin:0 auto;
  padding:clamp(40px,6vw,64px) 0 clamp(72px,7vw,96px);
}

.policy-grid{
  display:grid;
  grid-template-columns:minmax(0,260px) minmax(0,1fr);
  gap:clamp(28px,5vw,40px);
  align-items:flex-start;
}

/* TOC */
.policy-toc{
  position:sticky;
  top:96px;
  align-self:flex-start;
  background:radial-gradient(circle at top left,#2a2e37 0,#202124 55%,#18191f 100%);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  padding:18px 18px 16px;
}
.policy-toc h3{
  margin:0 0 10px;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--muted);
  text-align:center;
}
.policy-toc a{
  display:block;
  padding:10px 0;
  font-size:.9rem;
  color:var(--ink);
  opacity:.82;
}
.policy-toc a:hover{
  opacity:1;
  color:#006ee6;
}

/* Content */
.policy-content{
  background:linear-gradient(145deg,#212328,#191b21);
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.10);
  padding:clamp(24px,3vw,32px) clamp(22px,3vw,32px);
}
.policy-section{
  margin-bottom:32px;
  scroll-margin-top:110px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  padding-bottom:22px;
}
.policy-section:last-of-type{
  border-bottom:0;
  padding-bottom:0;
}
.sec-anchor{
  display:block;
  height:70px;
  margin-top:-70px;
  visibility:hidden;
}
.policy-section h2{
  font-size:.9rem;
  font-weight:400;
  margin:0 0 10px;
  text-align:left;
}
.policy-section h1{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:4rem;
  font-weight:400;
}
.policy-section p,
.policy-section li{
  font-size:.9rem;
  line-height:1.75;
  color:var(--muted);
  margin:0 0 12px;
  text-align:left;
}
.policy-section ul{
  margin:6px 0 16px 1.25rem;
  padding:0;
}
.policy-section li{margin:3px 0;}
.policy-section code{
  background:rgba(255,255,255,0.06);
  padding:2px 6px;
  border-radius:4px;
  font-size:.88rem;
}
.policy-section .note{
  color:var(--muted);
  font-size:.9rem;
}

@media (max-width:1024px){
  .policy-grid{
    grid-template-columns:1fr;
  }
  .policy-toc{
    position:static;
    margin-bottom:10px;
    border-radius:16px;
  }
  .policy-content{border-radius:18px;}
}
@media (max-width:520px){
  .policy-shell{
    padding:30px 0 60px;
  }
  .policy-section{
    margin-bottom:26px;
    padding-bottom:18px;
  }
}
/* =========================================================
   HOME HERO MODE — logo center on load
   ========================================================= */

/* Base header transition (no janky min-height animation) */
body.home-page .pagehead {
  transition:
    padding 0.7s cubic-bezier(0.4, 0.0, 0.2, 1),
    border-bottom-color 0.5s ease;
}

/* Hero state: logo / name / subtitle in the middle */
body.home-page.hero-mode header.pagehead {
  min-height: calc(100vh - 56px); /* viewport minus nav bar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom-color: transparent; /* no harsh line during transition */
}

/* Smooth reveal for the about block */
#about.section {
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

/* While hero-mode is active: hide portrait + about card */
body.home-page.hero-mode #about {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  pointer-events: none;
}

/* =========================================================
   UTILITIES
   ========================================================= */

img{max-width:100%;height:auto;display:block;}
button,a.btn{touch-action:manipulation;}

.visually-hidden{
  position:absolute;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  width:1px;
  height:1px;
  overflow:hidden;
  white-space:nowrap;
  border:0;
  padding:0;
  margin:-1px;
}
/* FORCE 2 columns on mobile — FINAL OVERRIDE */
@media (max-width: 600px) {

  .cert-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

}
.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: right;
}
/* =========================================================
   TYPEWRITER — ultra-smooth Apple-style intro
   ========================================================= */

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  opacity: 0;
  animation: tw-fade 0.6s ease forwards, tw-reveal 2.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes tw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tw-reveal {
  0%   { width: 0ch; }
  100% { width: 100%; }
}

/* Subtitle starts slightly after name */
.typewriter-sub {
  animation-delay: 0.5s, 0.5s;
}
/* ==============================
   SCROLL-SCALE TYPOGRAPHY LIST
   ============================== */

.scroll-scale {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scroll-scale-shell {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.scale-item {
  font-size: clamp(1.0rem, 2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  opacity: 0.35;
  transform: scale(0.82);
  transform-origin: center center;
  transition:
    transform 0.35s cubic-bezier(.25,.1,.25,1),
    opacity 0.35s ease;
  will-change: transform, opacity;
  text-align: center;
}

/* When active / in view */
.scale-item.is-active {
  transform: scale(1);
  opacity: 1;
}

/* Slight overshoot while scrolling for polish */
.scale-item.is-overshoot {
  transform: scale(1.06);
}
