@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #f2eee4;
  --paper-deep: #ebe5d8;
  --ink: #111314;
  --muted: #68655d;
  --line: #d8d0bf;
  --blue: #072d78;
  --green: #16a44a;
  --max: 1200px;
  --header-h: 68px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 228, .96);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand-copy { min-width: 0; }
.brand-name { font-size: 14px; font-weight: 600; line-height: 1.1; }
.brand-role { margin-top: 3px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.nav { display: flex; justify-content: center; gap: 30px; }
.nav a { position: relative; font-size: 14px; color: var(--muted); padding: 22px 0 21px; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 15px; height: 1px; background: var(--ink); transition: right .2s ease; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.lang-switch, .menu-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.lang-switch { height: 34px; min-width: 50px; font-family: var(--mono); font-size: 10px; }
.menu-toggle { display: none; width: 40px; height: 34px; }
.menu-toggle span { display: block; width: 16px; height: 1px; background: var(--ink); margin: 4px auto; }
.button, .button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button { background: transparent; }
.button-dark { background: var(--ink); color: var(--paper); }
.button:hover, .button-dark:hover { transform: translateY(-1px); }

main { overflow: hidden; }
.page-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding: 72px 0 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow, .micro { font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; color: var(--muted); }
.eyebrow { margin-bottom: 26px; }
.hero h1, .page-head h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
}
.hero-lead, .page-head .lead { max-width: 720px; margin: 28px 0 0; color: #5f5b53; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-visual { position: relative; min-height: 580px; display: flex; align-items: flex-end; justify-content: center; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 8% 8% 10%;
  border: 1px solid var(--line);
  border-radius: 48% 52% 42% 58% / 46% 42% 58% 54%;
  transform: rotate(-7deg);
}
.hero-portrait { position: relative; width: min(100%, 570px); margin-left: 8%; filter: saturate(.95); }
.hero-stamp {
  position: absolute;
  right: 2%;
  bottom: 6%;
  width: 130px;
  height: 130px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(242,238,228,.92);
}
.hero-stamp::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.hero-stamp span { position: relative; z-index: 1; text-align: center; font-family: var(--mono); font-size: 9px; line-height: 1.4; letter-spacing: .12em; }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.section-head h2, .page-head h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--paper);
  padding: 30px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .2s ease;
}
.card:hover { background: #f7f3ea; }
.card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.card-title { margin: 26px 0 14px; font-size: 26px; font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.card p { margin: 0; max-width: 560px; color: var(--muted); }
.card-tech { margin-top: 18px; color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.card-link { margin-top: 24px; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.accent-bar { width: 46px; height: 2px; background: var(--blue); }
.accent-bar.green { background: var(--green); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split-panel { background: var(--paper); padding: 34px; min-height: 250px; }
.split-panel + .split-panel { border-left: 1px solid var(--line); }
.split-panel h3 { margin: 14px 0 14px; font-size: 28px; line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.split-panel p { margin: 0; color: var(--muted); }

.page-head { padding: 90px 0 70px; }
.page-head .lead { max-width: 800px; }
.stack-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { border: 1px solid var(--line); padding: 7px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }

.about-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.profile-panel { background: var(--paper); padding: 34px; }
.profile-name { margin: 10px 0 8px; font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.profile-meta { color: var(--muted); margin: 0; }
.info-row { padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; }
.info-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.info-value { margin-top: 5px; font-size: 15px; }
.experience-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.experience { background: var(--paper); padding: 30px; min-height: 230px; }
.experience .date { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.experience h3 { margin: 30px 0 12px; font-size: 23px; line-height: 1.13; font-weight: 500; }
.experience p { margin: 0; color: var(--muted); }
.service-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: 20px 24px; display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: 18px; }
.service-num { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.service-text { font-size: 17px; }
.note { border: 1px solid var(--line); padding: 34px; margin-top: 1px; background: var(--paper-deep); }
.note h3 { margin: 10px 0 10px; font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.note p { max-width: 720px; margin: 0; color: var(--muted); }

.project-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project { background: var(--paper); padding: 34px; display: grid; grid-template-columns: 170px 1fr auto; gap: 28px; align-items: start; }
.project + .project { border-top: 1px solid var(--line); }
.project-index { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.project h3 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.project .type { margin: 9px 0 16px; font-family: var(--mono); font-size: 10px; color: var(--blue); letter-spacing: .1em; }
.project p { margin: 0; color: var(--muted); max-width: 720px; }
.project-actions { justify-self: end; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1px; }
.video-card { background: var(--paper); padding: 30px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.video-card h3 { margin: 24px 0 12px; font-size: 25px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.video-card p { margin: 0; color: var(--muted); }
.video-card .type { margin-top: 12px; font-family: var(--mono); font-size: 10px; color: var(--green); text-transform: uppercase; letter-spacing: .09em; }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }

.empty-state { border: 1px solid var(--line); padding: 54px; background: var(--paper-deep); position: relative; }
.empty-state::after { content: ''; position: absolute; width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 50%; right: 26px; top: 26px; }
.empty-state h2 { margin: 12px 0; font-size: clamp(32px, 4vw, 48px); max-width: 680px; line-height: 1.05; font-weight: 500; letter-spacing: -.04em; }
.empty-state p { max-width: 670px; margin: 0; color: var(--muted); }
.empty-state .button-dark { margin-top: 24px; }
.guide-preview { margin-top: 1px; border: 1px solid var(--line); padding: 34px; }
.guide-preview h3 { margin: 0 0 10px; font-size: 24px; font-weight: 500; }
.guide-preview p { margin: 0; max-width: 720px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-panel { background: var(--paper); padding: 34px; }
.contact-detail { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-detail:first-child { border-top: 0; }
.contact-detail h3 { margin: 5px 0 0; font-size: 21px; font-weight: 500; }
.contact-detail a { text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social { border: 1px solid var(--line); padding: 8px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; transition: background .18s ease; }
.social:hover { background: var(--paper-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: transparent; padding: 12px 13px; outline: none; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 180px; resize: vertical; }
.form-actions { margin-top: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.form-note { margin: 0; max-width: 520px; color: var(--muted); font-size: 12px; }

.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guide-item { background: var(--paper); padding: 28px; min-height: 180px; }
.guide-item .num { font-family: var(--mono); color: var(--muted); font-size: 10px; }
.guide-item h3 { margin: 22px 0 9px; font-size: 20px; line-height: 1.12; font-weight: 500; }
.guide-item p { margin: 0; color: var(--muted); }
.footer-cta { border-top: 1px solid var(--line); padding: 80px 0 44px; }
.footer-cta-inner { border: 1px solid var(--line); padding: 42px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; background: var(--paper-deep); }
.footer-cta h2 { margin: 0 0 12px; max-width: 660px; font-size: clamp(34px, 4.6vw, 62px); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
.footer-cta p { margin: 0; max-width: 620px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 25px 0 38px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--ink); }

.notice { padding: 12px 14px; margin: 14px 0 0; border-left: 2px solid var(--green); color: var(--muted); font-size: 13px; background: rgba(22,164,74,.05); }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { position: absolute; left: 20px; right: 20px; top: calc(var(--header-h) + 8px); padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); display: none; flex-direction: column; gap: 0; box-shadow: 0 15px 30px rgba(0,0,0,.05); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a::after { bottom: 7px; }
  .header-meta { display: none; }
  .menu-toggle { display: block; }
  .header-actions { gap: 8px; }
  .header-actions .button-dark { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; order: -1; max-width: 720px; margin: 0 auto; width: 100%; }
  .hero-portrait { margin-left: 0; }
  .hero-stamp { right: 4%; }
  .section-head, .about-profile, .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-panel + .split-panel { border-left: 0; border-top: 1px solid var(--line); }
  .project { grid-template-columns: 70px 1fr; }
  .project-actions { grid-column: 2; justify-self: start; }
  .footer-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .page-shell, .header-inner { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 50px 0 64px; }
  .hero h1, .page-head h1 { font-size: clamp(38px, 11vw, 58px); }
  .hero-lead, .page-head .lead { font-size: 16px; }
  .hero-visual { min-height: 380px; }
  .hero-stamp { width: 96px; height: 96px; bottom: 5%; }
  .card-grid, .experience-list, .guide-list { grid-template-columns: 1fr; }
  .card, .experience, .guide-item { min-height: auto; }
  .project { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .project-actions { grid-column: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-cta { padding-top: 62px; }
  .footer-cta-inner { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
