:root{
  --bg: #f9f9fa;
  --bg-raised: #eeeef0;
  --text: #17161a;
  --text-muted: #6b6a70;
  --hairline: rgba(23,22,26,0.12);
  --ghost: rgba(23,22,26,0.09);
  --accent: #5c6a73;
  --accent-soft: rgba(92,106,115,0.10);
  --shadow: 0 1px 2px rgba(23,22,26,0.04);
  --radius: 2px;
  color-scheme: light;
}
html[data-theme="dark"]{
  --bg: #0c0c0d;
  --bg-raised: #131315;
  --text: #ece9e3;
  --text-muted: #8f8d92;
  --hairline: rgba(236,233,227,0.12);
  --ghost: rgba(236,233,227,0.09);
  --accent: #9fb2c0;
  --accent-soft: rgba(159,178,192,0.14);
  --shadow: 0 1px 2px rgba(0,0,0,0.4);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}
.accent-serif{
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-weight: 400; margin: 0; letter-spacing: -0.01em; }

/* underline draw-in for text links */
.link-draw{ position:relative; }
.link-draw::after{
  content:""; position:absolute; left:0; bottom:-3px; width:100%; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .3s ease;
}
.link-draw:hover::after{ transform:scaleX(1); transform-origin:left; }

/* scroll reveal — pure CSS scroll-driven animation, no JS.
   Default state is fully visible so browsers without view-timeline support
   (Safari < 26, Firefox) just show static content — never permanently hidden. */
.reveal{ opacity:1; }

