/* Pastel yellow and terracotta portfolio system for Kate Aubrey Galang Gozum */
:root {
  --pastel-yellow: #FFF4C7;
  --pale-yellow: #FFF9E6;
  --warm-white: #FFFDF7;
  --linen: #F6E8D3;
  --khaki: #D8C69A;
  --camel: #B98C6D;
  --terracotta: #C96F52;
  --terracotta-dark: #A94F38;
  --espresso: #2D2926;
  --soft-text: #64574F;
  --soft-border: #E5D4B6;
  --charcoal: var(--espresso);
  --charcoal-soft: var(--soft-text);
  --white: var(--warm-white);
  --line: var(--soft-border);
  --line-strong: #D8C69A;
  --shadow: 0 16px 38px rgba(45, 41, 38, 0.06);
  --display: "Aptos Display", "Segoe UI", Arial, sans-serif;
  --body: "Aptos", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--pastel-yellow);
  background-image:
    linear-gradient(180deg, rgba(255, 253, 247, 0.2), transparent 380px),
    repeating-linear-gradient(0deg, rgba(45, 41, 38, 0.014) 0 1px, transparent 1px 6px);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--warm-white);
  background: var(--espresso);
  font-weight: 900;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 212, 182, 0.88);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 4px;
  height: 38px;
  border-radius: 0 999px 999px 0;
  background: var(--terracotta);
  opacity: 0.9;
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  line-height: 1.15;
  font-family: var(--display);
  font-weight: 850;
  font-size: 18px;
}

.brand span {
  margin-top: 4px;
  color: var(--terracotta-dark);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a,
.case-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-soft);
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(var(--terracotta), var(--terracotta)) left bottom / 0 2px no-repeat;
  transition: background-size 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.case-nav a:hover {
  color: var(--charcoal);
  background-size: 100% 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--linen);
  color: var(--charcoal);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-white);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.mobile-panel a:hover {
  color: var(--terracotta-dark);
  background: rgba(246, 232, 211, 0.62);
}

.mobile-panel.is-open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  min-height: calc(100svh - 74px);
  padding: 0;
  border-bottom: 1px solid var(--line);
  background-color: var(--pastel-yellow);
  background-image:
    linear-gradient(112deg, rgba(255, 253, 247, 0.48) 0 28%, transparent 28% 100%),
    repeating-linear-gradient(90deg, rgba(45, 41, 38, 0.012) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(45, 41, 38, 0.01) 0 1px, transparent 1px 9px);
}

.hero::before {
  content: "";
  position: absolute;
  right: max(-180px, calc((100vw - var(--max)) / 2 - 260px));
  bottom: -16%;
  width: min(46vw, 640px);
  height: 132%;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.72), rgba(246, 232, 211, 0.92) 52%, rgba(216, 198, 154, 0.42));
  opacity: 0.76;
  transform: skewX(-8deg);
  transform-origin: right bottom;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(390px, calc((100vw - var(--max)) / 2 + 370px));
  top: clamp(190px, 28vh, 270px);
  width: 248px;
  height: 164px;
  background:
    radial-gradient(circle at 10px 130px, var(--terracotta) 0 4px, transparent 4.5px),
    radial-gradient(circle at 110px 78px, var(--camel) 0 4px, transparent 4.5px),
    radial-gradient(circle at 226px 18px, var(--terracotta) 0 4px, transparent 4.5px),
    linear-gradient(153deg, transparent 8px, rgba(201, 111, 82, 0.42) 9px 10px, transparent 11px);
  opacity: 0.48;
  transform: rotate(-4deg);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(470px, 0.82fr);
  gap: clamp(34px, 4.8vw, 66px);
  align-items: stretch;
  min-height: calc(100svh - 74px);
}

.hero-grid > * {
  position: relative;
  z-index: 2;
}

.hero-grid > .reveal:first-child {
  align-self: center;
  padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 50px);
}

