:root {
  --cream: #f7f3ec;
  --paper: #fffdf8;
  --sand: #eadfce;
  --olive: #7b8369;
  --ink: #131313;
  --charcoal: #272727;
  --mist: #dce3df;
  --stone: #d3cec5;
  --slate: #32363d;
  --amber: #c69058;
  --line: rgba(19, 19, 19, 0.12);
  --shadow: 0 20px 60px rgba(19, 19, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f9f6f1 0%, #f2ede6 100%);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.gallery-page {
  background:
    radial-gradient(circle at top left, rgba(198, 144, 88, 0.18), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, #efe8de 100%);
}

.gallery-shell,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.gallery-hero,
.hero,
.terminal-frame,
.split-left,
.split-right,
.editorial-grid article,
.soft-card,
.mono-panel,
.mono-stack,
.project-tile {
  animation: rise 700ms ease both;
}

.gallery-hero {
  padding: 48px 0 32px;
}

.eyebrow,
.section-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-hero h1,
.hero h1,
.split-left h1,
.terminal-copy h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  line-height: 0.96;
  font-weight: 600;
  max-width: 11ch;
}

.gallery-copy,
.hero-note,
.split-left p,
.terminal-copy p,
.soft-intro p {
  max-width: 38rem;
  color: rgba(19, 19, 19, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 19, 19, 0.28);
}

.gallery-number {
  display: inline-block;
  margin-bottom: 42px;
  font-size: 0.92rem;
  color: rgba(19, 19, 19, 0.55);
}

.gallery-card h2,
.feature-card h2,
.soft-card h2,
.mono-panel h2,
.split-project h2,
.project-tile h2 {
  font-size: 1.9rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.gallery-card p,
.feature-card p,
.mini-card p,
.soft-card p,
.mono-panel p,
.split-project p,
.project-tile p {
  line-height: 1.65;
  color: rgba(19, 19, 19, 0.72);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 28px;
}

.topbar-sticky {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(19, 19, 19, 0.08);
}

.brand,
.topbar-links,
.mono-meta,
.mono-stack ul {
  font-family: "Space Grotesk", sans-serif;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 0.95rem;
  font-weight: 500;
}

.brand-logo,
.brand-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  background: rgba(255, 253, 248, 0.75);
  box-shadow: var(--shadow);
}

.brand-logo {
  min-width: 54px;
  height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-socials {
  display: flex;
  gap: 8px;
}

.brand-social {
  width: 38px;
  height: 38px;
  color: rgba(19, 19, 19, 0.72);
}

.brand-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar-links {
  display: flex;
  gap: 18px;
  color: rgba(19, 19, 19, 0.6);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  color: rgba(19, 19, 19, 0.78);
}

.topbar-mobile-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1;
  color: rgba(19, 19, 19, 0.78);
  white-space: nowrap;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 34px;
  align-items: end;
}

.hero-editorial h1,
.split-left h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 18px;
}

.editorial-grid article,
.soft-card,
.mono-panel,
.mono-stack,
.split-project,
.project-tile,
.terminal-frame {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.statement-card,
.mini-card,
.feature-card {
  padding: 26px;
  background: rgba(255, 253, 248, 0.88);
}

.statement-card {
  min-height: 360px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at top left, rgba(123, 131, 105, 0.25), transparent 35%);
}

.large-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.02;
  max-width: 10ch;
}

.warm-panel {
  background: #efe6d8;
}

.dark-panel {
  background: #1f2321;
  color: #f7f1e6;
}

.dark-panel p,
.dark-panel a {
  color: rgba(247, 241, 230, 0.8);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin-top: 18px;
}

.tag-row li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.06);
  font-size: 0.86rem;
}

.theme-soft {
  background:
    radial-gradient(circle at top right, rgba(123, 131, 105, 0.18), transparent 26%),
    linear-gradient(180deg, #fcfaf6 0%, #efebe3 100%);
}

.hero-soft {
  align-items: center;
}

.soft-intro h1 {
  max-width: 11ch;
}

.soft-orbit {
  width: min(36vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.2) 48%, transparent 49%),
    conic-gradient(from 220deg, rgba(198, 144, 88, 0.18), rgba(123, 131, 105, 0.4), rgba(220, 227, 223, 0.65), rgba(198, 144, 88, 0.18));
}

