:root {
  --paper: #f4f2e8;
  --paper-bright: #fffdf6;
  --ink: #0b1020;
  --muted: #565b68;
  --line: rgba(11, 16, 32, 0.22);
  --blue: #1f3cff;
  --blue-dark: #0c1e92;
  --lime: #dfff00;
  --cyan: #43d9ff;
  --night: #090d18;
  --max: 1440px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(11, 16, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 32, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, summary { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 78px;
  max-width: var(--max);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(244, 242, 232, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--blue);
  color: white;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand-mark::after {
  position: absolute;
  width: 70px;
  height: 2px;
  top: 23px;
  left: -11px;
  transform: rotate(-43deg);
  background: var(--lime);
  content: "";
}

.brand-mark b {
  z-index: 1;
  align-self: start;
  padding: 0 0 0 0.38rem;
  font-weight: 500;
  line-height: 1.35;
}

.brand-mark b:last-child { align-self: end; padding: 0 0.3rem 0 0; text-align: right; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 0.94rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-copy small { margin-top: 0.2rem; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; }

.primary-nav { display: flex; align-items: center; gap: clamp(0.85rem, 1.5vw, 1.6rem); }
.primary-nav a, .nav-contact {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-nav a { position: relative; }
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  content: "";
  transition: transform 180ms ease;
}

.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

.nav-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: var(--lime);
}

.nav-contact:hover { background: var(--blue); color: white; }
.menu-toggle { display: none; }

main, .site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

main { display: flex; flex-direction: column; }
.hero { order: 1; }
.signal-strip { order: 2; }
.about-section { order: 3; }
.experience-section { order: 4; }
.work-section { order: 5; }
.documents-ready { order: 6; }

#header, #about, #career, #project, #ready { scroll-margin-top: 78px; }

.documents-ready { border-bottom: 0; }

.hero {
  display: grid;
  min-height: 670px;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.78fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 6vw, 6rem);
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.availability span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 60, 255, 0.2);
}

.eyebrow, .section-label {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 6.1vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-summary {
  max-width: 790px;
  margin: 2rem 0 0;
  color: #343946;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0 1.15rem;
  border: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--lime); color: var(--ink); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: white; }

.role-switcher {
  display: flex;
  max-width: 680px;
  margin-top: 2.3rem;
  border: 1px solid var(--ink);
}

.role-switcher button {
  min-height: 44px;
  flex: 1;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.role-switcher button:last-child { border-right: 0; }
.role-switcher button[aria-selected="true"] { background: var(--lime); }
.role-switcher button:hover:not([aria-selected="true"]) { background: rgba(223, 255, 0, 0.35); }

.proof-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--line);
  background: var(--night);
  color: white;
}

.proof-heading { display: flex; justify-content: space-between; color: var(--lime); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.proof-monogram {
  position: relative;
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  place-items: center;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.45);
  background: var(--blue);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
}

.proof-monogram i {
  position: absolute;
  width: 150%;
  height: 3px;
  transform: rotate(-45deg);
  background: var(--lime);
}

