/* ============================================================
   DESIGN TOKENS
   Change colours, font, and spacing here — it updates
   the whole site at once.
   ============================================================ */
:root {
  --ink:   #111111;   /* main text colour */
  --mid:   #555555;   /* secondary text */
  --light: #999999;   /* labels and muted text */
  --line:  #e8e8e8;   /* borders and dividers */
  --bg:    #fafaf8;   /* page background */

  --sans: 'DM Sans', system-ui, sans-serif;
  --gap:  clamp(2rem, 5vw, 4rem);   /* side padding, scales with screen */
  --max:  1600px;                    /* maximum grid width */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast; /* Sharpens in Chrome/Safari */
  image-rendering: crisp-edges;               /* Sharpens in Firefox */
}


/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  padding: 0 var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}


/* ============================================================
   HERO  (index.html)
   ============================================================ */
.hero {
  padding: clamp(4rem, 10vw, 8rem) var(--gap) clamp(3rem, 6vw, 5rem);
  padding-top: calc(60px + clamp(4rem, 10vw, 8rem)); /* account for fixed nav */
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Decorative soft background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(209, 193, 239, 0.18) 50%, transparent 80%);
  animation: floatA 14s ease-in-out infinite;
}

.hero-orb-2 {
  bottom: -60px; left: 30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(148, 227, 182, 0.14) 50%, transparent 80%);
  animation: floatB 18s ease-in-out infinite;
}

.hero-orb-3 {
  bottom: 20%; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(248, 151, 217, 0.12) 50%, transparent 80%);
  animation: floatC 22s ease-in-out infinite;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 1200px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero h1 .line-muted { color: var(--light); }
.hero h1 .line-bold  { font-weight: 500; color: var(--ink); }

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--mid);
  max-width: 700px;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(1.05); }
  66%       { transform: translate(20px, -40px) scale(0.97); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, -30px) scale(1.08); }
  66%       { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, 50px) scale(1.06); }
  66%       { transform: translate(60px, -20px) scale(0.98); }
}


/* ============================================================
   WORK GRID  (index.html)
   ============================================================ */
.projects-label {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gap) 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}

.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap) 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Card — the whole card is a link */
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.card:hover .card-thumb { opacity: 0.8; }

/* Thumbnail placeholder SVG icon */
.card-thumb svg { opacity: 0.18; }

/* Card thumbnail background colours.
   Each class maps to one project card in index.html.
   Change the hex values to whatever suits your project images,
   or replace the whole <div class="card-thumb"> with an <img> tag. */
.bg-purple   { background: #e8e6f0; }
.bg-green    { background: #e6eee8; }
.bg-peach    { background: #f0e8e6; }
.bg-blue     { background: #e6ecf0; }
.bg-sand     { background: #f0ede6; }
.bg-lavender { background: #eae6f0; }

.card-meta {
  display: flex;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

.card-year {
  font-size: 0.72rem;
  color: var(--line);
}

.card h2 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}

.card-arrow {
  font-size: 0.78rem;
  color: var(--light);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.card:hover .card-arrow {
  color: var(--ink);
  transform: translateX(4px);
}


/* ============================================================
   CASE STUDY  (project-one.html etc.)
   ============================================================ */

/* Account for fixed nav on all inner pages */
.case-topbar,
.about-grid,
.contact-wrap {
  padding-top: calc(60px + 2.5rem);
}

.case-topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
  padding-bottom: 0;
}

.case-back {
  font-size: 0.8rem;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.case-back:hover { color: var(--ink); }

.case-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--gap) 3.5rem;
  border-bottom: 1px solid var(--line);
}

.case-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.case-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

.case-year { font-size: 0.72rem; color: var(--line); }

.case-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Overview strip */
.case-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--gap);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.overview-item h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.overview-item p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

/* Content sections */
.case-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem var(--gap);
  border-bottom: 1px solid var(--line);
}

.case-section-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.case-section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  padding-top: 0.3rem;
}

.case-section-content p {
  font-size: 1.2rem;
  color: var(--mid);
  line-height: 1.85;
}

/* Process steps */
.process-steps { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--line);
  padding-top: 0.2rem;
}

.step-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 1.2rem;
  color: var(--mid);
  line-height: 1.7;
}

