/* Experience (branding work) and the site footer. */

/* ───────── Experience ───────── */

.xp {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(40px, 6vh, 80px);
  background: var(--bg);
}

.xp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px 64px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto clamp(36px, 6vh, 64px);
}
.xp h2 {
  margin: 0.45em 0 0;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.xp-intro p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.6; letter-spacing: -0.01em; color: var(--ink-2); }
.xp-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.xp-call svg, .xp-go svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp-call svg { width: 16px; transition: transform 200ms var(--ease-out); }

.xp-list { display: grid; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
/* each brand sits on its own surface, alternating lighter and normal, so they read as separate jobs */
.xp-item {
  padding: 0 clamp(18px, 2.6vw, 32px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: #ebe9e2; /* normal */
  transition: background-color 300ms var(--ease-out);
}
.xp-item:nth-child(odd) { background: #fdfcfa; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); } /* lighter */

.xp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
  gap: 16px 32px;
  align-items: center;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.xp-name { display: grid; gap: 10px; }
.xp-client {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.xp-date { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.xp-date::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(29, 29, 31, 0.35); }
.xp-role { display: grid; gap: 9px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.xp-tags { display: flex; gap: 8px; justify-self: end; }
.tag {
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(29, 29, 31, 0.05);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.xp-item.is-open .tag { background: var(--ink); color: #fff; box-shadow: none; }

/* placeholders until the real work is in */
.sk { display: block; height: 0.8em; border-radius: 6px; background: rgba(29, 29, 31, 0.08); }
.sk-title { width: min(320px, 80%); height: 26px; border-radius: 8px; background: rgba(29, 29, 31, 0.11); }
.sk-date { width: 150px; }
.sk-line { width: 100%; max-width: 320px; }
.sk-short { width: 60%; }
.sk-tag { width: 64px; height: 31px; padding: 0; }
.xp-text .sk { margin-bottom: 11px; max-width: none; }

/* The panel opens by animating its grid row from 0fr to 1fr: the content's own
   height, no measuring, and reversible mid-way like any transition. */
.xp-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 560ms var(--ease-out);
}
.xp-item.is-open .xp-panel { grid-template-rows: 1fr; }
.xp-panel-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 48px;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms var(--ease-out), transform 480ms var(--ease-out);
}
.xp-item.is-open .xp-panel-in { opacity: 1; transform: none; transition-delay: 120ms; }
.xp-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 30px; }
.shot-slot, .xp-shots img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(150deg, rgba(29, 29, 31, 0.06), rgba(29, 29, 31, 0.12));
}
/* images settle in one after another as the row opens */
.xp-shots > * { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 300ms var(--ease-out), transform 520ms var(--ease-out); }
.xp-item.is-open .xp-shots > * { opacity: 1; transform: none; }
.xp-item.is-open .xp-shots > :nth-child(1) { transition-delay: 140ms; }
.xp-item.is-open .xp-shots > :nth-child(2) { transition-delay: 200ms; }
.xp-item.is-open .xp-shots > :nth-child(3) { transition-delay: 260ms; }
.xp-more { display: flex; align-items: center; gap: 28px; padding-bottom: 30px; }
.xp-text { flex: 1; margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.xp-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.xp-go:active { transform: scale(0.96); }
.xp-go svg { width: 18px; transition: transform 300ms var(--ease-out); }

/* the row's open/close cue: a plus that turns into a minus */
.xp-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.06);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 420ms var(--ease-out);
}
.xp-plus svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.xp-plus path { transition: d 420ms var(--ease-out); }
.xp-item.is-open .xp-plus { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(180deg); }
.xp-item.is-open .xp-plus path { d: path("M12 12v0M5 12h14"); }

/* the pictures open the case study too */
.xp-shots button {
  display: block;
  align-self: start; /* as tall as its picture, so the chip sits on the picture */
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.xp-shots button img { transition: transform 700ms var(--ease-out); }
.xp-shots button::after { /* "View" chip on each picture: says it can be opened, on touch too */
  content: "View";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 11px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.xp-shots button:not(:first-child)::after { content: none; }
.xp-shots button:active img { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .xp-call:hover svg { transform: translate(2px, -2px); }
  .xp-item:not(.is-open) .xp-row:hover .tag { background: rgba(29, 29, 31, 0.1); }
  .xp-item:not(.is-open) .xp-row:hover .sk-title { background: rgba(29, 29, 31, 0.16); }
  .xp-go:hover { background: #000; }
  .xp-go:hover svg { transform: translate(2px, -2px); }
  .xp-row:hover .xp-plus { background: rgba(29, 29, 31, 0.12); }
  .xp-item.is-open .xp-row:hover .xp-plus { background: #000; }
  .xp-shots button:hover img { transform: scale(1.04); }
}
.xp-row:focus-visible { outline-offset: 2px; border-radius: 8px; }

@media (max-width: 900px) {
  .xp-head { grid-template-columns: 1fr; align-items: start; }
  .xp-row { position: relative; grid-template-columns: 1fr; gap: 14px; padding-right: 56px; }
  .xp-tags { justify-self: start; }
  .xp-plus { position: absolute; top: 26px; right: 0; }
  .xp-panel-in { grid-template-columns: 1fr; }
  .xp-shots { padding-bottom: 0; }
  .xp-more { flex-direction: column; align-items: stretch; gap: 18px; }
  .xp-go { justify-content: center; }
}

/* ───────── Footer ───────── */

.site-foot {
  position: relative;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 9vh, 96px) var(--gutter) 28px;
  background: #1d1d1f;
  color: #f5f5f7;
}
/* faint outlined panels in the background, like layers stacked behind the bar */
.foot-lines i {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
}
.foot-lines i:nth-child(1) { left: -2%; top: 18%; width: 9%; height: 64%; }
.foot-lines i:nth-child(2) { left: 6%; top: -30%; width: 14%; height: 80%; }
.foot-lines i:nth-child(3) { right: 6%; top: -30%; width: 18%; height: 70%; }
.foot-lines i:nth-child(4) { right: -3%; top: 40%; width: 12%; height: 80%; }

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-nav a {
  padding: 9px 16px;
  border-radius: 980px;
  font-size: 0.9375rem;
  color: rgba(245, 245, 247, 0.8);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.foot-nav a[aria-current="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }

.foot-mail { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.foot-email {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
/* underline that draws in from the left on hover */
.foot-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms var(--ease-out);
}
.foot-copy {
  padding: 8px 14px;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.85);
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.foot-copy:active { transform: scale(0.96); }
.foot-copy.is-done { background: #ff5a0a; color: #fff; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1180px;
  margin: clamp(48px, 8vh, 80px) auto 0;
  padding: 20px 140px 0 0; /* room for the mascot standing in the corner */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(245, 245, 247, 0.55);
}
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; transition: color 200ms ease; }
.foot-top svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .foot-email:hover::after { transform: scaleX(1); transform-origin: left; }
  .foot-copy:hover { background: rgba(255, 255, 255, 0.14); }
  .foot-top:hover { color: #fff; }
  .foot-top:hover svg { transform: translateY(-3px); }
}
.site-foot :focus-visible { outline-color: #fff; }

@media (max-width: 640px) {
  .foot-mail { align-items: flex-start; }
  .foot-base { flex-direction: column; padding-right: 0; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .xp-panel, .xp-panel-in, .xp-shots > * { transition-duration: 150ms; transition-delay: 0s !important; transform: none !important; }
}

/* ───────── Brand case study (inside the shared project sheet) ───────── */

.brand-hero { margin: 0; padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 40px) 0; }
.brand-hero img { display: block; width: 100%; max-height: 62vh; object-fit: cover; border-radius: 18px; }

.brand-challenge { margin-bottom: clamp(32px, 5vw, 56px); }
.brand-challenge ul, .concept ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.brand-challenge li, .concept li {
  position: relative;
  padding-left: 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: #48484d;
}
.brand-challenge li::before, .concept li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2d1f;
}
.brand-challenge strong, .concept strong { color: var(--ink); font-weight: 600; }

.brand-concepts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-bottom: clamp(32px, 5vw, 56px); }
.concept img { display: block; width: 100%; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.concept p + p { margin-top: 0.75em; }
.concept-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px !important;
  font-size: 0.8125rem !important;
  font-weight: 600;
  color: var(--ink-2) !important;
}
.concept-kicker span { padding: 3px 9px; border-radius: 980px; background: #ff2d1f; color: #fff; font-size: 0.75rem; }
.concept h3 { margin-bottom: 0.4em; }

.brand-verdict { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.06); }
.brand-verdict p + p { margin-top: 0.75em; }

@media (max-width: 700px) {
  .brand-concepts { grid-template-columns: 1fr; }
}

.brand-block { margin-bottom: clamp(32px, 5vw, 52px); }
.brand-figs { display: grid; gap: 14px; margin-top: 18px; }
.brand-figs img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.brand-values { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.brand-values li { position: relative; padding-left: 18px; font-size: 1rem; line-height: 1.55; color: #48484d; }
.brand-values li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: #8d5ce0; }
.brand-values strong { color: var(--ink); font-weight: 600; }
.brand-figs--two { grid-template-columns: 1fr 1fr; }
.brand-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.brand-gallery img { display: block; width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.brand-note { margin-top: 0.9em !important; }
.brand-values--green li::before { background: #4db848; }
@media (max-width: 700px) {
  .brand-figs--two { grid-template-columns: 1fr; }
}
