:root {
  --paper: #f3eee5;
  --paper-2: #ebe4d8;
  --ink: #24221f;
  --muted: #6f6a62;
  --line: rgba(36, 34, 31, 0.18);
  --accent: #c15f3c;
  --card: rgba(255, 252, 247, 0.52);
  --max: 1440px;
  --pad: clamp(22px, 4.5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 8%, rgba(193, 95, 60, .10), transparent 24%),
              radial-gradient(circle at 4% 82%, rgba(100, 86, 65, .08), transparent 27%);
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.section-pad { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: -.04em;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.dot { color: var(--accent); font-size: 9px; transform: translateY(-1px); }
.nav { display: flex; gap: clamp(18px, 3vw, 38px); font-size: 14px; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--ink); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }

.hero { min-height: calc(100vh - 88px); padding-top: clamp(88px, 13vh, 180px); padding-bottom: 72px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-kicker, .eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-title {
  margin: 34px 0 0;
  max-width: 1200px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(54px, 8.2vw, 124px);
  line-height: .94;
  letter-spacing: -.055em;
}
.hero-title em { color: var(--accent); font-weight: 400; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(70px, 11vh, 145px); }
.hero-copy { max-width: 560px; margin: 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.7; color: #4f4b45; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.round-cta {
  width: 124px; height: 124px; border-radius: 999px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 12px; text-align: center; flex: 0 0 auto; transition: background .3s ease, color .3s ease, transform .3s ease;
}
.round-cta span { grid-area: 1/1; }
.round-cta .arrow { opacity: 0; transform: translateY(-8px); font-size: 25px; transition: .3s ease; }
.round-cta:hover { background: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.round-cta:hover span:first-child { opacity: 0; }
.round-cta:hover .arrow { opacity: 1; transform: translateY(0); }

.statement { padding-top: clamp(110px, 18vw, 260px); padding-bottom: clamp(110px, 18vw, 260px); }
.statement p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.045em; }
.statement span { color: var(--muted); }

.work { padding-top: 40px; padding-bottom: clamp(100px, 13vw, 190px); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(42px, 5vw, 76px); letter-spacing: -.045em; }
.section-heading p { grid-column: 2; max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.7; margin: -2px 0 0; }
.projects { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project { min-height: 560px; padding: clamp(22px, 3vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(255,255,255,.08); transition: background .35s ease; overflow: hidden; }
.project-large { grid-column: 1 / -1; min-height: 680px; }
.project:hover { background: rgba(255,255,255,.30); }
.project-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.project-visual { margin: 38px 0; flex: 1; min-height: 250px; display: grid; place-items: center; position: relative; }
.project-large .project-visual { min-height: 380px; }
.project-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.project-copy h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 8px; font-size: clamp(31px, 3vw, 48px); font-weight: 400; letter-spacing: -.035em; }
.project-copy p { margin: 0; max-width: 610px; color: var(--muted); line-height: 1.55; }
.project-arrow { font-size: 28px; transform: translate(0, 0); transition: transform .25s ease; }
.project:hover .project-arrow { transform: translate(5px, -5px); }

.curve-visual svg { width: min(100%, 900px); }
.gridline { fill: none; stroke: rgba(36,34,31,.11); stroke-width: 1; }
.curve { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 950; stroke-dashoffset: 950; transition: stroke-dashoffset 1.2s ease; }
.project:hover .curve { stroke-dashoffset: 0; }
.points circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.project:hover .points circle { transform: scale(1.18); }

.radar-visual { min-height: 310px; }
.radar-ring { position: absolute; border: 1px solid rgba(36,34,31,.22); border-radius: 50%; }
.ring-1{width:110px;height:110px}.ring-2{width:200px;height:200px}.ring-3{width:290px;height:290px}
.radar-line { width: 145px; height: 1px; background: var(--accent); position: absolute; transform-origin: left center; left: 50%; animation: radar 7s linear infinite; }
.radar-visual i { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(36,34,31,.06); }
@keyframes radar { to { transform: rotate(360deg); } }

.plate-visual { grid-template-columns: repeat(12, 1fr); gap: 7px; padding: 20px; }
.plate-visual i { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(36,34,31,.22); transition: .2s ease; }
.plate-visual i.active { background: var(--accent); border-color: var(--accent); }
.project:hover .plate-visual i:nth-child(5n+2) { transform: scale(.72); }

.balance-visual { align-content: center; }
.balance-scale { width: 82%; display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; align-items: end; height: 190px; border-bottom: 1px solid var(--ink); }
.balance-scale span { background: var(--ink); opacity: .78; height: var(--h, 60%); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.balance-scale span:nth-child(1){--h:86%}.balance-scale span:nth-child(2){--h:62%}.balance-scale span:nth-child(3){--h:46%}.balance-scale span:nth-child(4){--h:76%}.balance-scale span:nth-child(5){--h:54%}
.project:hover .balance-scale span { height: 58%; background: var(--accent); }
.balance-labels { width: 82%; display:flex;justify-content:space-between;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-top:10px; }

.recist-visual { align-content: center; gap: 23px; padding: 20px 6%; }
.recist-row { width: 100%; display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.recist-row b { display:block; height: 10px; width: var(--w); background: var(--ink); transition: width .45s ease; }
.project:hover .recist-row:nth-child(2) b { width: 50%; }
.recist-badge { position:absolute; right:12%; bottom:20%; width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--paper);font-family:Georgia,serif;font-size:20px; }

.all-work { padding-top: 32px; display: flex; justify-content: flex-end; }
.all-work a { border-bottom: 1px solid var(--ink); padding-bottom: 6px; font-size: 14px; }

.about { padding-top: clamp(100px, 14vw, 190px); padding-bottom: clamp(100px, 14vw, 190px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 130px); }
.about .section-heading { display: block; }
.about .section-heading h2 { margin-top: 34px; }
.about-copy { padding-top: 1px; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-copy .about-lead { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: clamp(27px, 3vw, 42px); line-height: 1.23; letter-spacing: -.025em; margin-top: 0; }
.profile-card { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 52px; padding: 18px 0; display: grid; grid-template-columns: 54px 1fr auto; gap: 15px; align-items: center; }
.profile-card img { width: 54px; height: 54px; border-radius: 50%; background: var(--paper-2); object-fit: cover; }
.profile-card strong, .profile-card span { display: block; }
.profile-card strong { font-size: 14px; margin-bottom: 4px; }
.profile-card span, .profile-card a { font-size: 12px; color: var(--muted); }

.closing { padding-top: clamp(100px, 15vw, 220px); padding-bottom: clamp(100px, 15vw, 220px); text-align: center; }
.closing p { color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.closing h2 { margin: 24px auto 44px; max-width: 1000px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: .98; letter-spacing: -.05em; }
.closing a { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 7px; }
.footer { padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 100px; }
  .hero-bottom { align-items: flex-start; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading p { grid-column: 1; }
  .projects { grid-template-columns: 1fr; }
  .project-large { grid-column: auto; min-height: 600px; }
  .project { min-height: 530px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding-top: 21px; }
  .nav a:not(:last-child) { display: none; }
  .hero-title { font-size: clamp(47px, 14vw, 74px); }
  .hero-title br { display: none; }
  .hero-bottom { flex-direction: column; }
  .round-cta { width: 92px; height: 92px; }
  .statement p { font-size: 12.5vw; }
  .projects { margin-top: 48px; }
  .project, .project-large { min-height: 500px; }
  .project-large .project-visual { min-height: 260px; }
  .project-visual { min-height: 235px; }
  .ring-1{width:85px;height:85px}.ring-2{width:155px;height:155px}.ring-3{width:220px;height:220px}
  .radar-line { width: 110px; }
  .plate-visual { gap: 4px; padding: 10px; }
  .profile-card { grid-template-columns: 48px 1fr; }
  .profile-card img { width: 48px; height: 48px; }
  .profile-card > a { grid-column: 2; }
  .footer { gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Repository archive — dense information without changing the featured-project composition. */
.repo-archive { margin-top: clamp(82px, 10vw, 140px); }
.archive-head {
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
}
.archive-head h3 {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -.045em;
}
.archive-head p {
  justify-self: end;
  max-width: 420px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.repo-list { border-top: 1px solid var(--line); }
.repo-row {
  min-height: 132px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 2fr) minmax(120px, .58fr) minmax(145px, .66fr) 28px;
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
  padding: 24px 0 22px;
  transition: padding .3s ease, background .3s ease;
}
.repo-row:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,255,255,.24); }
.repo-index, .repo-category, .repo-meta {
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.repo-main { min-width: 0; }
.repo-name-line { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.repo-name-line strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  letter-spacing: -.025em;
}
.repo-name-line small {
  color: var(--accent);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.repo-description {
  display: block;
  max-width: 760px;
  margin-top: 7px;
  color: #56514a;
  font-size: 13px;
  line-height: 1.62;
}
.repo-tags {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .035em;
}
.repo-tags i { padding: 0 4px; font-style: normal; color: rgba(36,34,31,.36); }
.repo-open { justify-self: end; font-size: 18px; transition: transform .25s ease; }
.repo-row:hover .repo-open { transform: translate(4px, -4px); }

@media (max-width: 900px) {
  .archive-head { grid-template-columns: 1fr; }
  .archive-head p { justify-self: start; text-align: left; }
  .repo-row { grid-template-columns: 36px minmax(0, 1fr) 130px 22px; }
  .repo-category { display: none; }
}

@media (max-width: 620px) {
  .repo-archive { margin-top: 72px; }
  .repo-row {
    min-height: 0;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 20px 0;
  }
  .repo-row:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .repo-meta { grid-column: 2; grid-row: 2; padding-top: 0; }
  .repo-open { grid-column: 3; grid-row: 1; }
  .repo-tags { margin-top: 8px; }
  .repo-description { font-size: 12.5px; }
}