.hero-grid::before {
  content: "";
  position: absolute;
  right: max(-80px, calc((100vw - var(--max)) / 2 - 110px));
  bottom: 42px;
  width: min(38vw, 520px);
  height: min(46vh, 330px);
  background:
    linear-gradient(rgba(45, 41, 38, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 41, 38, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.hero-grid::after {
  content: none;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 8px;
  color: var(--terracotta-dark);
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.kicker-line {
  display: block;
  width: 74px;
  height: 3px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: var(--terracotta);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--charcoal);
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.75vw, 68px);
  font-weight: 900;
}

.hero-name {
  margin: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 0 0 12px;
  color: var(--charcoal-soft);
  font-size: clamp(17px, 1.26vw, 19px);
  line-height: 1.52;
}

.hero-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(201, 111, 82, 0.28);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(255, 253, 247, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.hero-pill::before {
  content: "";
  width: 26px;
  height: 12px;
  background:
    radial-gradient(circle at 3px 50%, var(--terracotta) 0 3px, transparent 3.5px),
    radial-gradient(circle at 13px 50%, var(--terracotta) 0 3px, transparent 3.5px),
    radial-gradient(circle at 23px 50%, var(--terracotta) 0 3px, transparent 3.5px),
    linear-gradient(90deg, transparent 2px, var(--terracotta) 2px 24px, transparent 24px);
}

.hero-actions,
.project-actions,
.contact-actions,
.case-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}

.hero-actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--warm-white);
  background: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  background: #8F3F2D;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--terracotta-dark);
  background: rgba(255, 253, 247, 0.74);
  border-color: rgba(201, 111, 82, 0.42);
}

.btn-secondary:hover {
  color: var(--terracotta-dark);
  background: rgba(255, 249, 230, 0.92);
  border-color: var(--terracotta);
}

.btn-text {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid var(--terracotta);
}

.external-mark {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.92em;
  line-height: 1;
  transform: translateY(-1px);
}

.demo-note {
  margin: 12px 0 0;
  color: var(--soft-text);
  font-size: 15px;
  line-height: 1.55;
}

.portrait-wrap {
  position: relative;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: min(0px, calc((var(--max) - 100vw) / 2));
  margin-bottom: 0;
  isolation: isolate;
}

.portrait-wrap::before {
  content: none;
}

.portrait-wrap::after {
  content: none;
}

.portrait-wrap img {
  position: relative;
  width: clamp(520px, 45vw, 650px);
  max-width: none;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  clip-path: none;
  filter: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.54) 7%, #000 21%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.82) 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.54) 7%, #000 21%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.82) 93%, transparent 100%);
  mask-composite: intersect;
  z-index: 2;
}

.section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 96px;
}

.section.alt {
  background: rgba(255, 249, 230, 0.62);
}

#work {
  background: var(--pale-yellow);
  padding-top: 76px;
}

#process {
  background: linear-gradient(180deg, rgba(255, 249, 230, 0.78), rgba(246, 232, 211, 0.34));
}

#capabilities {
  background: var(--pastel-yellow);
}

#about {
  background:
    radial-gradient(circle at 90% 14%, rgba(216, 198, 154, 0.38), transparent 22%),
    rgba(255, 249, 230, 0.82);
}

#credentials {
  background: var(--warm-white);
}

#digital-work {
  background:
    radial-gradient(circle at 15% 6%, rgba(216, 198, 154, 0.32), transparent 22%),
    rgba(246, 232, 211, 0.44);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.45vw, 52px);
  font-weight: 900;
}

.section-copy {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 17px;
  line-height: 1.76;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto;
  min-height: 100%;
  border: 1px solid rgba(229, 212, 182, 0.86);
  border-radius: 16px;
  background: var(--warm-white);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(45, 41, 38, 0.045);
}

.project-card.featured::after {
  content: "";
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  right: clamp(22px, 3vw, 42px);
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), rgba(201, 111, 82, 0.08));
}

.project-card.featured {
  background:
    linear-gradient(145deg, rgba(255, 249, 230, 0.86), rgba(255, 253, 247, 0.94)),
    var(--pale-yellow);
}

.project-card.inventory-monitoring-restock {
  background:
    linear-gradient(145deg, rgba(246, 232, 211, 0.82), rgba(255, 253, 247, 0.94)),
    var(--linen);
}

.project-card.lead-follow-up-task-automation {
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(216, 198, 154, 0.2)),
    var(--warm-white);
}

.project-card.cravings-to-go-chatbot {
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(246, 232, 211, 0.58)),
    var(--warm-white);
}

.project-card:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  overflow: hidden;
  min-height: 100%;
  border-right: 1px solid rgba(229, 212, 182, 0.82);
  background: rgba(255, 249, 230, 0.78);
}

.project-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.02);
}

.project-media-diagram {
  display: grid;
}

.project-diagram {
  display: grid;
  min-height: 100%;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.78), rgba(246, 232, 211, 0.54)),
    var(--pale-yellow);
}

