:root {
  --ink: #1f2d25;
  --ink-soft: #647067;
  --emerald: #123b31;
  --emerald-2: #1f5a49;
  --mint: #dbece2;
  --cream: #f7f2e8;
  --paper: #fffaf1;
  --caramel: #b4774b;
  --gold: #e2c27a;
  --line: rgba(18, 59, 49, 0.14);
  --shadow: 0 24px 70px rgba(24, 55, 45, 0.14);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(219, 236, 226, 0.95), transparent 26rem),
    linear-gradient(90deg, rgba(18, 59, 49, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 59, 49, 0.04) 1px, transparent 1px),
    var(--cream);
  background-size: auto, 36px 36px, 36px 36px, auto;
  line-height: 1.65;
}

body::after {
  content: "MARKETING  DATA  AI";
  position: fixed;
  right: -6rem;
  top: 7rem;
  z-index: -1;
  writing-mode: vertical-rl;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 800;
  color: rgba(18, 59, 49, 0.028);
  letter-spacing: 0.08em;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--emerald);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

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

.section-shell {
  width: min(1180px, calc(100% - 42px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(18, 59, 49, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 7px 7px 0 rgba(158, 207, 189, 0.34);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #59665d;
  font-weight: 700;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--mint);
  color: var(--emerald);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--emerald);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.74fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - 86px);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.hero::before {
  content: "campaign diary";
  position: absolute;
  left: clamp(-1.8rem, -1.5vw, -0.7rem);
  bottom: clamp(1rem, 5vw, 3rem);
  color: rgba(180, 119, 75, 0.12);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(3rem, 11vw, 8rem);
  top: clamp(7rem, 15vw, 12rem);
  width: clamp(120px, 14vw, 210px);
  height: clamp(120px, 14vw, 210px);
  border: 1px dashed rgba(180, 119, 75, 0.28);
  border-radius: 48% 52% 42% 58%;
  background:
    linear-gradient(rgba(154, 211, 193, 0.12), rgba(154, 211, 193, 0.02)),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(18, 59, 49, 0.05) 18px 19px);
  z-index: -1;
  transform: rotate(-8deg);
}

.eyebrow,
.side-label {
  margin: 0 0 1rem;
  color: var(--emerald-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 11.4vw, 9.8rem);
  color: #2b231f;
  font-weight: 900;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4.15rem);
  color: #302720;
  font-weight: 900;
}

.hero-lead,
.page-hero p,
.about-copy p,
.intro-grid p:last-child {
  max-width: 64ch;
  color: #6e766e;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "INSIGHT / STRATEGY / CONTENT";
  position: absolute;
  right: clamp(0rem, 2vw, 1.6rem);
  top: clamp(-2.3rem, -3vw, -1.2rem);
  padding: 0.48rem 0.7rem;
  border: 1px dashed rgba(180, 119, 75, 0.38);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(180, 119, 75, 0.1);
  transform: rotate(-2deg);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: clamp(2rem, 16vw, 12rem);
  bottom: clamp(-2.1rem, -3vw, -1.1rem);
  width: 92px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 207, 130, 0.62), rgba(255, 250, 241, 0.64));
  transform: rotate(-3deg);
  box-shadow: 0 12px 28px rgba(180, 119, 75, 0.12);
}

.tag-row,
.hero-actions,
.contact-pills,
.detail-stats,
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.tag-row {
  margin: 1.6rem 0 2rem;
}

.tag-row span,
.detail-stats span,
.project-meta-row span,
.assignment-meta span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--emerald);
  font-size: 0.86rem;
  font-weight: 800;
}

.tag-row span:nth-child(1),
.tag-row span:nth-child(4) {
  background: rgba(246, 207, 130, 0.2);
  border-color: rgba(180, 119, 75, 0.28);
  color: #8b5637;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 800;
  border: 1px solid var(--emerald);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button.primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 18px 38px rgba(18, 59, 49, 0.22);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.52);
  color: var(--emerald);
}

.portrait-card {
  position: relative;
  margin: 0;
  padding: 1rem;
  border-radius: 34px 34px 12px 34px;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}

.portrait-card::before {
  content: "+12% reach";
  position: absolute;
  left: -1.15rem;
  bottom: 5.7rem;
  z-index: 3;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(18, 59, 49, 0.12);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--emerald-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(18, 59, 49, 0.12);
  transform: rotate(3deg);
}

.portrait-card::after {
  content: "";
  position: absolute;
  right: -1.1rem;
  bottom: -1.1rem;
  width: 58%;
  height: 62%;
  border-radius: 30px;
  background: #9ecfbd;
  z-index: -1;
}