@supports (animation-timeline: view()){
  .reveal{
    animation: reveal-io linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes reveal-io{
    0%   { opacity:0; transform: translateY(28px); }
    14%  { opacity:1; transform: translateY(0); }
    86%  { opacity:1; transform: translateY(0); }
    100% { opacity:0; transform: translateY(-28px); }
  }
}

/* hero background type — oversized ghost word, pure typography */
.hero-bgtype{
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  font-size: clamp(64px, 11vw, 180px); font-weight:600; letter-spacing:-0.03em;
  color: var(--ghost); white-space:pre-line; line-height:0.9; z-index:0; pointer-events:none;
  user-select:none;
}

.wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

/* header */
header.site{
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 64px;
}
.wordmark{
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.wordmark .dot{ color: var(--accent); }
.site-nav{ display:flex; align-items:center; gap: 22px; }
.site-nav a{
  font-size: 13px; color: var(--text-muted); letter-spacing: .02em;
}
.site-nav a:hover{ color: var(--text); }
.controls{ display:flex; align-items:center; gap: 10px; }
.ctl-btn{
  appearance:none; border:1px solid var(--hairline); background: transparent;
  color: var(--text-muted); font-family: inherit; font-size: 12px;
  letter-spacing: .05em; padding: 6px 11px; border-radius: var(--radius);
  cursor:pointer; transition: all .2s ease;
  display:flex; align-items:center; gap:6px;
}
.ctl-btn:hover{ color: var(--text); border-color: var(--text-muted); }
.ctl-btn svg{ width:13px; height:13px; display:block; }

/* hero */
.hero{ padding: 84px 0 72px; position:relative; overflow:hidden; }
.hero .wrap{
  display:grid; grid-template-columns: 1.25fr 0.8fr; gap: 56px;
  align-items:center; position:relative; z-index:1;
}
.eyebrow{
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; font-weight: 500;
}
h1.name{ font-size: clamp(34px, 5vw, 50px); line-height:1.1; margin-bottom: 14px; }
.tagline{
  font-size: 20px; color: var(--text-muted); margin: 0 0 22px;
}
.lede{
  font-size: 16px; color: var(--text-muted); max-width: 46ch; margin: 0 0 32px;
}
.hero-cta{ display:flex; gap: 14px; flex-wrap: wrap; }

@keyframes hero-in{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.hero-text > *{ opacity:0; animation: hero-in .8s ease forwards; }
.hero-text .eyebrow{ animation-delay:.05s; }
.hero-text .name{ animation-delay:.15s; }
.hero-text .tagline{ animation-delay:.28s; }
.hero-text .lede{ animation-delay:.4s; }
.hero-text .hero-cta{ animation-delay:.52s; }
.hero-portrait{ opacity:0; animation: hero-in 1s ease forwards; animation-delay:.2s; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px; letter-spacing: .03em; padding: 12px 20px;
  border-radius: var(--radius); transition: all .2s ease; border: 1px solid transparent;
}
.btn-primary{ background: var(--text); color: var(--bg); }
html[data-theme="dark"] .btn-primary{ background: var(--text); color: var(--bg); }
.btn-primary:hover{ background: var(--accent); }
.btn-ghost{ border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover{ border-color: var(--text-muted); }

.hero-portrait{
  position:relative; aspect-ratio: 2/3; border-radius: var(--radius);
  overflow:hidden; background: var(--bg-raised); box-shadow: var(--shadow);
}
.hero-portrait img{
  width:100%; height:100%; object-fit: cover; display:block;
  filter: grayscale(0.08) contrast(1.02);
}
.hero-portrait::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18) 100%);
}

/* sections */
section{ padding: 64px 0; border-top: 1px solid var(--hairline); }
.section-head{ display:grid; grid-template-columns: auto 1fr; align-items:end; gap: 20px; margin-bottom: 40px; }
.section-num{ font-size: clamp(46px, 6vw, 74px); line-height:.8; font-weight:600; color: var(--ghost); letter-spacing:-0.02em; }
h2.section-title{ font-size: 26px; padding-bottom: 8px; }

.about-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.about-grid p{ margin: 0 0 16px; color: var(--text-muted); font-size: 15.5px; }
.about-grid p:last-child{ margin-bottom:0; }
.about-grid strong{ color: var(--text); font-weight: 500; }

/* legal pages: impress / privacy */
/* 404 error page */
.error-page{ padding: 100px 0; text-align: center; }
.error-ghost{ font-size: clamp(80px, 18vw, 220px); font-weight:600; line-height:0.8; color: var(--ghost); margin-bottom: 8px; letter-spacing:-0.02em; }
.error-page .section-title{ margin: 0 0 16px; }
.error-page .lede{ max-width: 46ch; margin: 0 auto 6px; }
.error-page .hero-cta{ justify-content:center; margin-top: 28px; }

/* contact / digital business card */
.vcard-page{ padding: 90px 0; }
.vcard-card{
  max-width: 400px; margin: 0 auto; text-align: center;
  background: var(--bg-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 44px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.vcard-info, .vcard-action{
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.vcard-portrait{
  width: 88px; height: 88px; margin: 0 0 20px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.vcard-portrait img{
  width:100%; height:100%; object-fit:cover; object-position: top; display:block;
  filter: grayscale(0.08) contrast(1.02);
}
.vcard-card .name{ font-size: 24px; margin-bottom: 6px; }
.vcard-role{ color: var(--text-muted); font-size: 14px; margin: 0 0 4px; }
.vcard-email{ font-size: 14px; margin: 0; }
.vcard-email a{ color: var(--accent); }
.vcard-qr{
  background: #fff; padding: 14px; border-radius: var(--radius);
  display: inline-block; margin: 0 0 20px; line-height: 0;
}
.vcard-qr img{ display:block; width: 176px; height: 176px; }
.vcard-buttons{ display:flex; flex-direction:column; gap:10px; width:100%; }
.vcard-card .btn{ width: 100%; justify-content: center; }

@media (orientation: landscape){
  .vcard-card{ max-width: 620px; flex-direction: row; align-items: center; gap: 36px; }
  .vcard-info, .vcard-action{ flex: 1; }
}

.legal-content{ max-width: 640px; }
.legal-content h2{ font-size: 18px; margin: 32px 0 12px; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content h3{ font-size: 15.5px; margin: 24px 0 10px; color: var(--text); }
.legal-content p{ margin:0 0 16px; color: var(--text-muted); font-size:15.5px; line-height:1.7; }
.legal-content a{ color: var(--accent); }
.legal-content ul, .legal-content ol{ margin:0 0 16px; padding-left:1.25em; color: var(--text-muted); font-size:15.5px; line-height:1.7; }
.legal-content li{ margin-bottom:6px; }
.legal-content strong{ color: var(--text); font-weight:500; }
.legal-content .eyebrow{ margin: 0 0 24px; }

.pullquote{
  margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent-soft);
  font-family: "EB Garamond", Georgia, serif; font-style: italic; font-size: 18px;
  color: var(--text); line-height:1.5;
}

.glossary{ margin: 0 0 16px; }
.glossary dt{ color: var(--text); font-weight:500; font-size:15px; margin-top:14px; }
.glossary dd{ margin: 2px 0 0; color: var(--text-muted); font-size:14.5px; line-height:1.6; }

.footnotes{ margin: 8px 0 0; padding-left:1.25em; color: var(--text-muted); font-size:13px; line-height:1.7; }
.footnotes li{ margin-bottom:6px; }
.footnotes li:target{ color: var(--text); }
sup.fnref a{ color: var(--accent); text-decoration:none; padding:0 1px; }

.concept-figure{ display:flex; justify-content:center; margin: 20px 0 26px; color: var(--accent); }
.concept-figure svg{ width: 110px; height: auto; overflow:visible; }
.concept-figure.hero-figure{ margin: 8px 0 26px; }
.concept-figure.hero-figure svg{ width: 160px; }

.principles-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.principle{ padding-top: 18px; border-top: 1px solid var(--hairline); }
.principle .num{ font-size:12px; color: var(--accent); letter-spacing:.08em; margin-bottom:12px; display:block; }
.principle h3{ font-size: 16px; margin-bottom: 8px; }
.principle p{ font-size: 14px; color: var(--text-muted); margin:0; }

.focus-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.focus-card{
  background: var(--bg-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 0 0 24px; overflow:hidden;
}
.focus-card .card-body{ padding: 22px 24px 0; }
.focus-card .num{ font-size:12px; color: var(--accent); letter-spacing:.08em; margin-bottom:14px; display:block; }
.focus-card h3{ font-size: 17px; margin-bottom: 10px; }
.focus-card p{ font-size: 14px; color: var(--text-muted); margin:0; }

/* media treatment — trial: near-grayscale with slight saturation instead of full grayscale */
.media{ position:relative; overflow:hidden; background: var(--bg-raised); }
.media img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: grayscale(0.82) contrast(1.08) saturate(1.1);
  transition: filter .5s ease, transform .6s ease;
}
.media::before{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(160deg, var(--bg) -15%, transparent 55%);
  opacity:.35;
}
.focus-card:hover .card-media img{ transform: scale(1.045); }
.project:hover .project-media img{ transform: scale(1.08); }

.card-media{ aspect-ratio: 16/10; }

.project{
  display:grid; grid-template-columns: 1fr 2.1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--hairline);
}
.project:first-child{ border-top:none; padding-top:0; }
.project-head{ display:flex; align-items:center; gap:14px; }
.project-media{ width:52px; height:52px; border-radius: var(--radius); flex-shrink:0; }
.project-name{ display:flex; align-items:center; gap:10px; font-size:18px; }
.status{
  font-size: 10px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--accent); border:1px solid var(--accent-soft); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 20px; white-space:nowrap;
}
.project-status{ margin: 0 0 8px; }
.project-desc{ color: var(--text-muted); font-size: 14.5px; margin: 0 0 12px; }
.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size: 11.5px; color: var(--text-muted); border: 1px solid var(--hairline);
  padding: 3px 9px; border-radius: 20px;
}
.project-links{ margin: 12px 0 0; font-size: 13.5px; }
.section-more{ margin: 28px 0 0; font-size: 14.5px; }

.timeline{ list-style:none; margin:0; padding:0; }
.timeline li{
  display:grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--hairline);
}
.timeline li:first-child{ border-top:none; padding-top:0; }
.tl-year{ color: var(--accent); font-size: 13px; letter-spacing:.03em; }
.tl-body strong{ display:block; font-size:15.5px; font-weight:500; margin-bottom:4px; }
.tl-body span{ color: var(--text-muted); font-size: 14px; }

.avail-topics{ display:flex; flex-wrap:wrap; gap:10px; margin: 26px 0 34px; }
.avail-topics span{
  font-size: 13px; color: var(--text); background: var(--bg-raised);
  border: 1px solid var(--hairline); padding: 7px 14px; border-radius: 20px;
}

footer{ border-top: 1px solid var(--hairline); padding: 32px 0; }
footer .wrap{ display:flex; flex-direction:column; gap:14px; }
footer p{ margin:0; font-size:12.5px; color: var(--text-muted); }
footer a{ color: var(--text-muted); }
footer a:hover{ color: var(--accent); }

.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }

.footer-social{ display:flex; align-items:center; gap:14px; flex:0 0 auto; }
.social-link{ display:inline-flex; color: var(--text-muted); }
.social-link svg{ display:block; width:18px; height:18px; fill: currentColor; transition: color .15s ease; }
.social-link:hover{ color: var(--accent); }

@media (max-width: 760px){
  .hero{ padding-top: 48px; }
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-portrait{ order:-1; max-width: 260px; aspect-ratio: 3/4; }
  .about-grid{ grid-template-columns: 1fr; }
  .focus-grid{ grid-template-columns: 1fr; }
  .principles-grid{ grid-template-columns: 1fr; gap: 24px; }
  .project{ grid-template-columns: 1fr; gap:10px; }
  .site-nav a:not(.controls a){ display:none; }
  .timeline li{ grid-template-columns: 1fr; gap:4px; }
}
