/* =========================================================
   TOKENS
========================================================= */
:root{
  --navy-950: #060c18;
  --navy-900: #0a1628;
  --navy-800: #101f36;
  --navy-700: #16283f;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --white: #f7f8fa;
  --white-dim: rgba(247,248,250,0.68);
  --white-faint: rgba(247,248,250,0.42);

  --emerald: #12b981;
  --emerald-soft: #0f9d6b;
  --emerald-dim: rgba(18,185,129,0.14);
  --emerald-line: rgba(18,185,129,0.35);

  --font-display: 'Zen Kaku Gothic New', 'Inter', sans-serif;
  --font-serif-jp: 'Zen Old Mincho', serif;
  --font-body: 'Inter', 'Zen Kaku Gothic New', sans-serif;

  --container: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body{
  margin:0;
  background:var(--navy-900);
  color:var(--white);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0;
  letter-spacing:-0.01em;
  color:var(--white);
}

p{ margin:0; color:var(--white-dim); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

::selection{ background:var(--emerald); color:var(--navy-950); }

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--emerald);
  outline-offset:3px;
  border-radius:4px;
}

/* subtle noise/atmosphere on the whole page */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(18,185,129,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(18,185,129,0.05), transparent 55%);
}

/* cursor glow, desktop only */
.cursor-glow{
  position:fixed;
  width:420px; height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(18,185,129,0.09), transparent 70%);
  pointer-events:none;
  z-index:0;
  transform:translate(-50%,-50%);
  transition:opacity 0.3s var(--ease);
  opacity:0;
}
@media (hover:hover) and (pointer:fine){
  .cursor-glow.active{ opacity:1; }
}

/* =========================================================
   NAVIGATION
========================================================= */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:18px 0;
  transition:background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(10,22,40,0.72);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom-color:var(--line);
  padding:12px 0;
}
.nav-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  gap:24px;
}
.nav-brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.98rem;
  margin-right:auto;
}
.nav-brand-mark{
  color:var(--emerald);
  font-family:var(--font-serif-jp);
  font-size:1.2rem;
}
.nav-links{
  display:flex; gap:32px;
}
.nav-links a{
  font-size:0.88rem;
  color:var(--white-dim);
  position:relative;
  padding:4px 0;
  transition:color 0.25s var(--ease);
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:-2px;
  width:0; height:1px;
  background:var(--emerald);
  transition:width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color:var(--white); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-cta{
  font-size:0.85rem;
  padding:9px 18px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  transition:border-color 0.25s var(--ease), background 0.25s var(--ease);
  white-space:nowrap;
}
.nav-cta:hover{ border-color:var(--emerald); background:var(--emerald-dim); }

.lang-toggle{
  display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:7px 6px;
  font-size:0.78rem;
  font-weight:600;
  color:var(--white-faint);
  transition:border-color 0.25s var(--ease);
}
.lang-toggle:hover{ border-color:var(--emerald-line); }
.lang-toggle span{ padding:2px 8px; border-radius:999px; transition:background 0.25s var(--ease), color 0.25s var(--ease); }
.lang-toggle-sep{ opacity:0.4; padding:0 !important; }
.lang-toggle-en{ background:var(--emerald); color:var(--navy-950); }
.lang-toggle[aria-pressed="true"] .lang-toggle-en{ background:none; color:var(--white-faint); }
.lang-toggle[aria-pressed="true"] .lang-toggle-ja{ background:var(--emerald); color:var(--navy-950); }
.lang-toggle-ja{ font-family:var(--font-serif-jp); }

@media (max-width: 640px){
  .lang-toggle{ font-size:0.72rem; }
}

.nav-toggle{
  display:none;
  background:none; border:none;
  width:28px; height:20px;
  flex-direction:column; justify-content:space-between;
  padding:0;
}
.nav-toggle span{
  display:block; height:1.5px; width:100%;
  background:var(--white);
  transition:transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 860px){
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw, 320px);
    background:var(--navy-950);
    border-left:1px solid var(--line);
    flex-direction:column;
    padding:100px 32px 32px;
    gap:24px;
    transform:translateX(100%);
    transition:transform 0.4s var(--ease);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
}