.orbit-core {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(19, 19, 19, 0.08);
}

.orbit-core span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(19, 19, 19, 0.55);
}

.orbit-core strong {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
}

.soft-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.soft-card {
  min-height: 260px;
  padding: 24px;
}

.accent-sand {
  background: #efe3d1;
}

.accent-mist {
  background: #e2e7e2;
}

.accent-ink {
  background: #e8e4de;
}

.theme-mono {
  background:
    radial-gradient(circle at top left, rgba(188, 205, 196, 0.1), transparent 20%),
    #f4f5f3;
  color: #131614;
}

.mono-topbar,
.terminal-copy,
.mono-stack,
.mono-meta {
  font-family: "Space Grotesk", sans-serif;
}

.terminal-frame {
  background: #101311;
  color: #eef2ec;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 10px;
  padding: 18px 20px 0;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.terminal-copy {
  padding: 28px 24px 32px;
}

.terminal-copy p {
  color: rgba(238, 242, 236, 0.72);
}

.mono-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.mono-panel,
.mono-stack {
  padding: 24px;
  background: rgba(255, 255, 255, 0.64);
}

.mono-panel.subtle {
  grid-column: 1 / -1;
}

.mono-meta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  color: rgba(19, 22, 20, 0.56);
  font-size: 0.9rem;
}

.mono-stack ul {
  padding-left: 18px;
  margin-top: 14px;
  color: rgba(19, 22, 20, 0.74);
}

.theme-split {
  background: linear-gradient(90deg, #f3ecdf 0%, #f3ecdf 45%, #1f2421 45%, #1f2421 100%);
}

.split-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-left,
.split-right {
  padding: 48px min(5vw, 48px);
}

.split-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.ghost-link {
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid rgba(19, 19, 19, 0.18);
  border-radius: 999px;
}

.split-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  color: #f5f0e6;
}

.split-project {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.split-project p,
.split-project .section-label {
  color: rgba(245, 240, 230, 0.78);
}

.project-stat {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.secondary {
  background: rgba(255, 255, 255, 0.02);
}

.theme-gallery {
  background:
    radial-gradient(circle at top center, rgba(198, 144, 88, 0.16), transparent 22%),
    linear-gradient(180deg, #fcfaf6 0%, #f0ebe2 100%);
}

.hero-gallery-deep {
  align-items: stretch;
  gap: 32px;
}

.hero-gallery-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hero-gallery h1 {
  max-width: 12ch;
}

.hero-gallery-text {
  max-width: 34rem;
}

.headshot-card,
.intro-panel,
.project-showcase,
.image-placeholder {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.headshot-card {
  width: min(360px, 100%);
  padding: 18px;
  background: rgba(255, 253, 248, 0.84);
}

.hero-headshot {
  width: min(380px, 100%);
  flex-shrink: 0;
  animation: rise 700ms ease both;
}

.hero-headshot-image {
  display: block;
  width: 100%;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.image-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(135deg, rgba(19, 19, 19, 0.04) 0, rgba(19, 19, 19, 0.04) 14px, transparent 14px, transparent 28px),
    #e7dfd3;
}

.image-placeholder.dark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 14px, transparent 14px, transparent 28px),
    #3a4049;
}

.image-placeholder span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(19, 19, 19, 0.52);
}

.image-placeholder.dark span {
  color: rgba(247, 245, 241, 0.72);
}

.hero-headshot .image-placeholder {
  min-height: 420px;
}

.gallery-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.intro-panel {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.78);
}

.about-copy {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skills-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.08);
  font-size: 0.92rem;
  line-height: 1.2;
}

.intro-panel-alt {
  background: #ece4d8;
}

.projects-section,
.writeups-section,
.experience-section {
  margin-top: 18px;
}

.projects-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.gallery-projects {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.contact-section {
  margin-top: 18px;
}

.experience-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.experience-list {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.experience-item {
  padding-top: 4px;
}

.experience-item + .experience-item {
  padding-top: 20px;
  border-top: 1px solid rgba(19, 19, 19, 0.08);
}

.experience-header h2 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.experience-meta {
  color: rgba(19, 19, 19, 0.66);
  line-height: 1.6;
}

.experience-bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(19, 19, 19, 0.78);
  line-height: 1.7;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.experience-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.08);
  font-size: 0.88rem;
}

