/* ============================================================
   Enzo LE BLOAS — 縁
   Esthétique : washi (papier japonais) & sumi (encre)
   Codes : ma (間) · tategaki (縦書き) · hanko · mincho
   ============================================================ */

/* ----------  Couleurs traditionnelles (伝統色)  ---------- */
:root {
  --washi: #f4f0e6;        /* 生成り — papier */
  --washi-2: #ece5d4;      /* panneau plus profond */
  --washi-edge: #ded4bd;
  --sumi: #1c1b16;         /* 墨 — encre */
  --sumi-2: #45423a;
  --sumi-3: #797568;       /* texte atténué */
  --shu: #c8362a;          /* 朱 — vermillon (sceau) */
  --shu-deep: #a72a20;
  --ai: #284b6e;           /* 藍 — indigo */
  --kin: #9c7b33;          /* 金 — or, rare */
  --line: rgba(28, 27, 22, 0.16);
  --line-soft: rgba(28, 27, 22, 0.09);

  --mincho: "Shippori Mincho", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", system-ui, sans-serif;

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

/* ----------  Thème nuit (sumi sombre)  ---------- */
[data-theme="night"] {
  --washi: #15140f;
  --washi-2: #1f1c15;
  --washi-edge: #2c2920;
  --sumi: #ece7d8;
  --sumi-2: #c4bdac;
  --sumi-3: #8d8676;
  --shu: #e0573f;
  --shu-deep: #c8402a;
  --ai: #6f9fce;
  --kin: #c8a85a;
  --line: rgba(236, 231, 216, 0.16);
  --line-soft: rgba(236, 231, 216, 0.08);
}
[data-theme="night"] .backdrop,
[data-theme="night"] body::before {
  background: radial-gradient(80% 60% at 50% -10%, #211d16 0%, transparent 60%);
}
[data-theme="night"] .paper-grain { opacity: 0.25; }
/* Les images encre passent en « screen » : l'encre claire rayonne sur le fond sombre */
[data-theme="night"] .about__photo img,
[data-theme="night"] .work__media img {
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.1) brightness(1.12);
}
[data-theme="night"] .topbar.scrolled {
  background: rgba(21, 20, 15, 0.82);
}

/* ----------  Reset  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--gothic);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--sumi);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.svg-defs { position: absolute; width: 0; height: 0; }
.ic { width: 1.15rem; height: 1.15rem; flex: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 6vw, 4rem);
}

.shu { color: var(--shu); }
.muted { color: var(--sumi-3); }

::selection { background: rgba(200, 54, 42, 0.22); color: var(--sumi); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--washi); }
::-webkit-scrollbar-thumb { background: var(--sumi-2); border: 3px solid var(--washi); border-radius: 0; }

/* ============================================================
   Décor : papier + filigrane
   ============================================================ */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
/* halo doux pour réchauffer le papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(255, 252, 244, 0.7), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(222, 212, 189, 0.45), transparent 60%);
}

.watermark {
  position: fixed;
  top: 50%;
  right: -3vw;
  transform: translateY(-50%);
  z-index: -1;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 78vh;
  line-height: 1;
  color: var(--sumi);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   Sceau hanko (判子)
   ============================================================ */
.seal {
  display: inline-grid;
  place-items: center;
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--shu);
  border: 2.5px solid var(--shu);
  border-radius: 5px;
  line-height: 1;
  filter: url(#ink-rough);
}
.seal--sm {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.35rem;
  border-width: 2px;
}
.seal--stamp {
  width: 4.6rem;
  height: 4.6rem;
  font-size: 2.6rem;
  border-width: 3px;
  background: rgba(200, 54, 42, 0.05);
}

/* ============================================================
   Barre supérieure
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.4rem, 6vw, 4rem);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(244, 240, 230, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__name {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.topnav { display: flex; align-items: center; gap: 0.4rem; }
.topnav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-family: var(--mincho);
  font-size: 0.98rem;
  color: var(--sumi-2);
  transition: color 0.25s;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.topnav a:hover, .topnav a.is-active { color: var(--sumi); }
.topnav a:hover::after, .topnav a.is-active::after { transform: scaleX(1); }

.topnav a.topnav__cta {
  margin-left: 0.4rem;
  padding: 0.5rem 1.1rem;
  color: var(--sumi);
  border: 1.5px solid var(--sumi);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.topnav a.topnav__cta::after { display: none; }
.topnav a.topnav__cta:hover { background: var(--sumi); color: var(--washi); }

.topnav__toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.topnav__toggle span { width: 24px; height: 2px; background: var(--sumi); transition: 0.3s var(--ease); }
.topnav__close { display: none; }

.topbar__actions { display: flex; align-items: center; gap: 0.4rem; }
.lang-toggle {
  display: grid;
  place-items: center;
  min-width: 2.4rem; height: 2.4rem;
  padding: 0 0.5rem;
  font-family: var(--mincho);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sumi-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.lang-toggle:hover { color: var(--shu); border-color: var(--shu); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  color: var(--sumi-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.theme-toggle:hover { color: var(--shu); border-color: var(--shu); }
.theme-toggle .ic { width: 1.2rem; height: 1.2rem; }
.theme-toggle .ic--moon { display: none; }
[data-theme="night"] .theme-toggle .ic--sun { display: none; }
[data-theme="night"] .theme-toggle .ic--moon { display: block; }

/* ============================================================
   Rail vertical (kanji)
   ============================================================ */
.rail {
  position: fixed;
  top: 50%;
  right: clamp(0.8rem, 2vw, 1.6rem);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.rail::before {
  content: "";
  position: absolute;
  top: -1.2rem; bottom: -1.2rem;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.rail__item {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.rail__item::after {
  content: attr(data-label);
  position: absolute;
  right: 1.7rem; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--mincho);
  font-size: 0.85rem;
  color: var(--sumi);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.rail__item:hover { background: var(--sumi-3); }
.rail__item:hover::after { opacity: 1; }
.rail__item.is-active { background: var(--shu); transform: scale(1.4); }

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--mincho);
  font-size: 1rem;
  font-weight: 500;
  border: 1.5px solid var(--sumi);
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s, transform 0.25s, border-color 0.3s;
}
.btn .ic { transition: transform 0.25s var(--ease); }
.btn span[lang="ja"] { font-size: 0.92em; }
.btn--ink { background: var(--sumi); color: var(--washi); }
.btn--ink:hover { background: var(--shu); border-color: var(--shu); transform: translateY(-3px); }
.btn--ink:hover .ic { transform: translateX(4px); }
.btn--line { color: var(--sumi); }
.btn--line:hover { background: var(--sumi); color: var(--washi); transform: translateY(-3px); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mincho);
  font-size: 0.88rem;
  color: var(--sumi-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hero__badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--shu);
  box-shadow: 0 0 0 0 rgba(200, 54, 42, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 54, 42, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(200, 54, 42, 0); }
}

.hero__title {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.hero__role {
  font-family: var(--mincho);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--sumi-2);
  margin-bottom: 1.3rem;
}
.hero__role .sep { color: var(--shu); margin: 0 0.4rem; }

.hero__pitch {
  max-width: 34rem;
  color: var(--sumi-2);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.hero__avail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mincho);
  font-size: 0.95rem;
  color: var(--sumi-2);
  margin-bottom: 2.2rem;
}
.hero__avail .ic { width: 1.1rem; height: 1.1rem; color: var(--shu); flex: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* colonne verticale tategaki */
.hero__aside {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding-top: 1rem;
}
.vtext-fr {
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.12em;
  line-height: 1.55;
  color: var(--sumi);
  max-height: 64vh;
}
.vtext-fr .shu { color: var(--shu); font-weight: 800; }

.hero__scroll {
  position: absolute;
  left: clamp(1.4rem, 6vw, 4rem);
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mincho);
  font-size: 0.9rem;
  color: var(--sumi-3);
}
.hero__scroll-label {
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
}
.hero__scroll-line {
  width: 1px; height: 4rem;
  background: linear-gradient(var(--sumi-3), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--shu);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ============================================================
   Séparateur pinceau
   ============================================================ */
.brush-sep {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.brush-sep span {
  display: block;
  width: min(62%, 640px);
  height: 8px;
  background: var(--sumi);
  border-radius: 50%;
  filter: url(#ink-edge);
  transform-origin: left center;
  opacity: 0.9;
}
.js .brush-sep span { transform: scaleX(0); }
.js .brush-sep.drawn span { transform: scaleX(1); transition: transform 1s var(--ease); }

/* ============================================================
   Sections — en-têtes
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.shead {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.shead__num {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1;
  color: var(--shu);
  padding-top: 0.2em;
  letter-spacing: -0.02em;
}
.shead__kicker {
  display: block;
  font-family: var(--gothic);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sumi-3);
  margin-bottom: 0.4rem;
}
.shead__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ============================================================
   À propos
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about__media { position: relative; margin-top: 0.4rem; }
.about__photo {
  position: relative;
  padding: 0.7rem;
  background: var(--washi);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--washi), 14px 14px 0 -2px var(--washi-2),
    16px 16px 0 -2px var(--line);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* rendu sumi-e : encre sur papier */
  filter: grayscale(1) contrast(1.12) brightness(1.02) sepia(0.28) saturate(0.7);
  mix-blend-mode: multiply;
  transition: filter 0.6s var(--ease);
}
.about__media:hover img { filter: grayscale(0.55) contrast(1.06) sepia(0.1); }
.seal--stamp {
  position: absolute;
  right: -1.3rem; bottom: -1.3rem;
  transform: rotate(-6deg);
  background: var(--washi);
}

.lead {
  font-family: var(--mincho);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.lead em { font-style: italic; color: var(--sumi-2); }
.about__body p { color: var(--sumi-2); margin-bottom: 1.3rem; max-width: 40rem; }
.about__body strong { color: var(--sumi); font-weight: 700; }

.skills {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2rem 3.5rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.skills__h {
  font-family: var(--mincho);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sumi-3);
  margin-bottom: 1rem;
}
.skills__h span[lang="ja"] { color: var(--shu); margin-right: 0.45rem; font-size: 1.15em; }
.skills li {
  font-family: var(--mincho);
  font-size: 1.02rem;
  padding: 0.18rem 0;
  color: var(--sumi);
}

/* ============================================================
   Passions
   ============================================================ */
.passions__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.passion {
  position: relative;
  padding: 2.6rem 2rem 2.6rem 0;
  margin-right: 2rem;
}
.passion:not(:last-child) { border-right: 1px solid var(--line); padding-right: 2rem; }
.passion__big {
  display: block;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--sumi);
  opacity: 0.16;
  transition: opacity 0.4s, color 0.4s;
}
.passion:hover .passion__big { opacity: 1; color: var(--shu); }
.passion__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0.8rem 0 0.8rem;
}
.passion__text { color: var(--sumi-2); font-size: 0.98rem; line-height: 1.75; }

/* ============================================================
   Projets / 作品
   ============================================================ */
.works__list { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.work {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.work--rev .work__media { order: 2; }

.work__no {
  position: absolute;
  top: -2.4rem; left: 0;
  font-family: var(--mincho);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--sumi-3);
}
.work__no::before {
  content: "";
  display: inline-block;
  width: 1.6rem; height: 1px;
  background: var(--shu);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.work__media {
  padding: 0.7rem;
  background: var(--washi);
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 -2px var(--washi-2), 18px 18px 0 -2px var(--line);
  overflow: hidden;
}
.work__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) sepia(0.3) saturate(0.6) brightness(1.02);
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.work:hover .work__media img { transform: scale(1.04); filter: grayscale(0.4) contrast(1.05) sepia(0.08); }
.work__media--soon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: var(--washi-2);
  border: 1.5px dashed var(--line);
  box-shadow: none;
}
.work__media--soon span {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 4.5rem;
  color: var(--sumi-3);
  opacity: 0.35;
}

.work__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.work__meta {
  font-family: var(--gothic);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sumi-3);
  margin-bottom: 0.9rem;
}
.work__text { color: var(--sumi-2); margin-bottom: 1.3rem; max-width: 34rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tags li {
  font-family: var(--mincho);
  font-size: 0.82rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--sumi-2);
}
.work__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mincho);
  color: var(--sumi);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--shu);
  transition: gap 0.25s, color 0.25s;
}
.work__link:hover { gap: 0.85rem; color: var(--shu); }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact__lead {
  font-family: var(--mincho);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 26rem;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mincho);
  font-size: 1.1rem;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 2rem;
  transition: border-color 0.3s, color 0.3s;
}
.contact__mail .ic { color: var(--shu); }
.contact__mail:hover { border-color: var(--shu); color: var(--shu); }
.contact__mail:hover .ic { color: var(--shu); }