.photo-note {
  position: absolute;
  right: 1.5rem;
  top: -1rem;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px 999px 999px 8px;
  padding: 0.65rem 1rem;
  color: var(--caramel);
  font-weight: 800;
}

.photo-note::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 50%;
  width: 46px;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 194, 122, 0.68);
  transform: translateY(-50%) rotate(-5deg);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: var(--emerald);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.portrait-card figcaption {
  text-align: center;
  padding: 1rem 0 0.2rem;
}

.portrait-card figcaption strong,
.portrait-card figcaption span {
  display: block;
}

.portrait-card figcaption span {
  color: #6f756d;
  font-size: 0.92rem;
}

.intro-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 59, 49, 0.08), rgba(255, 250, 241, 0.62));
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 7vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.about-copy {
  position: relative;
}

.about-copy::after {
  content: "marketing note";
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0.44rem 0.75rem;
  border: 1px dashed rgba(180, 119, 75, 0.38);
  border-radius: 999px;
  color: var(--caramel);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.fact-list div,
.reflection-card,
.doc-sidebar,
.project-card a {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.78);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 45px rgba(18, 59, 49, 0.07);
}

.fact-list div {
  padding: 1rem;
}

.fact-list div:nth-child(odd) {
  transform: translateX(-0.55rem);
  border-radius: 22px 22px 8px 22px;
}

.fact-list div:nth-child(even) {
  transform: translateX(0.55rem);
  background: rgba(219, 236, 226, 0.48);
  border-radius: 22px 8px 22px 22px;
}

dt {
  color: var(--emerald-2);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

dd {
  margin: 0.25rem 0 0;
  color: #3f463f;
  font-weight: 600;
}

.learning-map,
.featured-projects,
.page-hero {
  padding: clamp(3.8rem, 8vw, 7rem) 0;
}

.featured-projects {
  padding-top: clamp(1.2rem, 3vw, 2.8rem);
}

.featured-projects .section-heading {
  display: block;
  max-width: 820px;
  margin-bottom: clamp(1rem, 2.2vw, 1.45rem);
}

.featured-projects .section-heading h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.02;
}

.page-hero {
  position: relative;
  isolation: isolate;
}

.page-hero::after {
  content: "case file";
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  z-index: -1;
  color: rgba(18, 59, 49, 0.055);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.learning-map {
  position: relative;
  isolation: isolate;
  margin-block: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4.2rem);
  border: 1px solid rgba(18, 59, 49, 0.12);
  border-radius: 34px 34px 12px 34px;
  background:
    linear-gradient(90deg, rgba(18, 59, 49, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 59, 49, 0.026) 1px, transparent 1px),
    rgba(255, 250, 241, 0.64);
  background-size: 30px 30px, 30px 30px, auto;
  box-shadow: 16px 18px 0 rgba(158, 207, 189, 0.16);
}

.learning-map::before {
  content: "MARKETING x AI";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 1.1rem;
  z-index: -1;
  color: rgba(18, 59, 49, 0.055);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
}

.learning-map::after {
  content: "";
  position: absolute;
  left: clamp(1.2rem, 4vw, 3rem);
  top: -0.65rem;
  width: 96px;
  height: 18px;
  border-radius: 999px;
  background: rgba(226, 194, 122, 0.8);
  transform: rotate(-2deg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.4fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.learning-map .section-heading {
  grid-template-columns: minmax(160px, 0.26fr) minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.learning-map .section-heading h2 {
  max-width: 850px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.learning-map .eyebrow {
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border: 1px dashed rgba(18, 59, 49, 0.22);
  border-radius: 999px;
  background: rgba(219, 236, 226, 0.7);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border-top: 0;
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.68);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.timeline-list li:hover {
  transform: translateY(-4px);
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 18px 42px rgba(18, 59, 49, 0.09);
}

.timeline-list li:nth-child(3n + 2) {
  background: rgba(219, 236, 226, 0.52);
  border-radius: 22px 8px 22px 22px;
}

.timeline-list li:nth-child(3n) {
  transform: translateY(1.1rem);
  border-radius: 8px 22px 22px 22px;
}

.timeline-list li:nth-child(3n):hover {
  transform: translateY(0.65rem);
}

.timeline-list span,
.project-index,
.reflection-card span,
.doc-sidebar span {
  color: var(--emerald-2);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timeline-list span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.timeline-list p {
  margin: 0;
  font-size: 1rem;
  color: #4d564e;
}

.project-strip,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.project-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.project-card a {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card a::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(226, 194, 122, 0.18);
  pointer-events: none;
}

.project-card a::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: -0.35rem;
  width: 66px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 207, 130, 0.68), rgba(255, 250, 241, 0.72));
  box-shadow: 0 8px 18px rgba(180, 119, 75, 0.12);
}

.project-card.card-shape-3 a::before {
  left: auto;
  right: 1.35rem;
  background: linear-gradient(90deg, rgba(154, 211, 193, 0.62), rgba(255, 250, 241, 0.76));
}

.project-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(18, 59, 49, 0.14);
}

.project-index {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}

.project-grid .project-card {
  grid-column: span 3;
}

.project-grid .project-btw1,
.project-grid .project-btw5 {
  grid-column: span 4;
}

.project-grid .project-btw2,
.project-grid .project-btw6 {
  grid-column: span 2;
}

.project-btw1 a,
.project-btw4 a {
  border-radius: 30px 30px 10px 30px;
}

.project-btw2 a,
.project-btw6 a {
  background:
    linear-gradient(180deg, rgba(219, 236, 226, 0.62), rgba(255, 250, 241, 0.78));
  border-radius: 30px 10px 30px 30px;
}

.project-btw3 a {
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 119, 75, 0.16), transparent 42%),
    rgba(255, 250, 241, 0.82);
}

