:root {
  --color-ink: #111110;
  --color-ink-2: #111218;
  --color-gold: #d4a800;
  --color-muted: #6b6b7b;
  --color-border: rgba(0,0,0,0.08);
  --color-bg: #faf7f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--color-bg); }

body {
  color: var(--color-ink);
  font-family: 'DM Sans', sans-serif;
  background: var(--color-bg);
}

a { color: inherit; }

img { max-width: 100%; }

/* ---------- Scroll / load reveal animation (see animations.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 64px) 25px;
}

.nav__logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.4px;
  color: var(--color-ink-2);
  text-decoration: none;
}

.nav__links { display: flex; gap: 32px; align-items: center; }

.nav__links a {
  position: relative;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover { color: var(--color-ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: clamp(64px, 14vw, 120px) clamp(24px, 6vw, 56px) clamp(48px, 8vw, 80px);
}

.hero__container { width: 100%; max-width: 1311px; margin: 0 auto; }

.hero__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(48px, 9.4vw, 142.3px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__heading .line { display: block; }

.hero__heading .highlight {
  color: var(--color-gold);
  font-style: normal;
  opacity: 0.92;
}

.hero__subrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-top: 48px;
  padding-top: 8px;
}

.hero__paragraph {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(17, 17, 16, 0.5);
  max-width: 380px;
}

.hero__ctas { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0;
  text-decoration: none;
}

.btn-primary { color: var(--color-ink); font-weight: 400; }

.btn-primary .rule {
  width: 32px; height: 1px; background: var(--color-gold);
  display: inline-block; transition: width 0.2s ease;
}

.btn-primary:hover .rule { width: 44px; }

.btn-secondary { color: rgba(17, 17, 16, 0.38); font-weight: 300; transition: color 0.2s ease; }
.btn-secondary:hover { color: rgba(17, 17, 16, 0.65); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px);
  margin-top: 80px; padding-top: 32px; border-top: 1px solid rgba(17, 17, 16, 0.08);
}

.stat { display: flex; flex-direction: column; align-items: flex-start; }

.stat--link { text-decoration: none; transition: opacity 0.2s ease; }
.stat--link:hover { opacity: 0.65; }
.stat--link:hover .stat__number { color: var(--color-gold); }

.stat__number {
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 32px;
  letter-spacing: 0.16em; color: var(--color-ink); transition: color 0.2s ease;
}

.stat__label {
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 11.52px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(17, 17, 16, 0.32);
  margin-top: 4px; white-space: nowrap;
}

@media (max-width: 720px) {
  .hero__subrow { flex-direction: column; }
  .hero__ctas { padding-top: 0; }
}

/* ---------- Projects / Work ---------- */
.section {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 96px clamp(20px, 4.5vw, 64px) 128px;
  max-width: 1423px; margin: 0 auto; background: var(--color-bg);
}

.heading-group { display: flex; flex-direction: column; gap: 26px; }

.title {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -1.28px;
  color: var(--color-ink);
}

.title .accent { color: #f2d024; display: block; }
.title .line1 { display: block; }

.eyebrow {
  font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-muted);
}

.eyebrow em { font-style: italic; font-weight: 400; }

.project-list { display: flex; flex-direction: column; gap: 24px; width: 100%; margin-top: 48px; }

.project-card {
  background: #ffffff; border: 1px solid var(--color-border); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: row; width: 100%;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover { box-shadow: 0 8px 24px rgba(17,17,16,0.08); transform: translateY(-2px); }

.project-card .card-text {
  flex: 1 1 50%; min-width: 0; padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 280px;
}

.project-card .card-visual {
  flex: 1 1 50%; min-width: 0; position: relative; overflow: hidden; display: flex;
  background: #f4f4f6;
}

.card-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}
.project-card:hover .card-visual img { transform: scale(1.045); }

.card-heading {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25; letter-spacing: -0.9px; color: var(--color-ink-2); margin-top: 16px;
}

.card-meta { font-family: 'Figtree', sans-serif; font-weight: 500; font-size: 14px; color: var(--color-muted); margin-top: 8px; }

.card-desc {
  font-family: 'Figtree', sans-serif; font-weight: 300; font-size: 14px; line-height: 22.75px;
  color: var(--color-muted); margin-top: 24px; max-width: 567px;
}

.card-footer { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 32px; flex-wrap: wrap; gap: 16px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: #f4f4f6; color: var(--color-muted); font-size: 12px; font-weight: 500;
  line-height: 16px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

.view-project {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500;
  color: var(--color-muted); text-decoration: none; white-space: nowrap;
}

.view-project svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.project-card:hover .view-project { color: var(--color-ink); }
.project-card:hover .view-project svg { transform: translate(2px, -2px); }

@media (max-width: 860px) {
  .project-card { flex-direction: column; }
  .project-card .card-visual { min-height: 220px; }
  .section { padding: 64px 20px 80px; }
}

/* ---------- About ---------- */
.about {
  background: #f0ebe0;
  border-top: 1px solid rgba(17,17,16,0.06);
  padding: 101px clamp(20px, 4.5vw, 56px) 80px;
  display: flex; justify-content: center;
}

.about__inner { width: 100%; max-width: 1280px; display: flex; flex-wrap: wrap; gap: 64px; }

.about__col-left { flex: 0 1 496px; max-width: 496px; }

.about__heading {
  font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic;
  font-size: 56px; line-height: 1.1; letter-spacing: -1.12px; color: var(--color-ink);
}

.about__heading .gold { color: var(--color-gold); font-style: normal; font-weight: 700; }

.about__divider { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.about__divider .line { width: 40px; height: 1px; background: var(--color-gold); }
.about__divider .dot { width: 5px; height: 5px; border-radius: 2.5px; background: var(--color-gold); }

.about__links { display: flex; flex-direction: column; gap: 7px; margin-top: 40px; }

.about__links a {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 14px;
  letter-spacing: 0.28px; color: #757575; text-decoration: underline;
  transition: color 0.2s ease;
}
.about__links a:hover { color: var(--color-ink); }

.about__links a svg { width: 11px; height: 11px; flex-shrink: 0; transition: transform 0.25s ease; }
.about__links a:hover svg { transform: translate(2px, -2px); }

.about__col-right { flex: 1 1 480px; max-width: 720px; padding-top: 80px; }

.about__lead {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: 24px; line-height: 39px;
  color: #000; max-width: 667px;
}

.about__lead em.peach { font-style: italic; color: #000; }
.about__lead em.gold { font-style: italic; color: #000; }

.about__subhead {
  font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; font-size: 21px; line-height: 1.45;
  color: var(--color-gold); max-width: 667px; margin: 36px 0 0;
}

.about__para {
  font-family: 'Figtree', sans-serif; font-weight: 300; font-size: 16px; line-height: 26px;
  color: var(--color-muted); max-width: 667px; margin-top: 32px;
}

@media (max-width: 860px) {
  .about__col-right { padding-top: 0; }
}

/* ---------- Talks (lives inside the same tan band as About) ---------- */
.talks {
  background: #f0ebe0;
  border-bottom: 1px solid rgba(17,17,16,0.06);
  padding: 0 clamp(20px, 4.5vw, 56px) 101px;
  display: flex; justify-content: center;
}
.talks__inner { width: 100%; max-width: 1280px; }
.talks__label {
  font-family: 'Figtree', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #8a8476; margin: 0 0 32px;
}
.talks__list { display: flex; flex-direction: column; }
.talks__item {
  padding: 32px 0; border-top: 1px solid rgba(17,17,16,0.08);
}
.talks__item:first-child { border-top: none; padding-top: 0; }
.talks__title {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 22px; line-height: 1.3;
  color: var(--color-ink); max-width: 720px;
}
.talks__meta {
  font-family: 'Figtree', sans-serif; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--color-gold); margin: 8px 0 0;
}
.talks__desc {
  font-family: 'Figtree', sans-serif; font-weight: 300; font-size: 16px; line-height: 26px;
  color: var(--color-muted); max-width: 667px; margin: 14px 0 0;
}
.talks__item .view-project-link { margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-section {
  background: #e5dece; border-top: 1px solid var(--color-border);
  display: flex; justify-content: center;
  padding: clamp(48px, 8vw, 97px) clamp(20px, 4.5vw, 56px) clamp(48px, 8vw, 96px);
}

/* Same two-column math as .about__inner (496px label column + 64px gap), so the
   Contact heading/email line up with the "I am a Senior UX..." paragraph above. */
.contact-inner {
  width: 100%; max-width: 1280px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px;
}

.contact-label-col { flex: 0 1 496px; max-width: 496px; }

.contact-label {
  font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-muted);
  padding-top: 3px;
}

.contact-content {
  flex: 1 1 480px; max-width: 667px;
  display: flex; flex-direction: column; align-items: flex-start;
}

@media (max-width: 860px) {
  .contact-label-col { flex: 1 1 100%; max-width: none; }
}

.contact-heading {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25; letter-spacing: -1.2px; color: var(--color-ink-2); margin-bottom: 32px;
  white-space: nowrap;
}

.contact-link {
  display: inline-flex; align-items: center; gap: 8px; height: 27px; padding-bottom: 3px;
  border-bottom: 1px solid var(--color-ink-2); text-decoration: none; color: var(--color-ink-2);
  font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 16px; line-height: 24px;
  transition: opacity 0.15s ease;
}

.contact-link:hover { opacity: 0.65; }
.contact-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.25s ease; }
.contact-link:hover svg { transform: translate(2px, -2px); }

.contact-content__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; width: 100%; }
.contact-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--color-border);
}
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