.project-diagram-label {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-diagram ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-diagram li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 212, 182, 0.9);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.84);
  color: var(--charcoal);
  font-weight: 850;
  line-height: 1.28;
}

.project-diagram li + li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -13px;
  width: 2px;
  height: 13px;
  background: var(--terracotta);
}

.project-diagram span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--warm-white);
  background: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
}

.project-body {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.project-card h3 {
  margin: 0;
  font-size: clamp(27px, 2.7vw, 40px);
}

.project-card p {
  margin: 0;
  color: var(--charcoal-soft);
}

.project-status {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(201, 111, 82, 0.22);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(255, 249, 230, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.workflow-line {
  position: relative;
  padding-left: 22px;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.workflow-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--terracotta);
}

.tool-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-row li {
  padding: 6px 9px;
  border: 1px solid rgba(201, 111, 82, 0.18);
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 253, 247, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.supporting-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.project-card.compact {
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: auto;
  border-radius: 14px;
  box-shadow: none;
  background: rgba(255, 253, 247, 0.82);
}

.project-card.compact.highlight-support {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  background:
    radial-gradient(circle at 0 100%, rgba(216, 198, 154, 0.26), transparent 30%),
    rgba(255, 253, 247, 0.9);
}

.project-card.compact .project-media {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.project-card.compact .project-media img {
  height: 100%;
  aspect-ratio: auto;
}

.process-flow {
  display: grid;
  gap: 16px;
}

.process-track {
  --process-gap: 18px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  min-height: 30px;
}

.process-node {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
}

.process-node::before {
  content: "";
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 4px solid var(--warm-white);
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 0 0 0 1px rgba(201, 111, 82, 0.24);
}

.process-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  right: calc(-50% - var(--process-gap));
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), rgba(201, 111, 82, 0.22));
  transform: translateY(-50%);
  z-index: 1;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.process-steps::before {
  content: none;
}

.process-step {
  position: relative;
  min-height: 240px;
  padding: 28px 24px;
  border: 1px solid rgba(229, 212, 182, 0.82);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.82);
}

.process-step::before {
  content: none;
}

.process-step span {
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 900;
}

.process-step h3 {
  margin: 26px 0 12px;
  font-size: 23px;
}

.process-step p {
  margin: 0;
  color: var(--charcoal-soft);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(229, 212, 182, 0.86);
  border-radius: 14px;
  background: var(--warm-white);
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(201, 111, 82, 0.22);
  border-radius: 10px;
  color: var(--terracotta-dark);
  background: rgba(246, 232, 211, 0.64);
}

.capability-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.capability ul,
.credential-list,
.contribution-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability li,
.credential-list li,
.contribution-list li {
  color: var(--charcoal-soft);
  font-weight: 750;
  line-height: 1.38;
}

.capability-note {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 111, 82, 0.2);
  border-left: 4px solid var(--terracotta);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.66);
}

.capability-note h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.capability-note p {
  margin: 0;
  color: var(--charcoal-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 58px;
  align-items: center;
}

.about-copy {
  color: var(--charcoal-soft);
  font-size: 18px;
}

.about-copy p {
  margin-bottom: 18px;
}

.about-photo {
  position: relative;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 42px -28px -32px 46px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(246, 232, 211, 0.86), rgba(216, 198, 154, 0.44));
}

.about-photo::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 24%;
  width: 1px;
  height: 180px;
  background: rgba(201, 111, 82, 0.38);
}

.about-photo img {
  position: relative;
  width: min(100%, 380px);
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 100%),
    linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  mask-composite: intersect;
  z-index: 1;
}

.credential-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.credential-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.credential-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 58px;
  height: 2px;
  background: var(--terracotta);
}

.credential-row h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.credential-row p {
  margin: 0;
  color: var(--charcoal-soft);
}

.digital-stack {
  display: grid;
  gap: 28px;
}

.digital-project {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(229, 212, 182, 0.86);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 14px 34px rgba(45, 41, 38, 0.04);
}

.digital-project h3 {
  margin-bottom: 8px;
  font-size: 30px;
}

.digital-subtitle {
  color: var(--terracotta-dark);
  font-weight: 900;
}

.digital-project p {
  color: var(--charcoal-soft);
}

.evidence-grid {
  display: grid;
  gap: 12px;
}

.digital-sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

.digital-sample-grid .evidence-figure:first-child {
  grid-row: span 2;
}