.socials { display: flex; gap: 0.8rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--sumi-2);
  transition: background 0.3s, color 0.3s, transform 0.25s, border-color 0.3s;
}
.socials a:hover {
  background: var(--sumi);
  color: var(--washi);
  border-color: var(--sumi);
  transform: translateY(-4px);
}

/* formulaire : lignes d'encre (pas de boîtes) */
.contact__form { display: grid; gap: 1.8rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 0.6rem 0.2rem;
  font-family: var(--mincho);
  font-size: 1.05rem;
  color: var(--sumi);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { min-height: 6rem; line-height: 1.7; }
.field label {
  position: absolute;
  left: 0.2rem; top: 0.6rem;
  font-family: var(--mincho);
  font-size: 1.05rem;
  color: var(--sumi-3);
  pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s;
}
.field label span[lang="ja"] { color: var(--sumi-3); margin-left: 0.2rem; font-size: 0.85em; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--shu); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.6rem);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--shu);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer__line {
  font-family: var(--mincho);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--sumi-2);
}
.footer__trad { color: var(--sumi-3); font-size: 0.85rem; letter-spacing: 0.04em; }
.footer__copy { font-family: var(--mincho); color: var(--sumi-3); font-size: 0.9rem; }

/* ----------  Retour en haut  ---------- */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  font-family: var(--mincho);
  font-size: 1.05rem;
  color: var(--washi);
  background: var(--sumi);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--shu); transform: translateY(-3px); }
