:root {
  --bg: #faf4ea;
  --surface: #ffffff;
  --ink: #2a2017;
  --muted: #6a5a48;
  --line: #e9dbc6;
  --brand: #a8641f;
  --brand-dark: #854d14;
  --btn: #a8641f;
  --btn-dark: #854d14;
  --accent: #d4944a;
  --accent-soft: #f6e6d0;
  --band-from: #6e4420;
  --band-to: #b27a3b;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --surface: #261d16;
    --ink: #f5ede2;
    --muted: #c9b8a2;
    --line: #3a2d22;
    --brand: #e0a05c;
    --brand-dark: #eab882;
    --accent-soft: #46331f;
    --band-from: #5a3718;
    --band-to: #a8641f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Inter", system-ui, sans-serif;
}
h1, h2, h3, .brand { font-family: "Fraunces", Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; }
h3 { font-size: 1.25rem; margin: .25rem 0 .5rem; }
a { color: var(--brand); }
section, .top, footer { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
section { padding-top: 56px; padding-bottom: 8px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--brand); }
@media (max-width: 560px) { nav a:not(.btn) { display: none; } }

.btn { display: inline-block; background: var(--btn); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--btn); }
.btn:hover { background: var(--btn-dark); border-color: var(--btn-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn.small { padding: 8px 16px; color: #fff !important; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5rem 0 0; }

.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.portrait { width: 100%; max-width: 380px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; justify-self: center; border-radius: 28px; box-shadow: 14px 14px 0 var(--accent); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 260px; }
}

.bio p { max-width: 46em; }
.section-intro { color: var(--muted); max-width: 46em; margin: 0 0 1.75rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card p { margin: 0 0 .75rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: .5rem !important; }
.tag { color: #854d14; }
.tag.app { background: #efd9bb; color: #5e3a10; }
@media (prefers-color-scheme: dark) { .tag { color: #f0cfa3; } .tag.app { background: #55391c; color: #f7dcb8; } }
.stack { font-size: .85rem; color: var(--muted); }
.link { margin-top: auto; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.shots .card { padding: 0; overflow: hidden; }
.shots .card img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); background: var(--line); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.shots .featured { grid-column: 1 / -1; flex-direction: row; }
.shots .featured img { width: 55%; object-fit: cover; border-bottom: 0; border-right: 1px solid var(--line); }
.shots .featured .card-body { justify-content: center; }
@media (max-width: 760px) {
  .shots .featured { flex-direction: column; }
  .shots .featured img { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
}
.invite { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin-top: .5rem !important; }

.contact { text-align: center; padding-top: 72px; padding-bottom: 24px; }
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact .cta-row { justify-content: center; }

footer { text-align: center; color: var(--muted); font-size: .9rem; padding-top: 40px; padding-bottom: 40px; }

.live-grid { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
@media (max-width: 520px) { .live-grid { grid-template-columns: 1fr; } }

.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 1.5rem 0 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
footer .socials { justify-content: center; margin-top: 0; margin-bottom: 1rem; }

.shots .card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shots .featured img { aspect-ratio: auto; }

.contact-form { max-width: 620px; margin: 0 auto; text-align: left; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 500; }
.form-status[data-tone="ok"] { color: #1e8a4c; }
.form-status[data-tone="err"] { color: #d1342f; }

/* Burnt-orange bands */
.band { background: linear-gradient(135deg, var(--band-from), var(--band-to)); color: #fff; }
.hero-band { padding-bottom: 56px; border-radius: 0 0 36px 36px; }
.band a { color: #fff; }
.band .brand, .band nav a { color: #fff; }
.band nav a:hover { color: #f6e4cc; }
.band .eyebrow { color: #f0d3ab; }
.band .lead { color: #f8e8d2; }
.band .btn { background: #fff; color: #854d14; border-color: #fff; }
.band .btn:hover { background: #f6e4cc; border-color: #f6e4cc; color: #5e3a10; }
.band .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.band .btn.ghost:hover { background: #fff; color: #854d14; }
.band .btn.small { color: #854d14 !important; }
.hero-band .portrait { box-shadow: 14px 14px 0 rgba(42, 32, 23, .35); }
.band .socials a { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .55); color: #fff; }
.band .socials a:hover { background: #fff; color: #854d14; border-color: #fff; }

.contact-band { margin-top: 72px; padding-bottom: 56px; }
.contact-band .contact { padding-top: 56px; }
.contact-band .section-intro { color: #f8e8d2; }
.contact-band .field label { color: #fff; }
.contact-band .field input, .contact-band .field select, .contact-band .field textarea { background: #fffaf4; color: #2a2017; border-color: transparent; }
.contact-band .field input:focus, .contact-band .field select:focus, .contact-band .field textarea:focus { outline: 3px solid #f0d3ab; }
.contact-band .form-status[data-tone="ok"], .contact-band .form-status[data-tone="err"] { color: #fff; background: rgba(42, 32, 23, .35); padding: 8px 12px; border-radius: 8px; }
.contact-band .form-status:empty { display: none; }

.card.wide { grid-column: 1 / -1; border-left: 6px solid var(--accent); }
.bio h2, #live h2, #custom h2 { border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 4px; }
footer { color: var(--muted); }

/* Live-work preview images */
.card.pv { padding: 0; overflow: hidden; }
.card.pv > img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; border-bottom: 1px solid var(--line); background: var(--line); }
.card.pv .card-body { flex: 1; }
.card.pv .link { margin-top: auto; }
.card.pv.wide { flex-direction: row; }
.card.pv.wide > img { width: 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); object-position: center 20%; }
.card.pv.wide .card-body { justify-content: center; }
@media (max-width: 760px) {
  .card.pv.wide { flex-direction: column; }
  .card.pv.wide > img { width: 100%; aspect-ratio: 2 / 1; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Live work: one stacked card per row, image on the left */
.live-grid { grid-template-columns: 1fr; }
.live-grid .card.pv { flex-direction: row; }
.live-grid .card.pv > img { width: 38%; max-width: 420px; aspect-ratio: 2 / 1; align-self: center; border-bottom: 0; border-right: 1px solid var(--line); }
.live-grid .card.pv .card-body { justify-content: center; padding: 22px 26px; }
.live-grid .card.pv .link { margin-top: .75rem; }
.live-grid .card.pv.wide > img { width: 38%; aspect-ratio: 2 / 1; object-position: center; }
@media (max-width: 760px) {
  .live-grid .card.pv, .live-grid .card.pv.wide { flex-direction: column; }
  .live-grid .card.pv > img, .live-grid .card.pv.wide > img { width: 100%; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Custom builds: two featured cards, then the rest in two columns */
.shots { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots .featured.rev { flex-direction: row-reverse; }
.shots .featured.rev img { border-right: 0; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .shots .featured.rev { flex-direction: column; } .shots .featured.rev img { border-left: 0; } }

/* Featured screenshots: show the whole image, never crop it */
.shots .featured img { width: 56%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; align-self: center; }
@media (max-width: 760px) { .shots .featured img, .shots .featured.rev img { width: 100%; align-self: stretch; } }

/* Pinned top menu */
html { scroll-padding-top: 76px; }
.site-nav { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, var(--band-from), color-mix(in srgb, var(--band-from) 55%, var(--band-to))); box-shadow: 0 2px 14px rgba(0, 0, 0, .28); }
.site-nav .brand, .site-nav nav a { color: #fff; }
.site-nav nav a:hover { color: #f6e4cc; }
.site-nav .btn.small { background: #fff; border-color: #fff; color: #854d14 !important; }
.site-nav .btn.small:hover { background: #f6e4cc; border-color: #f6e4cc; }
.hero-band { padding-top: 8px; }
@media (max-width: 560px) {
  nav { gap: 14px; font-size: .92rem; }
  nav a:not(.btn) { display: inline; }
  .site-nav .btn.small { display: none; }
  .brand { font-size: 1.05rem; }
}

/* Custom builds: one card per row, all alike, so new ones can just be added */
.shots { grid-template-columns: 1fr; }
.shots .card, .shots .featured { flex-direction: row; grid-column: auto; }
.shots .card > img, .shots .featured > img { width: 46%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; align-self: center; border-bottom: 0; border-left: 0; border-right: 1px solid var(--line); }
.shots .card-body { justify-content: center; }
@media (max-width: 760px) {
  .shots .card, .shots .featured { flex-direction: column; }
  .shots .card > img, .shots .featured > img { width: 100%; align-self: stretch; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Custom solutions: same card proportions as the live sites & apps */
.shots .card > img, .shots .featured > img { width: 38%; max-width: 420px; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; align-self: center; }
.shots .card-body { padding: 22px 26px; }
@media (max-width: 760px) {
  .shots .card > img, .shots .featured > img { width: 100%; max-width: none; }
}

/* ===== Palette v3: wedding-site colors (copper, gold, ivory) with leather and brick ===== */
:root {
  --bg: #f6efe3;
  --surface: #fffaf2;
  --ink: #1f1812;
  --muted: #6a5846;
  --line: #e4d6bf;
  --brand: #8a4a22;
  --brand-dark: #6e3a1a;
  --btn: #8a4a22;
  --btn-dark: #6e3a1a;
  --accent: #c9a24b;
  --accent-soft: #f1e3c1;
  --band-from: #5b3720;
  --band-to: #b4682f;
  --brick-from: #6b3326;
  --brick-to: #9a5038;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110c;
    --surface: #231a12;
    --ink: #f6efe3;
    --muted: #cdbda6;
    --line: #3a2c1f;
    --brand: #e6cb85;
    --brand-dark: #f0dba5;
    --accent-soft: #4a3a1c;
    --band-from: #4a2c18;
    --band-to: #8a5226;
    --brick-from: #55281f;
    --brick-to: #7e4130;
  }
}
.tag { color: #6e3a1a; }
.tag.app { background: #ecd4b0; color: #4f2c14; }
@media (prefers-color-scheme: dark) { .tag { color: #e6cb85; } .tag.app { background: #4a3420; color: #f0dba5; } }

/* gold buttons on the leather and brick bands, like the wedding site */
.band .btn, .site-nav .btn.small { background: linear-gradient(135deg, #e6cb85, #c9a24b); color: #1b1b1a !important; border-color: #c9a24b; }
.band .btn:hover, .site-nav .btn.small:hover { background: linear-gradient(135deg, #f0dba5, #d9b45c); border-color: #d9b45c; color: #1b1b1a !important; }
.band .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .85); }
.band .btn.ghost:hover { background: #fff; color: #5b3720 !important; border-color: #fff; }
.band .eyebrow { color: #e6cb85; }
.band .lead, .contact-band .section-intro { color: #f6efe3; }
.band .socials a:hover { color: #5b3720; }
.hero-band { border-bottom: 3px solid #c9a24b; }
.hero-band .portrait { box-shadow: 14px 14px 0 rgba(201, 162, 75, .6); }
.contact-band { background: linear-gradient(135deg, var(--brick-from), var(--brick-to)); border-top: 3px solid #c9a24b; }
.contact-band .field input:focus, .contact-band .field select:focus, .contact-band .field textarea:focus { outline-color: #e6cb85; }
.contact-band .form-status[data-tone="ok"], .contact-band .form-status[data-tone="err"] { background: rgba(31, 24, 18, .4); }

.hero-band .cta-row { gap: 10px; }
.hero-band .cta-row .btn { padding: 12px 18px; }

/* ===== Textures from the wedding site: leather for the top, brick for the contact band ===== */
.site-nav {
  background: linear-gradient(90deg, rgba(48, 28, 15, .55), rgba(91, 55, 32, .35)), url("/assets/textures/leather-dark.webp") center / cover;
  background-color: var(--band-from);
}
.hero-band {
  background: linear-gradient(135deg, rgba(48, 28, 15, .35) 0%, rgba(91, 55, 32, .25) 55%, rgba(180, 104, 47, .45) 100%), url("/assets/textures/leather-dark.webp") center / cover;
  background-color: var(--band-from);
}
.contact-band {
  background: linear-gradient(135deg, rgba(50, 22, 15, .68), rgba(107, 51, 38, .5)), url("/assets/textures/brick-warm.webp") center / cover;
  background-color: var(--brick-from);
}
.contact-band h2, .contact-band .field label, .contact-band .section-intro { text-shadow: 0 1px 6px rgba(30, 12, 8, .65); }