.proof-monogram span { position: relative; z-index: 1; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.3); border-left: 1px solid rgba(255,255,255,0.3); }
.proof-grid article { min-height: 94px; padding: 0.9rem; border-right: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); }
.proof-grid strong { display: block; color: var(--lime); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1; }
.proof-grid span { display: block; margin-top: 0.5rem; color: #c6cbd7; font-size: 0.72rem; line-height: 1.35; }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--blue); color: white; }
.signal-strip p { display: flex; min-height: 82px; align-items: center; gap: 1rem; margin: 0; padding: 1rem 1.5rem; border-right: 1px solid rgba(255,255,255,0.35); font-weight: 750; }
.signal-strip p:last-child { border-right: 0; }
.signal-strip span { color: var(--lime); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; }

.section { padding: clamp(4.5rem, 9vw, 9rem) clamp(1.5rem, 5.5vw, 5.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-intro h2, .about-heading h2, .resume-shelf h2, .contact-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.75rem, 5.4vw, 5.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }
.section-intro > p { max-width: 550px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-intro.compact h2 { font-size: clamp(2.65rem, 4.8vw, 4.9rem); }

.case-list { display: grid; gap: 1.25rem; }
.case-card { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr); overflow: hidden; border: 1px solid var(--ink); background: var(--paper-bright); }
.case-card-reverse { grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr); }
.case-card-reverse .case-image { order: 2; }
.case-image { position: relative; min-height: 520px; overflow: hidden; border-right: 1px solid var(--ink); background: var(--night); }
.case-card-reverse .case-image { border-right: 0; border-left: 1px solid var(--ink); }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.case-image:hover img { transform: scale(1.025); }
.case-image span { position: absolute; right: 1rem; bottom: 1rem; padding: 0.65rem 0.85rem; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.case-content { display: flex; flex-direction: column; padding: clamp(1.6rem, 3.4vw, 3.5rem); }
.case-meta { display: flex; justify-content: space-between; margin-bottom: auto; color: var(--blue); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.case-content h3 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; }
.case-lead { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 1.02rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.case-tags { display: flex; max-height: 2rem; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0; padding: 0; overflow: hidden; list-style: none; }
.case-tags li { padding: 0.35rem 0.55rem; border: 1px solid var(--line); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.case-details { margin-top: auto; border-top: 1px solid var(--ink); }
.case-details summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; color: var(--blue); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary:hover { color: var(--ink); }
.case-details summary b { font-size: 1.25rem; font-weight: 400; transition: transform 180ms ease; }
.case-details[open] summary b { transform: rotate(45deg); }
.case-details .less { display: none; }
.case-details[open] .more { display: none; }
.case-details[open] .less { display: inline; }
.case-details > div { display: grid; gap: 0.8rem; padding: 0.5rem 0 0.25rem; }
.case-details p { display: grid; grid-template-columns: 76px 1fr; gap: 0.7rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.case-details strong { color: var(--ink); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.case-details a { color: var(--blue); font-weight: 800; text-underline-offset: 0.25rem; }
.case-no-image { display: grid; place-items: center; background: var(--blue); color: white; }
.case-no-image::after { position: absolute; width: 130%; height: 6px; transform: rotate(-36deg); background: var(--lime); content: ""; }
.case-image-number { position: relative !important; right: auto !important; bottom: auto !important; z-index: 1; padding: 0 !important; border: 0 !important; background: transparent !important; color: white !important; font-family: var(--serif); font-size: clamp(6rem, 15vw, 13rem) !important; font-weight: 500 !important; letter-spacing: -0.08em !important; }
.case-empty { padding: clamp(2rem, 5vw, 5rem); border: 1px solid var(--ink); background: var(--paper-bright); }
.case-empty > span { color: var(--blue); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.case-empty h3 { margin: 1rem 0 0.75rem; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; line-height: 0.95; }
.case-empty p { margin: 0; color: var(--muted); }
.studio-manage { display: flex; min-height: 68px; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 0 1.25rem; border: 1px solid var(--ink); background: var(--lime); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.07em; text-decoration: none; text-transform: uppercase; }
.studio-manage:hover { background: var(--blue); color: white; }

.experience-section { background: var(--paper-bright); }
.experience-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.experience-controls button, .experience-controls a { min-height: 42px; padding: 0 1rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.experience-controls button[aria-pressed="true"] { background: var(--lime); }
.experience-controls button:hover { background: rgba(223, 255, 0, 0.4); }
.experience-controls a { display: inline-flex; align-items: center; margin-left: auto; border-color: var(--blue); color: var(--blue); }
.experience-controls a:hover { background: var(--blue); color: white; }
.experience-list { border-top: 1px solid var(--ink); }
.experience-list article { display: grid; grid-template-columns: 140px minmax(280px, 0.9fr) minmax(300px, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.experience-list article.is-hiding { animation: item-out 150ms ease forwards; }
.experience-date { margin: 0; color: var(--blue); font-size: 0.82rem; font-weight: 900; }
.experience-list span { display: block; margin-bottom: 0.45rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.experience-list h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 2.3rem); font-weight: 500; line-height: 1.05; }
.experience-list article > p:last-child { margin: 0; color: var(--muted); }

.toolkit-section { background: var(--night); color: white; }
.light-on-dark > p { color: #bfc5d3; }
.toolkit-grid { border-top: 1px solid rgba(255,255,255,0.4); }
.toolkit-grid details { border-bottom: 1px solid rgba(255,255,255,0.4); }
.toolkit-grid summary { display: flex; min-height: 92px; align-items: center; justify-content: space-between; padding: 0 1.5rem; list-style: none; cursor: pointer; }
.toolkit-grid summary::-webkit-details-marker { display: none; }
.toolkit-grid summary:hover, .toolkit-grid details[open] summary { background: var(--lime); color: var(--ink); }
.toolkit-grid summary span { display: flex; align-items: center; gap: 1.5rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1; }
.toolkit-grid summary b { color: var(--blue); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; }
.toolkit-grid summary i { font-style: normal; font-size: 1.4rem; transition: transform 180ms ease; }
.toolkit-grid details[open] summary i { transform: rotate(45deg); }
.toolkit-grid ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.24); list-style: none; }
.toolkit-grid li { min-height: 75px; padding: 1.3rem 1.5rem; border-right: 1px solid rgba(255,255,255,0.18); border-bottom: 1px solid rgba(255,255,255,0.18); color: #d9dde6; }

.about-section { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(3rem, 8vw, 8rem); }
.about-heading h2 { font-size: clamp(3rem, 5.8vw, 6.1rem); }
.about-copy p { margin: 0 0 1.4rem; color: var(--muted); font-size: 1.08rem; }
.about-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.about-facts div { min-height: 125px; padding: 1.15rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.about-facts dt { color: var(--blue); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.about-facts dd { margin: 1.5rem 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }

.resume-shelf { display: grid; grid-template-columns: 0.85fr repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); background: var(--lime); }
.resume-shelf > div, .resume-shelf > a { min-height: 210px; padding: 2rem; border-right: 1px solid var(--ink); }
.resume-shelf > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper-bright); text-decoration: none; }
.resume-shelf > a:hover { background: var(--blue); color: white; }
.resume-shelf h2 { font-size: clamp(2rem, 3vw, 3.4rem); }
.resume-shelf small { display: block; margin-bottom: 1rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.resume-shelf a:hover small { color: #dbe0ff; }
.resume-shelf strong { display: block; font-family: var(--serif); font-size: clamp(1.65rem, 2.6vw, 2.6rem); font-weight: 500; line-height: 1; }
.resume-shelf a > b { font-size: 1.8rem; }

.contact-section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.5rem, 5.5vw, 5.5rem); background: var(--blue); color: white; }
.contact-section .section-label { color: var(--lime); }
.contact-section > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.contact-section h2 { max-width: 900px; font-size: clamp(3rem, 6vw, 6.5rem); }
.contact-button { flex: 0 0 auto; background: var(--lime); color: var(--ink); }
.contact-button:hover { background: white; }

.site-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; padding: 1rem 3rem; background: var(--night); color: white; }
.site-footer p { margin: 0; color: #bfc5d3; font-size: 0.75rem; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a, .footer-contact-link { color: white; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-underline-offset: 0.35rem; text-transform: uppercase; }
.footer-contact-link { border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; font-family: inherit; cursor: pointer; }
.footer-contact-link:hover { color: var(--lime); }
.site-footer .owner-link { color: #858c9d; }

.contact-dialog { width: min(600px, calc(100% - 2rem)); padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--ink); background: var(--paper-bright); color: var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.contact-dialog::backdrop { background: rgba(9, 13, 24, 0.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; font-size: 1.5rem; cursor: pointer; }
.dialog-close:hover { background: var(--lime); }
.contact-dialog h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5rem); font-weight: 500; line-height: 0.95; }
.contact-dialog > p:not(.section-label) { color: var(--muted); }
.dialog-email { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.3rem); }
.dialog-email a { color: inherit; text-underline-offset: 0.25em; }
.dialog-actions { display: grid; gap: 0.65rem; }
.dialog-actions .button { width: 100%; background-color: transparent; font-family: inherit; }
.dialog-actions .button-primary { background: var(--blue); }
.dialog-actions .button-primary:hover { background: var(--lime); }
.copy-status { min-height: 1.4em; margin: 1rem 0 0; color: var(--blue) !important; font-size: 0.82rem; font-weight: 800; }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; width: 50px; height: 50px; place-items: center; transform: translateY(100px); border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-size: 1.25rem; font-weight: 900; text-decoration: none; opacity: 0; box-shadow: 5px 5px 0 var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.back-to-top.is-visible { transform: translateY(0); opacity: 1; }

/* Owner-only Project Studio */
.studio-shell { min-height: 100vh; padding: 0 clamp(1.25rem, 4vw, 4rem) 6rem; }
.studio-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--blue); }
.studio-header > div { text-align: right; }
.studio-header span, .studio-intro > p, .overline { color: var(--blue); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.studio-header p { margin: 0.15rem 0 0; font-size: 0.84rem; }
.studio-header form { margin-top: 0.35rem; }
.link-button { border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: var(--blue); font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.studio-intro { padding: clamp(4rem, 8vw, 8rem) 0; border-bottom: 4px solid var(--ink); }
.studio-intro > p { margin: 0 0 1rem; }
.studio-intro h1, .studio-locked h1 { max-width: 12ch; margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(3.25rem, 7vw, 7.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.studio-intro > span { display: block; max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: clamp(3rem, 7vw, 7rem); padding-top: 4rem; }
.project-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.55rem; }
.field label, .upload-field label, .login-card label { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.field input, .field textarea, .studio-select, .upload-field input, .login-card input { width: 100%; min-height: 48px; padding: 0.75rem; border: 1px solid #8f8b80; border-radius: 0; background: var(--paper-bright); color: var(--ink); box-shadow: none; font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 160px; gap: 1rem; }
.studio-select { width: 100%; }
.field-help, .upload-field span { color: var(--muted); font-size: 0.78rem; }
.upload-field { display: grid; grid-template-columns: 42px 1fr; gap: 0.75rem 1rem; padding: 1.25rem; border: 1px dashed #68655d; background: #e9e5da; }
.upload-icon { grid-row: 1 / span 2; color: var(--blue) !important; font-size: 2rem !important; }
.upload-field > div { display: flex; flex-direction: column; gap: 0.25rem; }
.upload-field input { grid-column: 1 / -1; }
.publish-button, .login-card .button { justify-content: center; border-radius: 0; background: var(--blue); color: white; }
.publish-button:hover, .login-card .button:hover { background: var(--lime); color: var(--ink); }
.publish-button:disabled { cursor: wait; opacity: 0.7; }
.form-message { min-height: 1.5rem; margin: 0; color: var(--blue); font-size: 0.9rem; font-weight: 700; }
.project-index { border-top: 4px solid var(--ink); }
.index-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; border-bottom: 1px solid var(--ink); }
.index-heading span { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; }
.index-heading strong { color: var(--blue); font-family: var(--serif); font-size: 2.5rem; font-weight: 500; }
.empty-index { padding: 2.5rem 0; color: var(--muted); }
.empty-index p { margin: 0 0 0.35rem; color: var(--ink); font-weight: 800; }
.index-list article { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid #8f8b80; }
.index-list span { color: var(--blue); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; }
.index-list h2 { margin: 0.4rem 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.index-list p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 0.88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.danger { align-self: start; background: transparent; color: #991a2e; }
.danger:hover { background: #991a2e; color: white; }
.studio-locked { max-width: 70rem; padding: 8rem 0; }
.studio-locked > p { color: var(--blue); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; }
.notice { margin: 1rem 0; padding: 0.85rem 1rem; border-left: 5px solid var(--blue); background: var(--paper-bright); }
.notice.error { border-left-color: #c91f37; color: #8a1628; }
.login-card { width: min(520px, 100%); margin: 5rem auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 10px 10px 0 var(--ink); }
.login-card h1 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 500; line-height: 0.95; }
.login-card form { display: grid; gap: 1rem; margin-top: 2rem; }

@keyframes item-out { to { opacity: 0; transform: translateY(4px); } }

@media (max-width: 1100px) {
  .masthead { padding-inline: 1.5rem; }
  .hero { grid-template-columns: minmax(0, 1.25fr) 360px; }
  .hero-copy { padding-inline: 2.5rem; }
  .case-card, .case-card-reverse { grid-template-columns: 1fr 1fr; }
  .case-image { min-height: 480px; }
  .experience-list article { grid-template-columns: 110px minmax(250px, 0.9fr) minmax(260px, 1.1fr); gap: 1.5rem; }
}

@media (max-width: 860px) {
  .masthead { min-height: 70px; }
  .menu-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 0.7rem; padding: 0 0.9rem; border: 1px solid var(--ink); background: transparent; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
  .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 18px; height: 2px; background: var(--ink); content: ""; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before { position: absolute; top: -6px; }
  .menu-toggle i::after { position: absolute; top: 6px; }
  .primary-nav { position: absolute; top: 69px; right: -1px; left: -1px; display: none; align-items: stretch; gap: 0; padding: 0.75rem 1.5rem 1.5rem; border-bottom: 1px solid var(--ink); background: var(--paper); box-shadow: 0 16px 30px rgba(11,16,32,0.12); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a, .nav-contact { display: flex; min-height: 52px; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .nav-contact { margin-top: 0.75rem; padding: 0 1rem; border: 1px solid var(--ink); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 590px; padding: 4rem 2rem; }
  .availability { margin-bottom: 2.5rem; }
  .proof-panel { min-height: 500px; border-top: 1px solid var(--line); border-left: 0; }
  .proof-monogram { width: 230px; margin-block: 2rem; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip p:nth-child(2) { border-right: 0; }
  .signal-strip p:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.35); }
  .section-intro, .about-section { grid-template-columns: 1fr; }
  .section-intro { align-items: start; gap: 1.75rem; }
  .case-card, .case-card-reverse { grid-template-columns: 1fr; }
  .case-card-reverse .case-image { order: 0; }
  .case-image, .case-card-reverse .case-image { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--ink); border-left: 0; }
  .case-meta { margin-bottom: 0; }
  .case-content h3 { margin-top: 2rem; }
  .experience-list article { grid-template-columns: 120px 1fr; }
  .experience-list article > p:last-child { grid-column: 2; }
  .toolkit-grid ul { grid-template-columns: 1fr 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .resume-shelf { grid-template-columns: 1fr 1fr; }
  .resume-shelf > div { grid-column: 1 / -1; min-height: 150px; }
  .contact-section > div { align-items: flex-start; flex-direction: column; }
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .masthead { padding-inline: 1rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark::after { top: 20px; }
  .hero-copy { min-height: auto; padding: 3rem 1.25rem 2rem; }
  .availability { margin-bottom: 2rem; font-size: 0.68rem; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 4.6rem); }
  .hero-summary { margin-top: 1.4rem; font-size: 1rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .role-switcher { display: grid; grid-template-columns: 1fr; margin-top: 1.5rem; }
  .role-switcher button { border-right: 0; border-bottom: 1px solid var(--ink); }
  .role-switcher button:last-child { border-bottom: 0; }
  .proof-panel { min-height: 430px; padding: 1.25rem; }
  .proof-monogram { width: 170px; font-size: 5rem; }
  .proof-grid article { min-height: 86px; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip p { min-height: 62px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.35); }
  .section { padding: 4.5rem 1.25rem; scroll-margin-top: 70px; }
  .section-intro h2, .about-heading h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .section-intro > p { font-size: 1rem; }
  .case-content { padding: 1.25rem; }
  .case-content h3 { font-size: 2.55rem; }
  .case-details p { grid-template-columns: 1fr; gap: 0.15rem; }
  .experience-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .experience-controls button, .experience-controls a { width: 100%; }
  .experience-controls a { grid-column: 1 / -1; justify-content: center; margin-left: 0; }
  .experience-list article { grid-template-columns: 1fr; gap: 0.65rem; padding: 1.65rem 0; }
  .experience-list article > p:last-child { grid-column: 1; margin-top: 0.4rem; }
  .toolkit-grid summary { min-height: 76px; padding: 0 0.8rem; }
  .toolkit-grid summary span { gap: 0.85rem; font-size: 1.75rem; }
  .toolkit-grid ul { grid-template-columns: 1fr; }
  .toolkit-grid li { min-height: 62px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div { min-height: 105px; }
  .resume-shelf { grid-template-columns: 1fr; }
  .resume-shelf > div { grid-column: 1; }
  .resume-shelf > div, .resume-shelf > a { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .contact-section { padding: 4rem 1.25rem; }
  .contact-section h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem; }
  .site-footer div { gap: 1rem; }
  .contact-dialog { box-shadow: 7px 7px 0 var(--ink); }
  .studio-header { min-height: 0; align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .studio-header > div { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .index-list article { grid-template-columns: 1fr; }
  .index-list .button { width: auto; }
  .login-card { margin-block: 3rem; box-shadow: 7px 7px 0 var(--ink); }
}

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

@media print {
  .masthead, .hero, .signal-strip, .work-section, .toolkit-section, .about-section, .resume-shelf, .contact-section, .site-footer, .back-to-top, .contact-dialog, .experience-controls { display: none !important; }
  .experience-section { padding: 0; }
  .experience-list article { break-inside: avoid; }
}