.to-top .ic { transform: rotate(-90deg); }

/* ============================================================
   Révélation "encre qui imbibe" (ink bleed)
   ============================================================ */
.js [data-ink] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(7px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.js [data-ink].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* sceau : effet "tampon" */
.js [data-stamp] { opacity: 0; transform: scale(1.5) rotate(-16deg); }
.js [data-stamp].in {
  animation: stamp 0.5s var(--ease) forwards;
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.5) rotate(-16deg); }
  60% { opacity: 1; transform: scale(0.93) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* ============================================================
   Accessibilité : lien d'évitement + focus clavier
   ============================================================ */
.skip-link {
  position: fixed;
  top: 0.6rem; left: 0.6rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  font-family: var(--mincho);
  color: var(--washi);
  background: var(--sumi);
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ============================================================
   Parcours (timeline)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 44rem;
  margin-left: 0.4rem;
  padding-left: 2.4rem;
  border-left: 1px solid var(--line);
}
.tl {
  position: relative;
  padding-bottom: 2.6rem;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: calc(-2.4rem - 6px);
  top: 0.45rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--washi);
  border: 2px solid var(--sumi-3);
}
.tl--now::before {
  border-color: var(--shu);
  background: var(--shu);
  box-shadow: 0 0 0 0 rgba(200, 54, 42, 0.45);
  animation: pulse 2.2s infinite;
}
.tl__year {
  display: inline-block;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--shu);
  margin-bottom: 0.4rem;
}
.tl__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.tl__text { color: var(--sumi-2); max-width: 38rem; }

