/* ===== Shared layout ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: var(--track, -0.02em); }
section { max-width: 1160px; margin: 0 auto; padding: 96px 24px; }
.eyebrow { font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 22px 0 0; }
.lead.small { font-size: 18px; margin-top: 12px; }
.sechead { margin-bottom: 44px; }
.sechead h2 { font-size: clamp(32px, 4.4vw, 48px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(24px, calc((100vw - 1160px) / 2)); background: var(--navbg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--head); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--accent); color: var(--onaccent); font-size: 14px; letter-spacing: 0; }
.nav nav { display: flex; gap: 26px; align-items: center; font-weight: 500; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .navcta { color: var(--ink); border: 1.5px solid var(--line2); padding: 8px 16px; border-radius: 999px; }

/* hero */
.hero { padding-top: 120px; padding-bottom: 80px; position: relative; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); max-width: 980px; }
.hero .name { color: var(--accent); }
.heroctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: var(--r-btn); font: 600 16px var(--body); border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--onaccent); box-shadow: var(--btnshadow); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line2); }
.stats { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.stats li { padding: 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stats b { display: block; font: 700 26px var(--head); }
.stats span { color: var(--muted); font-size: 15px; }

/* projects */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .25s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--cardshadow); border-color: var(--line2); }
.shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .4s; }
.card:hover .shot img { transform: scale(1.03); }
.cbody { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cbody h3 { font-size: 22px; display: flex; justify-content: space-between; align-items: center; }
.arrow { color: var(--accent); font-size: 20px; transition: transform .2s; }
.card:hover .arrow { transform: translate(3px, -3px); }
.cbody p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.tags { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--tagbg); color: var(--tagink); }

/* about */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.pillar .pi { font-size: 30px; }
.pillar h3 { font-size: 22px; margin: 14px 0 10px; }
.pillar p { margin: 0; color: var(--muted); }

/* contact */
.contact { max-width: 820px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 32px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 400 16px var(--body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line2); border-radius: var(--r-sm); padding: 13px 15px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.form .hp { position: absolute; left: -9999px; }
.formnote { margin: 0; color: var(--muted); font-size: 15px; min-height: 1em; }

.foot { max-width: 1160px; margin: 0 auto; padding: 32px 24px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  section { padding: 72px 20px; }
  .hero { padding-top: 72px; }
  .nav nav { gap: 14px; font-size: 15px; }
  .nav nav a:not(.navcta) { display: none; }
  .stats, .pillars, .form { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* ===== Clean & minimal theme ===== */
[data-style="minimal"] {
  --bg: #ffffff; --ink: #111111; --muted: #6b6b6b; --accent: #111111; --onaccent: #fff; --panel: #fff;
  --line: #ececec; --line2: #d4d4d4; --field: #fafafa; --focus: rgba(0,0,0,.08);
  --navbg: rgba(255,255,255,.9); --tagbg: #f3f3f3; --tagink: #444;
  --head: 'Fraunces', serif; --body: 'Inter', sans-serif; --r: 6px; --r-sm: 6px; --r-btn: 6px; --track: -0.025em;
  --btnshadow: none; --cardshadow: 0 12px 30px rgba(0,0,0,.07);
}
[data-style="minimal"] .hero h1 { font-weight: 600; }
[data-style="minimal"] .hero .name { color: inherit; font-style: italic; }
[data-style="minimal"] .eyebrow { color: #8a8a8a; }
[data-style="minimal"] .stats li, [data-style="minimal"] .pillar { background: transparent; border: 0; border-top: 1px solid #111; border-radius: 0; padding-left: 0; }
[data-style="minimal"] .card { border: 0; background: transparent; }
[data-style="minimal"] .shot { border: 1px solid var(--line); border-radius: 6px; }
[data-style="minimal"] .cbody { padding: 18px 0 0; }
[data-style="minimal"] .tags li { background: transparent; border: 1px solid var(--line2); }
[data-style="minimal"] .card:hover { box-shadow: none; }
[data-style="minimal"] .form { border: 0; padding: 0; background: transparent; }
[data-style="minimal"] .pillar .pi { display: none; }
[data-style="minimal"] .pillar h3 { margin-top: 18px; }
.formnote.ok { color: #1a7f37; }
.formnote.err { color: #b42318; }
.form button:disabled { opacity: .6; cursor: wait; }