.writeups-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.writeups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.writeup-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(19, 19, 19, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.writeup-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(19, 19, 19, 0.58);
}

.writeup-card h2 {
  margin-top: 14px;
  font-size: 1.6rem;
  line-height: 1.08;
}

.writeup-card p {
  margin-top: 14px;
  color: rgba(19, 19, 19, 0.72);
  line-height: 1.7;
}

.writeup-link {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  background: rgba(255, 253, 248, 0.8);
  font-size: 0.9rem;
}

.writeup-page-hero {
  padding: 10px 0 20px;
}

.writeup-page-hero .eyebrow {
  margin-top: 0;
  margin-bottom: 14px;
}

.writeup-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  max-width: 12ch;
  margin-bottom: 18px;
}

.writeup-page-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.writeup-page-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.writeup-page-panel-alt {
  background: #ece4d8;
}

.writeup-outline {
  margin-top: 16px;
  padding-left: 18px;
  line-height: 1.8;
  color: rgba(19, 19, 19, 0.76);
}

.writeup-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 8px;
  align-items: start;
}

.writeup-figure {
  margin: 8px 0;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.writeup-figure img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.writeup-figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(19, 19, 19, 0.72);
}

.writeup-figure-grid .writeup-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
}

.writeup-figure-grid .writeup-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.writeup-figure-wide {
  margin-top: 14px;
}

.contact-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12)),
    #ece4d8;
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.contact-panel h2 {
  font-size: 2rem;
  line-height: 1.05;
  margin-top: 16px;
}

.contact-copy {
  max-width: 38rem;
  margin-top: 14px;
  color: rgba(19, 19, 19, 0.72);
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.14);
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.92rem;
}

.contact-link.primary {
  background: #1f2321;
  border-color: #1f2321;
  color: #f7f3ec;
}


.project-showcase {
  min-height: 320px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 24px;
}

.project-card-link {
  color: inherit;
}

.project-showcase.reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

.project-showcase.reversed .project-media {
  order: 2;
}

.project-showcase.reversed .tile-content {
  order: 1;
}

.project-media {
  display: flex;
  align-items: stretch;
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-media .image-placeholder {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 10;
}

.tile-content {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.project-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.08);
  font-size: 0.84rem;
}

.project-meta.light span {
  background: rgba(255, 255, 255, 0.12);
  color: #f7f5f1;
}

.tile-amber {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 60%),
    #d6b38c;
}

.tile-ivory {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 50%),
    #ece4d8;
}

.tile-slate {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%),
    #4b525f;
  color: #f7f5f1;
}

.tile-slate p,
.tile-slate .section-label,
.tile-slate .tile-content {
  color: rgba(247, 245, 241, 0.8);
}

.theme-soft-studio {
  background:
    radial-gradient(circle at top left, rgba(198, 144, 88, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(123, 131, 105, 0.18), transparent 22%),
    linear-gradient(180deg, #faf7f1 0%, #efebe3 100%);
}

.soft-studio-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 18px;
  padding: 24px 0 18px;
}

.soft-studio-copy,
.soft-studio-aside,
.studio-feature,
.studio-sidebar,
.studio-card,
.edge-card,
.edge-badge,
.rams-block {
  animation: rise 700ms ease both;
}

.soft-studio-copy h1,
.edge-copy h1,
.rams-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  max-width: 10ch;
}

.soft-studio-copy p,
.edge-copy p,
.rams-hero p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(19, 19, 19, 0.72);
}

.soft-studio-aside {
  display: flex;
  align-items: end;
}

.signal-card {
  width: 100%;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #75806b;
}

.soft-studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.studio-feature,
.studio-sidebar,
.studio-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.studio-feature {
  background: rgba(255, 252, 246, 0.86);
  min-height: 280px;
}

.studio-sidebar {
  background: #e2e7e1;
}

.studio-sidebar ul {
  margin-top: 16px;
  padding-left: 18px;
  line-height: 1.9;
  color: rgba(19, 19, 19, 0.72);
}

.studio-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.studio-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.06);
  font-size: 0.84rem;
}