/* ============================================================
   Ensō (円相) — cercle au pinceau qui se dessine
   ============================================================ */
.contact__intro { position: relative; }
.contact__intro > *:not(.enso) { position: relative; z-index: 1; }
.enso {
  position: absolute;
  top: -3.2rem; left: -3.4rem;
  width: clamp(15rem, 28vw, 21rem);
  height: clamp(15rem, 28vw, 21rem);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.enso circle {
  fill: none;
  stroke: var(--sumi);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.18;
  filter: url(#ink-edge);
  stroke-dasharray: 608 700;
  stroke-dashoffset: 608;
  transform: rotate(122deg);
  transform-origin: center;
}
.js .enso.drawn circle {
  transition: stroke-dashoffset 1.8s var(--ease);
  stroke-dashoffset: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .rail { display: none; }
  .watermark { font-size: 60vh; opacity: 0.03; }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .hero__scroll { display: none; }
  .about__grid { grid-template-columns: 1fr; max-width: 34rem; }
  .about__media { max-width: 19rem; }
  .passions__list { grid-template-columns: 1fr; border-top: none; }
  .passion { margin-right: 0; padding: 2rem 0; border-bottom: 1px solid var(--line); }
  .passion:not(:last-child) { border-right: none; padding-right: 0; }
  .passion__ja { opacity: 0.7; color: var(--shu); }
  .work, .work--rev .work__media { grid-template-columns: 1fr; order: 0; }
  .work__media { order: -1 !important; }
  .work__no { position: static; margin-bottom: 1rem; display: block; }
  .contact__grid { grid-template-columns: 1fr; }

  /* menu plein écran */
  .topnav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--washi);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .topnav.open { transform: translateX(0); }
  .topnav a { font-size: 1.6rem; }
  .topnav a::after { bottom: 0.1rem; }
  .topnav__toggle { display: flex; z-index: 101; }
  .topbar.menu-open .topnav__toggle { display: none; }
  .topnav__close {
    display: block;
    position: absolute;
    top: 1.5rem; right: 1.6rem;
    font-family: var(--gothic);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sumi-2);
    padding: 0.4rem 0.6rem;
  }
  .topbar.menu-open .topnav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .topnav__toggle span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .topnav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero { padding-top: 7rem; }
  .skills { grid-template-columns: 1fr; gap: 1.6rem; }
  .brand__name { font-size: 0.95rem; }
}

/* ----------  Accessibilité  ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-ink], .js [data-stamp] { opacity: 1; transform: none; filter: none; }
  .js .brush-sep span { transform: scaleX(1); }
  .hero__scroll-line::after { display: none; }
}
