:root {
  --black: #050505;
  --ink: #111111;
  --grey: #707070;
  --soft: #f4f4f4;
  --line: #d8d8d8;
  --white: #ffffff;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: -1;
  background-image: radial-gradient(#000 0.55px, transparent 0.55px);
  background-size: 18px 18px;
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: .75rem; }
.main-nav { display: flex; gap: 22px; font-size: .9rem; font-weight: 800; }
.main-nav a { color: var(--grey); }
.main-nav a:hover { color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; }
.section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 86px 0; }
.hero, .work-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 90px); min-height: 84vh; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-weight: 900; color: var(--grey); font-size: .76rem; margin: 0 0 16px; }
h1, h2, h3 { line-height: .95; letter-spacing: -.07em; margin: 0; }
h1 { font-size: clamp(3.8rem, 8vw, 8.1rem); max-width: 980px; }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
h3 { font-size: 1.55rem; letter-spacing: -.04em; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); max-width: 760px; color: #222; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.button { border: 1px solid var(--black); padding: 14px 22px; border-radius: 999px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.button.dark { background: var(--black); color: var(--white); }
.button.light { background: var(--white); color: var(--black); }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.social-row a { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--white); transition: .2s ease; }
.social-row a:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-2px); }
.social-row.small a { width: 46px; height: 46px; }
.icon-row i { font-size: 1.05rem; }
.hero-visual { justify-self: center; width: min(560px, 100%); }
.frame-card { background: var(--soft); border-radius: 42px; padding: 18px; border: 1px solid #ececec; }
.hero-frame img { width: 100%; height: min(72vh, 720px); min-height: 560px; object-fit: cover; object-position: center top; border-radius: 30px; filter: grayscale(6%); }
.mini-bio { display: flex; justify-content: space-between; gap: 18px; font-size: .92rem; padding: 16px 8px 0; color: var(--grey); }
.mini-bio strong { color: var(--black); }
.strip { display: flex; gap: 10px; flex-wrap: wrap; border-block: 1px solid var(--line); padding: 22px 0; }
.strip span { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 900; background: #fff; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.two-col p { font-size: 1.08rem; color: #222; }
.about-photo { margin-top: 26px; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); max-width: 360px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: grayscale(8%); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.pillar-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-grid article, .project-grid article, .blog-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.86); }
.pillar-grid article span, .project-grid article span { color: var(--grey); font-weight: 900; }
.pillar-grid p, .project-grid p { color: #3d3d3d; }
.cta { text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 42px; padding: 70px 28px; }
.cta h2 { max-width: 980px; margin: 0 auto 24px; }
.page-hero { padding-bottom: 34px; }
.page-hero .lead { max-width: 860px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 20px; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card div:not(.pattern-card) { padding: 24px; }
.blog-card h2 { font-size: 2rem; }
.text-link { font-weight: 900; border-bottom: 1px solid var(--black); }
.pattern-card {
  min-height: 250px;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06) 25%, transparent 25%) -18px 0/36px 36px,
    linear-gradient(225deg, rgba(0,0,0,.06) 25%, transparent 25%) -18px 0/36px 36px,
    linear-gradient(315deg, rgba(0,0,0,.06) 25%, transparent 25%) 0 0/36px 36px,
    linear-gradient(45deg, rgba(0,0,0,.06) 25%, #f5f5f5 25%) 0 0/36px 36px;
}
.pattern-card span { background: var(--black); color: var(--white); border-radius: 999px; padding: 10px 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.post-page { width: min(860px, calc(100% - 36px)); margin: 0 auto; padding: 76px 0; }
.post-page h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.post-meta { color: var(--grey); font-weight: 700; }
.post-pattern { border: 1px solid var(--line); border-radius: 34px; margin: 30px 0; min-height: 380px; }
.post-content { font-size: 1.14rem; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 900; }
.professional-hero h1 { font-size: clamp(2.9rem, 5.8vw, 5.8rem); max-width: 900px; }
.work-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; border-radius: 42px; filter: grayscale(10%); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud span { border: 1px solid var(--line); background: var(--soft); padding: 12px 16px; border-radius: 999px; font-weight: 800; }
.diary-grid article { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 28px; background: white; }
.diary-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.diary-table th, .diary-table td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.diary-table th { background: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.diary-table tr:last-child td { border-bottom: 0; }
.diary-table a { font-weight: 900; border-bottom: 1px solid var(--black); }
.contact-panel { background: var(--soft); border: 1px solid var(--line); border-radius: 42px; padding: 64px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-list a { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 13px 18px; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; }
.footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto 24px; padding: 56px; background: var(--black); color: var(--white); border-radius: 42px; }
.footer h2 { color: var(--white); }
.footer p { color: #cfcfcf; max-width: 700px; }
.footer .eyebrow { color: #a8a8a8; }
.footer-contact a { background: #111; border-color: #333; color: #fff; }
.tiny { font-size: .86rem; margin-top: 28px; }
.reveal { opacity: 0; transform: translateY(20px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 74px; right: 18px; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .hero, .work-hero, .two-col { grid-template-columns: 1fr; min-height: auto; }
  h1 { font-size: clamp(3.4rem, 15vw, 5.5rem); }
  .professional-hero h1 { font-size: clamp(2.8rem, 12vw, 4.7rem); }
  .pillar-grid, .blog-grid, .project-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero-frame img { height: 620px; min-height: 0; }
  .footer, .contact-panel { padding: 34px 24px; }
}
@media (max-width: 560px) {
  .mini-bio { flex-direction: column; }
  .site-header { padding-inline: 18px; }
  .hero-frame img { height: 520px; }
  .contact-list a { width: 100%; justify-content: center; }
}


/* --- Final polish: personal/professional separation, motion and blog tools --- */
.grain {
  animation: softDrift 18s linear infinite;
}
@keyframes softDrift {
  0% { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}
.site-header {
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 16px 60px rgba(0,0,0,.06);
}
.hero.landing-section {
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(42px, 7vw, 100px);
}
.hero h1 {
  font-size: clamp(3.6rem, 7.2vw, 7.1rem);
}
.hero-visual {
  width: min(660px, 100%);
}
.hero-frame img {
  height: min(76vh, 760px);
  min-height: 610px;
  object-position: center top;
}
.mini-bio span {
  text-align: right;
}
.about-me {
  align-items: center;
  padding-bottom: 72px;
}
.about-copy {
  align-self: center;
}
.pillar-grid article,
.project-grid article,
.blog-card,
.button,
.contact-list a,
.strip span {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.pillar-grid article:hover,
.project-grid article:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,.08);
  border-color: #bdbdbd;
}
.button:hover,
.contact-list a:hover,
.strip span:hover {
  transform: translateY(-2px);
}
.cta {
  margin-bottom: 46px;
}
.personal-footer {
  margin-top: 30px;
}
.personal-socials a {
  min-width: 132px;
}
.blog-tools {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr;
  gap: 14px;
  align-items: end;
}
.search-box,
.select-box {
  display: grid;
  gap: 8px;
  font-weight: 900;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--grey);
}
.search-box input,
.select-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 18px;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--black);
  background: white;
  outline: none;
}
.search-box input:focus,
.select-box select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}
.empty-state {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  font-weight: 800;
  background: var(--soft);
}
.professional-body .footer { display: none; }
.professional-header .brand-mark { background: transparent; color: var(--black); border: 1px solid var(--line); }
.professional-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--black);
  background: #fff;
}
.professional-tabs a:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.professional-hero {
  grid-template-columns: 1fr .76fr;
  min-height: 78vh;
  align-items: center;
}
.professional-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 820px;
}
.professional-actions {
  margin-bottom: 0;
}
.work-photo {
  align-self: center;
}
.work-photo img {
  max-height: 650px;
}
.contact-panel p {
  color: #333;
  max-width: 760px;
}
@media (max-width: 900px) {
  .hero.landing-section,
  .professional-hero,
  .blog-tools {
    grid-template-columns: 1fr;
  }
  .hero-frame img {
    height: 620px;
    min-height: 0;
  }
  .mini-bio span {
    text-align: left;
  }
  .professional-tabs a {
    display: block;
  }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .hero-frame img { height: 520px; }
  .personal-socials a { min-width: 0; }
}