.studio-card.muted {
  background: #eee3d2;
}

.studio-card.dark {
  background: #242826;
  color: #f6f1e8;
}

.studio-card.dark p,
.studio-card.dark .section-label {
  color: rgba(246, 241, 232, 0.78);
}

.theme-night-edge {
  background:
    radial-gradient(circle at top right, rgba(197, 207, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #111317 0%, #1a1e23 100%);
  color: #eef0f2;
}

.edge-topbar .topbar-links,
.theme-night-edge .brand,
.theme-night-edge .section-label,
.theme-night-edge p {
  color: rgba(238, 240, 242, 0.76);
}

.edge-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 26px 0 30px;
}

.edge-copy p {
  color: rgba(238, 240, 242, 0.74);
  max-width: 38rem;
}

.edge-badge {
  min-width: 180px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.edge-badge span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.edge-badge strong {
  font-size: 3.6rem;
  line-height: 1;
  color: #f7f7f5;
}

.edge-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 18px;
}

.edge-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.edge-main {
  min-height: 280px;
}

.edge-list ul {
  margin-top: 16px;
  padding-left: 18px;
  line-height: 1.9;
}

.theme-rams-owens {
  background: linear-gradient(180deg, #f4f1ea 0%, #e8e2d7 100%);
  color: #161616;
}

.rams-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.rams-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 44px;
}

.rams-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.rams-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 34px;
}

.rams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.rams-block {
  min-height: 280px;
  padding: 24px;
  border-radius: 0;
  border: 1px solid rgba(22, 22, 22, 0.14);
}

.rams-block.pale {
  background: rgba(255, 253, 248, 0.72);
}

.rams-block.dark {
  background: #1d1d1b;
  color: #f2eee7;
  border-color: rgba(29, 29, 27, 0.8);
}

.rams-block.dark p,
.rams-block.dark .section-label {
  color: rgba(242, 238, 231, 0.76);
}

.rams-block.line {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(180deg, transparent 0, transparent 24px, rgba(22, 22, 22, 0.06) 24px, rgba(22, 22, 22, 0.06) 25px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .hero,
  .hero-soft,
  .split-shell,
  .editorial-grid,
  .soft-project-grid,
  .mono-layout,
  .soft-studio-hero,
  .soft-studio-grid,
  .edge-grid,
  .rams-hero,
  .rams-grid,
  .gallery-intro-grid,
  .writeups-grid,
  .writeup-page-layout,
  .writeup-figure-grid,
  .project-showcase,
  .project-showcase.reversed {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .split-shell {
    display: block;
  }

  .theme-split {
    background: linear-gradient(180deg, #f3ecdf 0%, #f3ecdf 50%, #1f2421 50%, #1f2421 100%);
  }

  .split-left,
  .split-right {
    min-height: auto;
  }

  .soft-orbit {
    width: min(72vw, 320px);
  }

  .edge-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-showcase.reversed .project-media,
  .project-showcase.reversed .tile-content {
    order: initial;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .topbar-sticky {
    margin-bottom: 12px;
  }

  .topbar-actions {
    display: none;
  }

  .brand-lockup {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .brand-socials {
    gap: 6px;
    margin-left: auto;
  }

  .brand-logo,
  .brand-social {
    box-shadow: none;
  }

  .topbar-mobile-back {
    display: inline-flex;
  }

  .writeup-page-panel {
    order: 2;
  }

  .writeup-page-panel-alt {
    order: 1;
  }
}

@media (max-width: 640px) {
  .gallery-shell,
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }
  .topbar-sticky {
    border-radius: 28px;
  }

  .gallery-card,
  .statement-card,
  .feature-card,
  .mini-card,
  .soft-card,
  .mono-panel,
  .mono-stack,
  .split-project,
  .project-tile,
  .headshot-card,
  .intro-panel,
  .projects-panel,
  .writeups-panel,
  .experience-panel,
  .contact-panel,
  .project-showcase,
  .image-placeholder,
  .hero-headshot-image,
  .project-image {
    border-radius: 22px;
  }

  .gallery-hero h1,
  .hero h1,
  .split-left h1,
  .terminal-copy h1,
  .soft-studio-copy h1,
  .edge-copy h1,
  .rams-hero h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

}