/* Images section */
.case-images {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem var(--gap);
  border-bottom: 1px solid var(--line);
}

.case-images h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 2rem;
}

/* Placeholder shown before you add real images */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.img-placeholder span {
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.img-placeholder svg { opacity: 0.3; }

.project-four-img {
  width: 70%;
  display: block;  /* Critical for margin: auto to work */
  margin: 0 auto;
}

/* Two images side by side */
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.img-row .img-placeholder {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

/* Real images inside the case study — match placeholder sizing */
.case-images > img {
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 100%;
  height: auto;
}

.img-row > img {
  border-radius: 4px;
  width: 100%;
  height: auto;
}

/* Outcome */
.case-outcome {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem var(--gap) 5rem;
}

.case-outcome h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.case-outcome p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: -0.01em;
}

/* Prev / next */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.case-nav a {
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.case-nav a:hover { color: var(--ink); }


/* ============================================================
   ABOUT  (about.html)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-left: var(--gap);
  padding-right: var(--gap);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh; /* This ensures it's at least the screen height but can grow */
  height: auto;      /* This allows the container to expand with the text */
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 60px;
  overflow: hidden;
}

/* The placeholder shown before you add your photo */
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.about-photo-placeholder svg { opacity: 0.3; }

.about-photo-placeholder span {
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* When you replace the placeholder with a real <img> tag,
   it will fill the box automatically thanks to the img rule at the top. */

.about-main {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.about-main h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.about-main p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.85;
  font-weight: 300;
}

.spacer { height: 1.5rem; }

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-exp {
  display: flex;       /* Change from inline-flex to flex */
  width: max-content;  /* Keep the button from stretching full width */
  margin-left: auto;
  margin-right: auto;
  margin-top: 70px;
}

.btn-resume:hover {
  background: var(--ink);
  color: var(--bg);
}


/* ============================================================
   CONTACT  (contact.html)
   ============================================================ */
.contact-wrap {
  padding-left: var(--gap);
  padding-right: var(--gap);
  padding-bottom: clamp(4rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 500px;
    padding-top: clamp(5rem, 15vh, 10rem); 
}

.contact-wrap p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--mid);
  border-color: var(--line);
}

.contact-note {
  font-size: 0.8rem;
  color: var(--light);
  margin-top: 3rem;
  margin-bottom: 0;
}


/* ============================================================
   FOOTER  (all pages)
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gap);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--light);
}

/* Only affects the about and contact pages */
.short-page footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box; /* Keeps padding from breaking the width */
}

/* Optional: Add space at the bottom of your content 
   so the footer doesn't overlap text on small screens */
.short-page main {
  padding-bottom: 100px;
}




/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .case-section-inner { grid-template-columns: 1fr; gap: 1rem; }
  .case-overview      { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid       { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .img-row    { grid-template-columns: 1fr; }
  .case-nav   { flex-direction: column; gap: 1rem; text-align: center; }
}

.case-brand {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem var(--gap);
  border-bottom: 1px solid var(--line);
}

.case-brand-intro {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.85;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.case-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.brand-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}

.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swatch-hex {
  font-size: 0.7rem;
  color: var(--light);
  letter-spacing: 0.04em;
}

.type-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.type-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.type-use {
  font-size: 0.75rem;
  color: var(--light);
}

.type-name {
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.2;
}

.type-detail {
  font-size: 0.75rem;
  color: var(--light);
}

.ui-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ui-state {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

.ui-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  font-family: var(--sans);
}

.ui-btn-normal {
  background: #39405b;
  color: #ffffff;
}

.ui-btn-hover {
  background: #6571bf;
  color: #ffffff;
}

@media (max-width: 768px) {
  .case-brand-grid { grid-template-columns: 1fr; }
}