/* =========================================================
   HERO
========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:140px 0 60px;
  overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
  opacity:0.5;
}
.hero-orb{
  position:absolute; border-radius:50%;
  filter:blur(80px);
  opacity:0.35;
}
.hero-orb--1{ width:420px; height:420px; background:var(--emerald); top:-120px; right:-100px; }
.hero-orb--2{ width:300px; height:300px; background:#0a3a5c; bottom:-100px; left:-80px; opacity:0.4; }

.hero-inner{
  position:relative; z-index:2;
  max-width:var(--container);
  margin:0 auto;
  width:100%;
  padding:0 32px;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-size:0.82rem;
  letter-spacing:0.06em;
  color:var(--emerald);
  text-transform:uppercase;
  margin-bottom:24px;
}
.eyebrow-line{ width:32px; height:1px; background:var(--emerald); display:inline-block; }

.hero-title{ margin-bottom:20px; }
.hero-title-en{
  display:block;
  font-size:clamp(2.4rem, 5vw, 4rem);
  font-weight:700;
  line-height:1.05;
}
.hero-title-jp{
  display:block;
  font-family:var(--font-serif-jp);
  font-size:clamp(1.1rem, 2vw, 1.4rem);
  color:var(--emerald);
  font-weight:400;
  margin-top:10px;
  letter-spacing:0.04em;
}

.hero-subtitle{
  font-size:1.08rem;
  max-width:560px;
  margin-bottom:36px;
}

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px;
  border-radius:999px;
  font-size:0.92rem;
  font-weight:500;
  transition:transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn i{ font-size:0.85em; transition:transform 0.3s var(--ease); }
.btn--primary{ background:var(--emerald); color:var(--navy-950); }
.btn--primary:hover{ transform:translateY(-2px); background:#17cf92; }
.btn--primary:hover i{ transform:translateX(3px); }
.btn--ghost{ border:1px solid var(--line-strong); color:var(--white); }
.btn--ghost:hover{ border-color:var(--emerald); background:var(--emerald-dim); }
.btn--full{ width:100%; justify-content:center; }

.hero-portrait{ position:relative; display:flex; flex-direction:column; align-items:center; gap:20px; }
.portrait-frame{
  position:relative;
  width:min(100%, 320px);
  aspect-ratio:1/1;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--line-strong);
  background:linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
}
.portrait-frame img{ width:100%; height:100%; object-fit:cover; }
.portrait-frame-empty-state{
  display:none;
  position:absolute; inset:0;
  flex-direction:column; align-items:center; justify-content:center; gap:14px;
  text-align:center; padding:24px;
  color:var(--white-faint);
  font-size:0.8rem;
}
.portrait-frame-empty-state i{ font-size:2.4rem; color:var(--emerald-line); }
.portrait-frame-empty-state code{
  display:block; margin-top:6px;
  font-size:0.72rem; color:var(--emerald);
  background:rgba(18,185,129,0.08);
  padding:4px 8px; border-radius:6px;
}
.portrait-frame--empty img{ display:none; }
.portrait-frame--empty .portrait-frame-empty-state{ display:flex; }

.portrait-tag{
  display:flex; align-items:center; gap:8px;
  font-size:0.8rem;
  color:var(--white-dim);
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  padding:8px 16px;
  border-radius:999px;
  backdrop-filter:blur(10px);
}
.portrait-tag-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--emerald);
  box-shadow:0 0 0 4px var(--emerald-dim);
}

.hero-highlights{
  position:relative; z-index:2;
  max-width:var(--container);
  margin:64px auto 0;
  padding:0 32px;
  display:flex;
  align-items:center;
  gap:32px;
  flex-wrap:wrap;
}
.highlight{ display:flex; flex-direction:column; gap:4px; }
.highlight-num{ font-family:var(--font-display); font-size:1.3rem; font-weight:700; color:var(--emerald); }
.highlight-label{ font-size:0.78rem; color:var(--white-faint); text-transform:uppercase; letter-spacing:0.04em; }
.highlight-divider{ width:1px; height:32px; background:var(--line-strong); }

.scroll-cue{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border-radius:14px;
  border:1px solid var(--line-strong);
  display:flex; justify-content:center; padding-top:8px;
  z-index:2;
}
.scroll-cue span{
  width:4px; height:8px; border-radius:2px;
  background:var(--emerald);
  animation:scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ transform:translateY(0); opacity:1; }
  70%{ transform:translateY(10px); opacity:0; }
  100%{ opacity:0; }
}

@media (max-width: 860px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-portrait{ order:-1; }
  .portrait-frame{ width:min(70%, 260px); margin:0 auto; }
  .hero-highlights{ justify-content:space-between; gap:16px; }
  .highlight-divider{ display:none; }
}

/* =========================================================
   SECTIONS (shared)
========================================================= */
.section{
  position:relative; z-index:2;
  padding:120px 0;
  border-top:1px solid var(--line);
}
.section-eyebrow{
  font-size:0.8rem;
  color:var(--emerald);
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.section-title{
  font-size:clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight:700;
  max-width:640px;
  margin-bottom:20px;
}
.section-intro{
  max-width:560px;
  font-size:1.02rem;
  margin-bottom:56px;
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:64px;
  align-items:start;
  margin-top:40px;
}
.about-copy .lead{ font-size:1.2rem; color:var(--white); margin-bottom:18px; }
.about-copy p + p{ margin-top:16px; }

.about-pillars{ display:flex; flex-direction:column; gap:24px; }
.pillar{
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,0.02);
  transition:border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover{ border-color:var(--emerald-line); transform:translateY(-3px); }
.pillar-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px;
  background:var(--emerald-dim); color:var(--emerald);
  margin-bottom:14px; font-size:1rem;
}
.pillar h3{ font-size:1.05rem; margin-bottom:8px; }
.pillar p{ font-size:0.92rem; }