.digital-sample-grid .evidence-figure:first-child img {
  height: 100%;
  object-fit: cover;
}

.evidence-grid.two {
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: end;
}

.evidence-grid.profile {
  grid-template-columns: minmax(0, 1fr);
}

.evidence-figure {
  margin: 0;
  border: 1px solid rgba(229, 212, 182, 0.92);
  border-radius: 10px;
  background: rgba(255, 249, 230, 0.82);
  overflow: hidden;
}

.evidence-figure img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
  transition: transform 240ms ease;
}

.evidence-figure:hover img {
  transform: scale(1.015);
}

.evidence-figure figcaption {
  padding: 12px 14px;
  color: var(--charcoal-soft);
  font-size: 14px;
}

.evidence-figure figcaption strong {
  display: block;
  color: var(--charcoal);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, var(--espresso), #3A2B27 58%, var(--terracotta-dark));
  background-size: 34px 100%, auto;
  color: var(--warm-white);
}

.contact-section::before {
  content: none;
}

.contact-section h2,
.contact-section h3,
.contact-section .eyebrow {
  color: var(--warm-white);
}

.contact-section .section-copy,
.contact-section p {
  color: rgba(255, 253, 247, 0.8);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.8fr);
  gap: 48px;
}

.contact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.contact-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 253, 247, 0.84);
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--khaki);
}

.social-block {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.social-block h3,
.footer-social > span {
  margin: 0;
  color: var(--warm-white);
  font-size: 14px;
  font-weight: 900;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-link {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 247, 0.34);
  border-radius: 8px;
  color: var(--terracotta-dark);
  background: var(--pale-yellow);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--white);
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-1px);
}

.social-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 5;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--charcoal);
  background: var(--warm-white);
  box-shadow: 0 10px 20px rgba(45, 41, 38, 0.12);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.social-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--warm-white);
  transform: translateX(-50%) rotate(45deg);
}

.social-link:hover .social-tooltip,
.social-link:focus-visible .social-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.07);
}

label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 253, 247, 0.9);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 253, 247, 0.24);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--warm-white);
  background: rgba(255, 253, 247, 0.08);
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 253, 247, 0.5);
}

.form-hint {
  margin: 0;
  color: rgba(255, 253, 247, 0.68);
  font-size: 13px;
}

.form-error {
  display: none;
  margin-top: 6px;
  color: #FFD2C7;
  font-size: 13px;
  font-weight: 800;
}

footer {
  padding: 38px 0;
  background: var(--espresso);
  color: rgba(255, 253, 247, 0.72);
  border-top: 1px solid rgba(255, 253, 247, 0.12);
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 21px;
}

.footer-brand span {
  color: rgba(255, 253, 247, 0.78);
  font-weight: 800;
}

.footer-social {
  display: grid;
  gap: 10px;
  width: fit-content;
}

.social-row-footer .social-link {
  width: 44px;
  height: 44px;
}

.social-row-footer .social-link svg {
  width: 18px;
  height: 18px;
}

.case-page {
  background: var(--pastel-yellow);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 232, 211, 0.7), transparent 22%),
    radial-gradient(circle at 12% 82%, rgba(255, 244, 199, 0.52), transparent 25%),
    var(--pale-yellow);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: end;
}

.case-hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
}

.case-summary {
  color: var(--charcoal-soft);
  font-size: 18px;
}

.case-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.case-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.fact {
  padding: 18px;
  border: 1px solid rgba(229, 212, 182, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.82);
}

.fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact p,
.fact li {
  margin: 0;
  color: var(--charcoal-soft);
  font-weight: 760;
}

.case-content {
  display: grid;
  gap: 28px;
}

.case-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.case-section h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.case-section p {
  color: var(--charcoal-soft);
}

.case-section ul,
.case-section ol {
  color: var(--charcoal-soft);
  padding-left: 22px;
}

.workflow-box {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(229, 212, 182, 0.92);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 198, 154, 0.36), transparent 28%),
    var(--warm-white);
  box-shadow: 0 16px 36px rgba(45, 41, 38, 0.05);
}

.flow-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 230, 0.86);
  color: var(--charcoal);
  font-weight: 850;
}

.flow-steps li + li::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -10px;
  width: 2px;
  height: 10px;
  background: var(--terracotta);
}

.flow-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--warm-white);
  background: var(--terracotta-dark);
  font-size: 12px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.branch {
  padding: 14px;
  border: 1px solid rgba(201, 111, 82, 0.22);
  border-radius: 8px;
  background: var(--linen);
  color: var(--charcoal);
  font-weight: 850;
}