@media (max-width: 700px) {
  .contact-section { flex-direction: column; }
  .contact-content { margin-left: 0; }
  .contact-heading { white-space: normal; }
  .contact-content__row { gap: 20px; }
}

footer.site-footer {
  text-align: center;
  padding: 32px;
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: var(--color-muted);
  background: #e5dece;
}

/* ---------- Case study detail pages (matches the real Figma case-study frames) ---------- */

.case-top {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 1152px; margin: 0 auto; width: 100%;
  padding: 144px 48px 80px;
  background: var(--color-bg);
}

.case-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Figtree', sans-serif; font-size: 12px; color: #8a8476;
}
.case-breadcrumb a { color: #8a8476; text-decoration: none; }
.case-breadcrumb a:hover { color: var(--color-ink); }
.case-breadcrumb .current { color: #171717; }
.case-breadcrumb .sep { color: #c7c2b4; }

.case-title-row { display: flex; justify-content: space-between; gap: 48px; width: 100%; margin-top: 56px; flex-wrap: wrap; }

.case-title-block { flex: 1 1 480px; min-width: 0; }
.case-title-sub {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: 36px; line-height: 1.25;
  letter-spacing: -0.9px; color: var(--color-ink-2); margin: 0;
}
.case-title-main {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(56px, 9vw, 142.3px);
  line-height: 0.95; letter-spacing: -2.8px; color: var(--color-gold); margin-top: 12px; white-space: nowrap;
}

.case-meta { flex: 0 0 260px; }
.case-meta .meta-row { border-top: 1px solid rgba(138,132,118,0.18); padding: 17px 0 16px; }
.case-meta .meta-row:first-child { border-top: 1px solid rgba(138,132,118,0.18); }
.case-meta .meta-label {
  font-family: 'Figtree', sans-serif; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: #8a8476; margin: 0;
}
.case-meta .meta-value {
  font-family: 'Figtree', sans-serif; font-size: 14px; color: rgba(51,51,51,0.8); margin: 6px 0 0;
}

.case-row {
  display: flex; gap: 64px; max-width: 1152px; margin: 0 auto; width: 100%;
  padding: 64px 48px; flex-wrap: wrap; background: var(--color-bg);
}
.case-row__label {
  flex: 0 0 180px; text-align: right;
  font-family: 'Figtree', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #8a8476;
  padding-top: 4px;
}
.case-row__content { flex: 1 1 480px; max-width: 672px; min-width: 0; }
.case-row__content p {
  font-family: 'Figtree', sans-serif; font-weight: 300; font-size: 18px; line-height: 31.5px; color: rgba(24,24,24,0.7);
  margin: 0;
}
.view-project-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 16px;
  font-family: 'Figtree', sans-serif; font-weight: 500; font-size: 15px; color: var(--color-muted);
  text-decoration: underline; transition: color 0.2s ease;
}
.view-project-link:hover { color: var(--color-ink); }
.view-project-link svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.view-project-link:hover svg { transform: translate(2px, -2px); }
.case-row__content img.inline-figure {
  margin-top: 24px; width: 100%; max-width: 475px; border-radius: 4px; display: block;
}

.case-note {
  font-family: 'Figtree', sans-serif; font-style: italic; font-size: 14px; color: var(--color-muted);
}

@media (max-width: 860px) {
  .case-row { flex-direction: column; gap: 16px; }
  .case-row__label { text-align: left; }
  .case-title-row { flex-direction: column; }
}

.device-frame-wrap { max-width: 1152px; margin: 0 auto; width: 100%; padding: 0 64px 96px; background: var(--color-bg); }
.device-frame {
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s ease;
}
.device-frame-wrap:hover .device-frame,
.overlap-figure__device:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 72px rgba(0,0,0,0.22);
}
.device-frame__bar {
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; justify-content: center; padding: 10px 0 11px;
}
.device-frame__bar .pill { width: 56px; height: 4px; border-radius: 999px; background: rgba(0,0,0,0.12); }
.device-frame img { width: 100%; display: block; object-fit: cover; }
.device-frame__chrome { display: flex; justify-content: center; }
.device-frame__chrome .notch { width: 341px; height: 12px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-top: none; border-radius: 0 0 10px 10px; }
.device-frame__home { display: flex; justify-content: center; padding-top: 8px; }
.device-frame__home .bar { width: 512px; max-width: 80%; height: 4px; border-radius: 999px; background: #252521; }

.case-caption {
  text-align: center; font-family: 'Figtree', sans-serif; font-size: 12px; color: #8a8476; padding-top: 16px;
}

/* "from Digital to Physical Art" style feature block (used on Portsmouth's Pattern) */
.case-feature {
  background: #ffffff;
  padding: 101px clamp(20px, 4.5vw, 56px) 141px;
  display: flex; justify-content: center;
}
.case-feature__inner { width: 100%; max-width: 1280px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.case-feature__text { flex: 0 1 496px; max-width: 496px; }
.case-feature__heading {
  font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic;
  font-size: 56px; line-height: 1.1; letter-spacing: -1.12px; color: var(--color-ink);
}
.case-feature__heading .gold { color: var(--color-gold); font-style: normal; }
.case-feature__image { flex: 1 1 320px; max-width: 372px; }
.case-feature__image img { width: 100%; display: block; border-radius: 4px; }


/* ---------- More work (text-only carousel before Contact) ---------- */
.more-work {
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 4.5vw, 56px) clamp(40px, 6vw, 56px);
}
.more-work__inner { width: 100%; max-width: 1280px; }
.more-work__label {
  font-family: 'Figtree', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #8a8476; margin: 0 0 28px;
}
.more-work__list {
  display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 10px; -webkit-overflow-scrolling: touch;
}
.more-work__item {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 200px; max-width: 260px;
  padding-right: 40px; border-right: 1px solid var(--color-border);
}
.more-work__item:last-child { border-right: none; padding-right: 0; }
.more-work__item a {
  display: block; font-family: 'Fraunces', serif; font-weight: 400; font-size: 17px;
  color: var(--color-ink); text-decoration: none; transition: color 0.2s ease;
}
.more-work__item a:hover { color: var(--color-gold); }
.more-work__item-meta {
  font-family: 'Figtree', sans-serif; font-size: 12px; color: var(--color-muted); margin: 6px 0 0;
}

@media (max-width: 600px) {
  .more-work__list { gap: 28px; }
  .more-work__item { min-width: 160px; padding-right: 28px; }
}