@media (max-width: 860px){
  .about-grid{ grid-template-columns:1fr; gap:40px; }
}

/* =========================================================
   JOURNEY / TIMELINE
========================================================= */
.timeline{ position:relative; margin-top:24px; padding-left:8px; }
.timeline-line{
  position:absolute; left:19px; top:8px; bottom:8px; width:1px;
  background:linear-gradient(var(--emerald-line), var(--line));
}
.timeline-item{
  position:relative;
  padding-left:56px;
  margin-bottom:44px;
}
.timeline-item:last-child{ margin-bottom:0; }
.timeline-node{
  position:absolute; left:12px; top:6px;
  width:15px; height:15px; border-radius:50%;
  background:var(--navy-900);
  border:2px solid var(--emerald);
  box-shadow:0 0 0 6px rgba(18,185,129,0.08);
}
.timeline-card{
  border:1px solid var(--line);
  background:rgba(255,255,255,0.02);
  border-radius:var(--radius-md);
  padding:26px 28px;
  transition:border-color 0.3s var(--ease);
}
.timeline-card:hover{ border-color:var(--emerald-line); }
.timeline-tag{
  display:inline-block;
  font-size:0.72rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--emerald);
  background:var(--emerald-dim);
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:12px;
}
.timeline-card h3{ font-size:1.15rem; margin-bottom:8px; }
.timeline-card p{ font-size:0.92rem; }

/* =========================================================
   EXPERTISE
========================================================= */
.expertise-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  margin-top:24px;
}
.expertise-card{
  padding:30px 26px;
  border-radius:var(--radius-md);
  border:1px solid var(--line);
  background:rgba(255,255,255,0.02);
  transition:transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.expertise-card:hover{
  transform:translateY(-4px);
  border-color:var(--emerald-line);
  background:rgba(18,185,129,0.04);
}
.expertise-card--wide{ grid-column:span 3; display:flex; align-items:center; gap:22px; }
.expertise-card--wide .expertise-icon{ margin-bottom:0; flex-shrink:0; }
.expertise-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:12px;
  background:var(--emerald-dim); color:var(--emerald);
  font-size:1.1rem; margin-bottom:16px;
}
.expertise-card h3{ font-size:1.02rem; margin-bottom:8px; }
.expertise-card p{ font-size:0.9rem; }

@media (max-width: 860px){
  .expertise-grid{ grid-template-columns:1fr 1fr; }
  .expertise-card--wide{ grid-column:span 2; flex-direction:column; text-align:left; align-items:flex-start; }
}
@media (max-width: 560px){
  .expertise-grid{ grid-template-columns:1fr; }
  .expertise-card--wide{ grid-column:span 1; }
}

/* =========================================================
   CURRENT ROLE
========================================================= */
.role-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-top:16px;
}
.role-list{
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:32px;
  background:rgba(255,255,255,0.02);
}
.role-list h3{ font-size:1.05rem; margin-bottom:20px; }
.role-list li{
  display:flex; gap:12px; align-items:flex-start;
  font-size:0.92rem; color:var(--white-dim);
  padding:10px 0;
  border-top:1px solid var(--line);
}
.role-list li:first-child{ border-top:none; padding-top:0; }
.role-list li i{ color:var(--emerald); margin-top:3px; flex-shrink:0; }
.role-note{ margin-top:24px; font-size:0.85rem; color:var(--white-faint); font-style:italic; }