.case-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-evidence .evidence-figure.wide {
  grid-column: 1 / -1;
}

.note {
  padding: 22px;
  border: 1px solid rgba(201, 111, 82, 0.24);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  background: rgba(246, 232, 211, 0.42);
}

.note p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(45, 41, 38, 0.78);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox-panel {
  position: relative;
  width: min(100%, 1040px);
  max-height: min(88vh, 900px);
  padding: 18px;
  border-radius: 22px;
  background: var(--warm-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.image-lightbox img {
  width: 100%;
  max-height: calc(88vh - 92px);
  object-fit: contain;
  border-radius: 14px;
}

.image-lightbox-caption {
  margin: 12px 48px 0 0;
  color: var(--soft-text);
  font-size: 14px;
}

.image-lightbox-close {
  position: absolute;
  right: 18px;
  bottom: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 111, 82, 0.28);
  border-radius: 8px;
  color: var(--terracotta-dark);
  background: var(--pale-yellow);
  font-weight: 900;
}

.image-lightbox-close:hover {
  color: var(--warm-white);
  background: var(--terracotta-dark);
}

@media (max-width: 1080px) {
  .hero-grid::before,
  .hero-grid::after {
    display: none;
  }

  .portrait-wrap {
    justify-content: center;
    margin-right: 0;
    min-height: 560px;
  }

  .portrait-wrap img {
    width: min(88vw, 590px);
    height: min(82vw, 650px);
  }

  .capability-grid,
  .digital-sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track {
    display: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-card.compact,
  .digital-project,
  .case-hero-grid,
  .case-body,
  .contact-layout,
  .about-grid,
  .section-head,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-media {
    order: 0;
  }

  .project-media,
  .project-card.compact .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-sidebar {
    position: static;
  }

  .evidence-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .wrap,
  .mobile-panel {
    width: min(100% - 32px, var(--max));
  }

  .nav-inner {
    min-height: 66px;
  }

  .nav-links,
  .case-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero::before {
    right: -26vw;
    top: auto;
    bottom: -8%;
    width: 72vw;
    height: 56%;
    opacity: 0.34;
    transform: skewX(-7deg);
  }

  .hero::after {
    display: none;
  }

  .hero-grid {
    gap: 16px;
    min-height: auto;
  }

  .hero-grid > .reveal:first-child {
    align-self: auto;
    padding: 38px 0 0;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 9.5vw, 50px);
    line-height: 1.03;
  }

  .hero-lede {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.48;
  }

  .hero-pill {
    margin-bottom: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    gap: 10px;
  }

  .hero-actions .btn {
    min-height: 50px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .portrait-wrap {
    margin: 0 calc(50% - 50vw);
    min-height: auto;
    min-height: 430px;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }

  .portrait-wrap::before {
    content: none;
  }

  .portrait-wrap::after {
    content: none;
  }

  .portrait-wrap img {
    width: min(112vw, 500px);
    max-width: none;
    min-height: 0;
    height: min(122vw, 530px);
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    clip-path: none;
    filter: none;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.68) 6%, #000 14%, #000 92%, transparent 100%),
      linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.84) 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.68) 6%, #000 14%, #000 92%, transparent 100%),
      linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.84) 94%, transparent 100%);
    mask-composite: intersect;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 34px;
  }

  .project-grid,
  .supporting-projects,
  .capability-grid,
  .digital-sample-grid,
  .process-steps,
  .case-evidence,
  .branch-grid,
  .credential-row {
    grid-template-columns: 1fr;
  }

  .project-card.compact .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-steps {
    gap: 14px;
    padding-top: 0;
  }

  .process-steps::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .process-step {
    margin-left: 34px;
    min-height: auto;
    padding: 22px;
  }

  .process-step::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -34px;
    width: 20px;
    height: 20px;
    border: 4px solid var(--warm-white);
    border-radius: 999px;
    background: var(--terracotta);
    box-shadow: 0 0 0 1px rgba(201, 111, 82, 0.24);
  }

  .credential-row {
    gap: 8px;
  }

  .digital-project {
    padding: 20px;
  }

  .digital-sample-grid .evidence-figure:first-child {
    grid-row: auto;
  }

  .project-actions,
  .case-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .btn-text {
    width: 100%;
  }

  .about-photo {
    max-width: 330px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