.project-btw5 a {
  background:
    linear-gradient(135deg, rgba(18, 59, 49, 0.08), rgba(255, 250, 241, 0.82) 48%),
    var(--paper);
}

.project-card.card-shape-2 {
  transform: translateY(1.1rem);
}

.project-card.card-shape-4 {
  transform: translateY(-0.45rem);
}

.project-card.card-shape-2 a:hover,
.project-card.card-shape-4 a:hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

.project-kicker {
  margin: 0 0 0.55rem;
  color: var(--caramel);
  font-weight: 800;
  font-size: 0.86rem;
}

.project-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.project-card p {
  color: #687168;
}

.project-meta-row {
  margin-top: auto;
}

.center-action {
  margin-top: 1.6rem;
  text-align: center;
}

.page-hero {
  max-width: 940px;
}

.page-hero h1,
.contact-copy h1 {
  font-size: clamp(3.2rem, 7.4vw, 6.7rem);
  line-height: 0.97;
}

.detail-hero {
  padding: 3rem 0 2rem;
}

.detail-hero h1 {
  max-width: 960px;
  font-size: clamp(2.65rem, 5.5vw, 5.2rem);
  line-height: 1.02;
}

.detail-hero > p:not(.eyebrow) {
  max-width: 78ch;
  color: #647067;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.6rem;
  color: var(--emerald);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 5rem;
}

.doc-sidebar {
  position: sticky;
  top: 102px;
  padding: 1rem;
}

.doc-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0.5rem 0;
}

.doc-sidebar p {
  color: #657066;
  margin: 0;
  font-size: 0.95rem;
}

.doc-paper {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 30px 30px 12px 30px;
  background:
    linear-gradient(90deg, rgba(18, 59, 49, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, auto;
}

.doc-paper p {
  max-width: 82ch;
  color: #60695f;
}

.full-submission {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.05), transparent 42%),
    #3b281f;
  color: #fffaf1;
  box-shadow: 16px 16px 0 rgba(158, 207, 189, 0.18);
  overflow: hidden;
}

.full-submission::after {
  content: "FULL FILE";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: -0.55rem;
  color: rgba(255, 250, 241, 0.045);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  pointer-events: none;
}

.full-submission .eyebrow {
  color: #f3cf89;
}

.full-submission h2 {
  margin-bottom: 0.7rem;
  color: #fffaf1;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.full-submission p {
  max-width: 70ch;
  margin: 0;
  color: rgba(255, 250, 241, 0.76);
  font-weight: 600;
}

.button.full-link {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 250, 241, 0.38);
  background: rgba(255, 250, 241, 0.08);
  color: #fffaf1;
  white-space: nowrap;
}

.button.full-link:hover {
  background: rgba(255, 250, 241, 0.16);
}