@media (max-width: 760px){
  .role-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   CREDENTIALS
========================================================= */
.credentials-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:48px;
  margin-top:24px;
}
.cert-cards h3, .lang-bars h3{ font-size:1.05rem; margin-bottom:22px; }
.cert-card{
  display:flex; align-items:center; gap:16px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,0.02);
  margin-bottom:14px;
  transition:border-color 0.3s var(--ease);
}
.cert-card:hover{ border-color:var(--emerald-line); }
.cert-icon{
  width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--emerald-dim); color:var(--emerald);
  flex-shrink:0;
}
.cert-card h4{ font-size:0.95rem; margin-bottom:4px; }
.cert-card p{ font-size:0.82rem; color:var(--white-faint); }

.lang-bar{ margin-bottom:24px; }
.lang-bar-head{
  display:flex; justify-content:space-between;
  font-size:0.9rem; margin-bottom:8px;
}
.lang-bar-head span:first-child{ color:var(--white); font-weight:500; }
.lang-bar-head span:last-child{ color:var(--white-faint); font-size:0.82rem; }
.lang-bar-track{
  height:6px; border-radius:999px;
  background:rgba(255,255,255,0.06);
  overflow:hidden;
}
.lang-bar-fill{
  height:100%; width:0;
  border-radius:999px;
  background:linear-gradient(90deg, var(--emerald-soft), var(--emerald));
  transition:width 1.4s var(--ease);
}

@media (max-width: 760px){
  .credentials-grid{ grid-template-columns:1fr; gap:40px; }
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid{
  display:grid;
  grid-template-columns:0.8fr 1.2fr;
  gap:48px;
  margin-top:8px;
}
.contact-links{ display:flex; flex-direction:column; gap:14px; }
.contact-link{
  display:flex; align-items:center; gap:16px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,0.02);
  transition:border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-link:hover{ border-color:var(--emerald-line); transform:translateX(4px); }
.contact-link i{ font-size:1.2rem; color:var(--emerald); width:24px; text-align:center; }
.contact-link span{ display:block; font-size:0.95rem; color:var(--white); }
.contact-link small{ display:block; font-size:0.78rem; color:var(--white-faint); margin-top:2px; }

.contact-form{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:36px;
  background:rgba(255,255,255,0.03);
  backdrop-filter:blur(12px);
}
.form-row{ margin-bottom:20px; }
.form-row label{
  display:block; font-size:0.82rem; color:var(--white-faint);
  margin-bottom:8px; text-transform:uppercase; letter-spacing:0.03em;
}
.form-row input, .form-row textarea{
  width:100%;
  background:var(--navy-950);
  border:1px solid var(--line-strong);
  border-radius:var(--radius-sm);
  padding:13px 16px;
  color:var(--white);
  font-family:inherit;
  font-size:0.94rem;
  resize:vertical;
  transition:border-color 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--emerald); }
.form-status{ margin-top:14px; font-size:0.85rem; color:var(--emerald); min-height:1.2em; }

@media (max-width: 860px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  border-top:1px solid var(--line);
  padding:56px 0 32px;
  position:relative; z-index:2;
}
.footer-vision{
  font-family:var(--font-serif-jp);
  font-size:1.1rem;
  color:var(--white-dim);
  max-width:640px;
  margin-bottom:32px;
  line-height:1.8;
}
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:0.8rem; color:var(--white-faint);
  padding-top:24px; border-top:1px solid var(--line);
}

.to-top{
  position:fixed; right:24px; bottom:24px; z-index:90;
  width:44px; height:44px; border-radius:50%;
  background:var(--navy-800); border:1px solid var(--line-strong);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transform:translateY(10px);
  transition:opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.to-top.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }
.to-top:hover{ border-color:var(--emerald); color:var(--emerald); }

/* =========================================================
   RESPONSIVE — SMALL SCREENS GLOBAL
========================================================= */
@media (max-width: 640px){
  .section{ padding:80px 0; }
  .container{ padding:0 20px; }
  .hero{ padding:120px 0 40px; }
  .hero-inner{ padding:0 20px; gap:40px; }
  .hero-highlights{ padding:0 20px; margin-top:48px; }
}