.doc-title {
  font-family: var(--font-display);
  color: #332920 !important;
  font-size: clamp(1.8rem, 3.7vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  font-weight: 900;
}

.doc-heading {
  margin-top: 2rem;
  color: var(--emerald) !important;
  font-size: 1.35rem;
  font-weight: 900;
}

.doc-subheading {
  margin-top: 1.2rem;
  color: #352b24 !important;
  font-weight: 900;
}

.doc-callout {
  border-left: 4px solid #9ecfbd;
  background: rgba(219, 236, 226, 0.42);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
  color: #314238 !important;
  font-weight: 700;
}

.doc-figure {
  margin: 1.2rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: 24px 24px 10px 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 36px rgba(18, 59, 49, 0.08);
}

.doc-figure:nth-of-type(2n) {
  width: min(92%, 820px);
  margin-left: auto;
  border-radius: 24px 10px 24px 24px;
}

.doc-figure:nth-of-type(3n) {
  width: min(78%, 680px);
  background: rgba(219, 236, 226, 0.38);
}

.doc-figure:nth-of-type(5n) {
  width: 100%;
}

.zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eaf4ef;
  cursor: zoom-in;
}

.zoom-trigger img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.doc-figure figcaption {
  padding: 0.85rem 1rem;
  color: #697269;
  font-weight: 700;
}

.doc-figure:nth-of-type(2n) figcaption {
  border-left: 4px solid var(--caramel);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(18, 59, 49, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mint);
  color: var(--emerald);
  font-size: 0.9rem;
}

td {
  color: #566057;
  font-size: 0.92rem;
}

.reflection-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1rem;
  padding-bottom: 6rem;
}

.reflection-card {
  padding: 1.3rem;
}

.reflection-card:nth-child(2) {
  margin-top: 2.2rem;
  background: rgba(219, 236, 226, 0.56);
  border-radius: 28px 8px 28px 28px;
}

.reflection-card:nth-child(3) {
  margin-top: -0.6rem;
  border-radius: 8px 28px 28px 28px;
}

.reflection-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 0.8rem;
}

.reflection-card p {
  color: #657066;
}

.contact-section {
  min-height: calc(100dvh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.contact-copy p {
  color: #667168;
  max-width: 66ch;
}

.contact-pills a,
.contact-pills span {
  border: 1px solid var(--line);
  background: white;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.contact-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.site-footer {
  margin-top: 2rem;
  background: var(--emerald);
  color: #eaf5ef;
}

.footer-grid {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 25, 20, 0.88);
  padding: 2rem;
  display: grid;
  place-items: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-height: 86dvh;
  width: auto;
  border-radius: 18px;
  background: white;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  background: white;
  color: var(--emerald);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    border-radius: 0;
  }

  .menu-toggle { display: block; }

  .nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a { justify-content: center; }

  .hero,
  .about-grid,
  .intro-grid,
  .section-heading,
  .doc-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 { font-size: clamp(4rem, 18vw, 6rem); }

  .project-strip,
  .project-grid,
  .timeline-list,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .project-grid .project-card,
  .project-grid .project-btw1,
  .project-grid .project-btw2,
  .project-grid .project-btw5,
  .project-grid .project-btw6 {
    grid-column: 1;
  }

  .project-card.card-shape-2,
  .project-card.card-shape-4,
  .timeline-list li:nth-child(3n),
  .fact-list div:nth-child(odd),
  .fact-list div:nth-child(even),
  .portrait-card {
    transform: none;
  }

  .doc-figure:nth-of-type(2n),
  .doc-figure:nth-of-type(3n) {
    width: 100%;
  }

  .doc-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .timeline-list li {
    grid-template-columns: 54px 1fr;
    gap: 0.8rem;
  }

  .doc-paper {
    padding: 1rem;
    border-radius: 20px;
  }

  .full-submission {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .button.full-link {
    width: 100%;
  }

  .page-hero h1,
  .contact-copy h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }
}

/* Dedicated assignment pages */
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
}

.detail-hero-copy > p:not(.eyebrow) {
  max-width: 76ch;
  color: #647067;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.detail-file-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 28px 28px 8px 28px;
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(158, 207, 189, 0.22);
  overflow: hidden;
}

.file-card-index {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(18, 59, 49, 0.08);
}

.detail-file-card p {
  margin: 0 0 0.45rem;
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.detail-file-card strong {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.detail-file-card small {
  position: relative;
  margin-top: 0.75rem;
  color: #667066;
  line-height: 1.55;
}

.sidebar-top-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-project="btw1"] .detail-file-card { background: #eef5ef; }
body[data-project="btw2"] .detail-file-card { background: #f7efd9; }
body[data-project="btw3"] .detail-file-card { background: #ecf2ef; }
body[data-project="btw4"] .detail-file-card { background: #f2eadf; }
body[data-project="btw5"] .detail-file-card { background: #f4e5da; }
body[data-project="btw6"] .detail-file-card { background: #e8efec; }

@media (max-width: 860px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-file-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .detail-actions .button {
    width: 100%;
  }
}
