/* Cigdem Fareed portfolio: shared styles
   Colours and fonts taken from the original Adobe Portfolio site. */

:root {
  --teal: #2a5f5f;
  --teal-dark: #1d4444;
  --orange: #f2a74b;
  --orange-dark: #e29433;
  --ink: #3b3b3b;
  --paper: #ffffff;
  --paper-soft: #fdfffe;
  --line: #e7ecec;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
  min-height: 64px;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--teal);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange-dark);
  border-bottom-color: currentColor;
}

.brand-mark img { height: 52px; width: auto; }

.header-social { justify-self: end; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--teal-dark);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-link:hover { background: var(--line); color: var(--teal); }
.icon-link svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Hero (Home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh; /* the Home page has no header: the hero fills the screen */
}

.hero-visual {
  /* Matches the original: the logo fills the panel width, with a faint band above and below */
  background: #f9f9f9;
  display: grid;
  place-items: center;
}
.hero-visual img {
  width: 100%;
  height: auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 5rem);
  gap: 0.75rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.9vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-role {
  margin: 0.25rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--teal);
  max-width: 34em;
}

.hero-tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  max-width: 28em;
}

.hero-location {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(2rem, 8vw, 6rem);
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.7rem 1.9rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--orange-dark); transform: translateY(-1px); }

.hero-social { margin-top: 1.25rem; }
.icon-link--boxed { background: #e9eeee; }

/* ---------- Inner pages (Contact, etc.) ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
}

.page-intro { text-align: center; }

.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--teal);
}

.page-intro p { margin: 0 0 1rem; }
.page-note { margin-top: 2.25rem !important; }

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  color: #2b2b2b;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: #2b2b2b;
  background: #f6f7f7;
  border: 1px solid #dde3e3;
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea { min-height: 7.5rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #6d8383; }

.field input:hover,
.field textarea:hover { border-color: #b9c8c8; }

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  background: #fff;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; background: #fff; }

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: #b3261e;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button:disabled { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
}
.form-status--ok { background: #e6f2ee; color: #17453f; }
.form-status--error { background: #fbeceb; color: #8a1c15; }

/* ---------- About me ---------- */
.about-subtitle { margin: 0 0 2.25rem !important; }

.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-photo { margin: 0; align-self: start; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-photo figcaption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  color: var(--teal);
}

.about-intro p,
.about-body p { margin: 0 0 0.9rem; text-align: center; }

.about-body { max-width: 800px; margin: 2.5rem auto 0; }

.about-section { text-align: center; max-width: 820px; margin: 2.75rem auto 0; }

.section-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--teal);
}

.bring-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bring-list li::before { content: "\2726"; margin-right: 0.5rem; }

.tools-list { margin: 0; }

.about-highlight {
  margin: 2.25rem auto 0;
  text-align: center;
  color: var(--teal);
}

.about-cta { text-align: center; margin-top: 2.25rem; }
.about-cta p { margin: 0 0 1.5rem; }

/* ---------- Portfolio: masthead and project grid ---------- */
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(280px, 42vh, 400px);
  padding: 3rem 1.25rem 4.5rem;
  /* Soft marbled wash, drawn in CSS to echo the original masthead image */
  background:
    radial-gradient(circle at 12% 30%, rgba(160, 190, 195, 0.35) 0 9%, transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(170, 200, 205, 0.4) 0 11%, transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(150, 185, 190, 0.3) 0 10%, transparent 24%),
    radial-gradient(circle at 30% 85%, rgba(185, 205, 208, 0.45) 0 12%, transparent 28%),
    radial-gradient(circle at 55% 50%, rgba(255, 255, 255, 0.55) 0 14%, transparent 34%),
    #e7eeef;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--teal-dark);
}

.masthead p {
  margin: 0.6rem 0 0;
  font-size: 1.15rem;
  color: #1f7a69;
}

.masthead-arrow {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  color: var(--teal);
  padding: 0.5rem;
}
.masthead-arrow svg { display: block; width: 100%; height: auto; }

.work {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 70px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #fff;
}
.tile img { display: block; width: 100%; height: auto; }

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  text-align: center;
  /* Dark wash over a faint copy of the logo, as on the original site */
  background:
    linear-gradient(rgba(46, 46, 46, 0.9), rgba(46, 46, 46, 0.9)),
    url("../images/logo-full.jpg") center / contain no-repeat,
    #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover .tile-overlay,
.tile:focus-visible .tile-overlay { opacity: 1; }

.tile:focus-visible { outline-offset: 4px; }

.tile-title {
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.tile-year { font-weight: 600; font-size: 1.15rem; }
.tile-desc { font-weight: 600; font-size: 0.82rem; line-height: 1.3; max-width: 34em; }

/* Touch screens have no hover: show the text under each image instead */
@media (hover: none) {
  .tile { color: var(--ink); }
  .tile-overlay {
    position: static;
    opacity: 1;
    background: none;
    align-items: flex-start;
    text-align: left;
    padding: 0.75rem 0 0;
  }
  .tile-title { color: var(--teal); font-weight: 500; }
  .tile-desc { font-weight: 400; font-size: 0.95rem; }
}

/* ---------- Project pages ---------- */
.project { max-width: 960px; }

.project-desc {
  max-width: 800px;
  margin: 0 auto !important;
  font-size: 0.95rem;
}

.gallery {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  padding: 0;
  max-width: 900px;
}

.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; }

.gallery-link { display: block; color: inherit; text-decoration: none; }
.gallery-link:hover figcaption,
.gallery-link:focus-visible figcaption { text-decoration: underline; }

.gallery figcaption {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--teal);
  font-size: 1rem;
}

/* Two images side by side, widths in proportion to their pixel sizes */
.gallery--pair {
  display: grid;
  grid-template-columns: 416fr 479fr;
  align-items: start;
}

@media (max-width: 700px) {
  .gallery--pair { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Case study pages ---------- */
:root { --cyan: #0f7f90; }

.case-study { text-align: center; }
.case-study p { margin: 0 0 0.9rem; }
.case-study .project-desc { font-size: 1.05rem; }

.accent { color: var(--cyan); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 960px;
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
}
.split figure { margin: 0; }
.split img { display: block; width: 100%; height: auto; }
.split-text { padding: 0 clamp(0rem, 1vw, 0.75rem); }

.role {
  max-width: 960px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.big-heading {
  margin: 0 0 0.5rem;
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  color: var(--cyan);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  max-width: 960px;
  margin: clamp(2rem, 5vw, 3.25rem) auto 0;
}
.pillars h3 {
  margin: 0 0 0.35rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--teal);
}
.pillars p { font-size: 1rem; margin: 0; }

.section-heading {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cyan);
}

.split--innovation { margin-top: 1.25rem; }
.split--innovation .split-text { text-align: center; }

.standing { max-width: 880px; margin: clamp(2rem, 5vw, 3rem) auto 0; }

.see-work { margin-top: clamp(2rem, 5vw, 3.5rem); }
.see-work .section-heading { margin-top: 0; }
.see-work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(2rem, 9vw, 7rem);
  margin-top: 1.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 960px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  align-items: start;
}
.two-col p { margin: 0 0 0.9rem; }

.lead-in {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
}
.lead-in .accent { font-weight: 400; }
.lead-in--cyan { color: var(--cyan); font-weight: 500; }

.quote-band {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 1rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.split--strategy { margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.split--strategy .split-text { text-align: center; }

.why { max-width: 920px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.why .section-heading { margin-top: 0; font-weight: 500; }
.pull-line { font-weight: 600; font-size: 1.15rem; margin: 1.25rem 0 1rem !important; }

/* The Billie Strategy page uses a wider layout (about 1200px of content) */
.case-wide { max-width: 1250px; padding-left: clamp(1rem, 3vw, 2.25rem); padding-right: clamp(1rem, 3vw, 2.25rem); }
.case-wide .split,
.case-wide .two-col,
.case-wide .role { max-width: 1200px; }
.case-wide .pillars { max-width: 1200px; }
.case-wide .intro-large { max-width: 1100px; }
.case-wide .split { gap: clamp(1.25rem, 3vw, 2rem); }
.case-wide .two-col { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.case-wide .quote-band { max-width: 1200px; margin-top: clamp(2rem, 4vw, 3rem); font-size: 1.3rem; }
.case-wide .split--strategy { margin-top: clamp(3rem, 7vw, 5.5rem); }
.case-wide .why { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 1000px; }

/* Wide layout shared by every inner page */
.case-wide .gallery { max-width: 1200px; }
.case-wide .brand-grid { max-width: 1200px; }
.case-wide .about-lead { max-width: 1000px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.case-wide .about-body, .case-wide .about-section { max-width: 1000px; }
.case-wide .contact-form { max-width: 900px; }
.case-wide .page-intro p { max-width: 1000px; margin-left: auto; margin-right: auto; }
.work { max-width: 1250px; }
.tile-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* The Billie Strategy page uses dark teal headings, not the brighter cyan */
.case-teal .lead-in { color: var(--teal); font-size: 1.05rem; font-weight: 700; }
.case-teal .lead-in .accent { color: var(--teal); font-weight: 400; }
.case-teal .section-heading { color: var(--teal); font-weight: 600; font-size: 1.6rem; }
.case-teal .see-work .section-heading { font-size: 1.05rem; }
.case-teal .pull-line { font-weight: 400; font-size: 1rem; margin: 1.5rem 0 0.9rem !important; }

@media (max-width: 760px) {
  .split, .pillars, .two-col { grid-template-columns: 1fr; }
  /* On phones the image comes after its text on every row */
  .split--innovation figure { order: 2; }
}

/* ---------- Image mosaic and viewer ---------- */
.intro-large { max-width: 960px; margin: 0 auto 1.1rem !important; font-size: 1.15rem; line-height: 1.75; }

.mosaic { max-width: 1080px; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; display: grid; gap: 4px; }

.mosaic-row {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  aspect-ratio: var(--ratio);
}
.mosaic-row li { flex: 1 1 0; min-width: 0; }

.zoom { display: block; height: 100%; cursor: zoom-in; }
.zoom img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.zoom:focus-visible { outline-offset: -3px; }

.viewer-open { overflow: hidden; }

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: rgba(255, 255, 255, 0.98); }

.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; }
.viewer-count { margin: 0; font-size: 0.95rem; color: #5b6b6b; }

.viewer-main { position: relative; min-height: 0; display: grid; }

/* Short images sit in the middle of the area; tall pages scroll from the top */
.viewer-stage {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0 clamp(4rem, 8vw, 6rem);
  min-height: 0;
}
.viewer-stage:focus { outline: none; }
.viewer-stage img { margin: auto; max-width: 100%; height: auto; box-shadow: 0 1px 6px rgba(0,0,0,0.18); }

.viewer-caption { margin: 0; padding: 0.75rem 1rem 1rem; text-align: center; color: var(--teal); }

.viewer-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(60, 70, 70, 0.14);
  color: #324040;
  font: inherit;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.viewer-btn:hover { background: rgba(60, 70, 70, 0.28); }
.viewer-prev, .viewer-next { position: absolute; top: 50%; translate: 0 -50%; }
.viewer-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.viewer-next { right: clamp(0.5rem, 2vw, 1.5rem); }

@media (max-width: 760px) {
  /* Rows get taller on phones so the tiles stay big enough to tap */
  .mosaic-row[style*="5.6061"] { aspect-ratio: 3.2; }
  .viewer-stage { padding: 0 0.5rem 3.5rem; }
  .viewer-prev, .viewer-next { top: auto; bottom: 0.5rem; translate: none; }
  .viewer-prev { left: calc(50% - 56px); }
  .viewer-next { right: calc(50% - 56px); }
}

/* ---------- Brand grid ---------- */
.brand-grid { max-width: 900px; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; display: grid; gap: clamp(1rem, 3vw, 2rem); }

/* Images in a row share one height: each grows in proportion to its shape */
.brand-row { display: flex; gap: 4px; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.brand-row li { flex: 1 1 0; min-width: 0; }
.brand-row figure { margin: 0; }
.brand-row img { display: block; width: 100%; height: auto; }
.brand-row figcaption { margin-top: 0.5rem; text-align: center; color: var(--teal); font-size: 0.85rem; }

.brand-row--top { align-items: center; }
.brand-row--top figcaption { font-size: 0.95rem; max-width: 34em; margin-left: auto; margin-right: auto; }

.ads-pilot { max-width: 1100px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; text-align: center; }
.ads-heading { margin: 0 0 1.25rem; font-weight: 400; font-size: 1.6rem; color: #3b3b3b; }
.ads-pilot figure { margin: 0; }
.ads-pilot img { display: block; width: 100%; max-width: 1016px; height: auto; margin: 0 auto; }
.ads-pilot figcaption { margin-top: 0.75rem; color: var(--teal); font-size: 0.95rem; }

@media (max-width: 600px) {
  .brand-row { flex-direction: column; gap: 1rem; }
  .brand-row li { flex: none !important; width: 100%; }
}

.mosaic.mosaic--wide { max-width: 1200px; }

/* ---------- Graphic Design page ---------- */
.page-title--bold { font-weight: 600; }
.graphic .logos, .graphic .print { max-width: 1200px; margin-left: auto; margin-right: auto; }
.gd-heading { margin: clamp(2.5rem, 6vw, 4rem) 0 1rem; font-weight: 300; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--teal); }
.gd-lede { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.cyan { color: #1fbfc1; }

.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.logo-grid figure { margin: 0; }
.logo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.logo-grid figcaption { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.3; color: var(--teal); }

.print { text-align: center; }
.print-heading { margin: clamp(3rem, 7vw, 5rem) 0 0.75rem; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); color: #4a3a2a; }
.print-lede { max-width: 760px; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); font-size: 0.95rem; color: var(--teal-dark); }
.collage { margin-top: 0; max-width: 1200px; display: grid; gap: 3px; }
.collage .mosaic-row { gap: 3px; }

@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Collage rows become a 2-up grid so tiles stay big enough to tap */
  .collage .mosaic-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: auto; }
  .collage .mosaic-row li { flex: none; }
  .collage .zoom, .collage .zoom img { height: auto; aspect-ratio: 4 / 5; }
}

/* ---------- Client project pages with hover captions ---------- */
.project-meta { margin: 0 0 0.35rem !important; }
.role-label { color: var(--teal); }

.hover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 1100px; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; padding: 0; list-style: none; }
.hover-grid li { min-width: 0; }
.hover-cap { position: relative; margin: 0; overflow: hidden; }
.hover-cap img { display: block; width: 100%; height: auto; }
.hover-cap figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.78), rgba(40, 40, 40, 0));
  color: #fff; font-size: 0.95rem; text-align: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.hover-cap:hover figcaption, .hover-cap:focus-visible figcaption, .hover-cap:focus-within figcaption { opacity: 1; }
.hover-cap:focus-visible { outline-offset: -3px; }

/* Touch screens cannot hover, so the caption sits under each image */
@media (hover: none) {
  .hover-cap { overflow: visible; }
  .hover-cap figcaption { position: static; opacity: 1; background: none; color: var(--teal); padding: 0.5rem 0 0.75rem; }
}
@media (max-width: 600px) { .hover-grid { grid-template-columns: 1fr; } }

.back-link { text-align: center; margin: clamp(2rem, 5vw, 3rem) 0 0; }
.back-link a { color: var(--teal); }

.logo-grid a { display: block; color: inherit; text-decoration: none; }
.logo-grid a:hover figcaption, .logo-grid a:focus-visible figcaption { text-decoration: underline; }

/* ---------- Footer and back to top ---------- */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}

.icon-link--quiet { color: #7a8a8a; }
.icon-link--quiet:hover { color: var(--teal); }

.back-to-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(60, 70, 70, 0.14);
  color: #4b5959;
  transition: background 0.2s ease;
}
.back-to-top:hover { background: rgba(60, 70, 70, 0.26); }
.back-to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "nav nav";
    row-gap: 0.25rem;
  }
  .brand-mark { grid-area: brand; justify-self: start; }
  .header-social { grid-area: social; }
  .site-nav { grid-area: nav; }
  .site-nav ul { justify-content: center; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual img { width: min(100%, 520px); }

  .tile-grid { grid-template-columns: 1fr; }

  .about-lead, .case-wide .about-lead { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .hero-copy { padding: 1.5rem 1.5rem 3.5rem; }
}

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

/* ---------- Case study rows with captions always shown (Training Mate) ---------- */
.cap-rows { max-width: 1100px; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; display: flex; flex-direction: column; gap: clamp(1.25rem, 3vw, 2rem); }
.cap-row { display: flex; gap: 6px; align-items: flex-start; }
.cap-row figure { margin: 0; min-width: 0; flex: var(--ratio, 1) 1 0; }
.cap-row img { display: block; width: 100%; height: auto; }
.cap-row figcaption { color: var(--teal); font-size: 0.85rem; text-align: center; padding-top: 0.6rem; }
@media (max-width: 600px) { .cap-row { flex-direction: column; } .cap-row figure { flex: none; width: 100%; } }

/* More space between the last image and the back link */
.page .back-link { margin-top: clamp(3rem, 7vw, 4.5rem) !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: 1200px; margin: 0 auto 1.25rem; font-size: 0.85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; color: #6b6b6b; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 0.35rem; color: #9a9a9a; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #4a4a4a; }

/* Three-across hover grid */
.hover-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .hover-grid--3 { grid-template-columns: 1fr; } }

/* ---------- UI & UX Design landing page ---------- */
.ux-projects { list-style: none; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.ux-project { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ux-project > a:first-child { display: block; width: 100%; }
.ux-project img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.ux-project .ux-caption { color: var(--teal); font-size: 0.9rem; margin: 1rem 0 1.25rem; }
.ux-project .button { margin-top: auto; }
.ux-section { margin-top: clamp(3rem, 7vw, 5rem); }
.ux-section h2 { font-family: var(--font-body); font-weight: 500; font-size: 1.5rem; color: var(--teal); text-align: center; margin: 0 0 0.75rem; }
.ux-section h2 a { color: inherit; text-decoration: none; }
.ux-section h2 a:hover { text-decoration: underline; }
.ux-section .intro-large { font-size: 1.05rem; margin-bottom: 0.6rem !important; }
.ux-section .cap-rows { margin-top: 2rem; }
.cap-row figure > a { display: block; }
@media (max-width: 700px) { .ux-projects { grid-template-columns: 1fr; } }

/* Wide, short logo on white shown in a frame matched to its neighbour's height */
.cap-row figure.fit-logo img { aspect-ratio: 2 / 1; object-fit: contain; background: #fff; }

/* Hover captions on the print collage tiles (the viewer shows the same text) */
.collage .zoom { position: relative; overflow: hidden; }
.collage .zoom[data-caption]::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 0.75rem 0.7rem;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.82), rgba(40, 40, 40, 0));
  color: #fff; font-size: 0.9rem; line-height: 1.3; text-align: center;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.collage .zoom[data-caption]:hover::after, .collage .zoom[data-caption]:focus-visible::after { opacity: 1; }

/* A row narrower than the grid below it, centred over it */
.cap-row--center { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; gap: clamp(1rem, 3vw, 2.5rem); }

/* ---------- SEO penalty recovery case study ---------- */
.seo-situation { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; max-width: 1100px; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.seo-situation .lead-big { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; text-align: center; margin: 0; }
.seo-situation .lead-big .accent-label { color: var(--teal); }
.seo-situation .facts { text-align: center; }
.seo-situation .facts p { margin: 0 0 0.6rem; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; max-width: 1100px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.seo-cols h2 { font-family: var(--font-body); font-weight: 400; font-size: 1rem; margin: 0 0 0.75rem; }
.seo-cols .label-teal { color: var(--teal); }
.seo-cols ul { margin: 0.5rem 0 0; padding: 0 0 0 1.5rem; list-style: none; }
.seo-cols li { margin: 0 0 0.6rem; }
.seo-results { text-align: center; }
.seo-results h2 { color: var(--cyan); font-size: 1.35rem; }
.seo-results p { font-size: 1.35rem; line-height: 1.5; margin: 0; }
.seo-insight { max-width: 1100px; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: center; }
.seo-insight .label-teal { color: var(--teal); }
@media (max-width: 800px) { .seo-situation, .seo-cols { grid-template-columns: 1fr; } }

/* ---------- Digital brand strategy case study ---------- */
.dbs-text { max-width: 1080px; margin: 0 auto; text-align: center; }
.dbs-text p { margin: 0 0 0.8rem; }
.dbs-text .label-teal { color: var(--teal); }
.dbs-h2 { font-weight: 500; text-align: center; margin: clamp(1.5rem, 4vw, 2.5rem) 0 1rem; }
.dbs-strategy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem); max-width: 1080px; margin: 0 auto; text-align: center; align-items: start; }
.dbs-strategy h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 400; margin: 0 0 0.8rem; }
.dbs-strategy h3 .num { color: var(--cyan); margin-right: 0.35rem; }
.dbs-strategy h3 strong { font-weight: 700; color: var(--teal-dark); }
.dbs-strategy p { margin: 0 0 0.7rem; }
.dbs-result { max-width: 1080px; margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; text-align: center; }
.dbs-result .label-teal { color: var(--teal); }
.dbs-shots { display: flex; gap: 6px; align-items: flex-start; max-width: 1200px; margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; }
.dbs-shots a { display: block; min-width: 0; cursor: zoom-in; flex: var(--w, 1) 1 0; }
.dbs-shots img { display: block; width: 100%; height: auto; }
@media (max-width: 800px) { .dbs-strategy { grid-template-columns: 1fr; } .dbs-shots { flex-direction: column; } .dbs-shots a { flex: none; width: 100%; } }

/* ---------- Google Ads pilot case study ---------- */
.ads-wrap { max-width: 1100px; margin: 0 auto; }
.ads-situation { text-align: center; margin: 0 auto 1rem; max-width: 1050px; }
.ads-situation .label-cyan { color: var(--cyan); font-weight: 600; }
.ads-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.ads-two h2 { font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 1rem; color: #2b1d10; }
.ads-two ul { list-style: none; margin: 0.6rem 0 0; padding: 0 0 0 1.5rem; }
.ads-two li { margin: 0 0 0.55rem; }
.ads-side { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.7; color: var(--teal); text-align: right; margin: 0; }
.ads-side strong { font-weight: 700; color: var(--teal-dark); }
.ads-metrics p { margin: 0 0 0.75rem; color: var(--teal-dark); }
.ads-audience { text-align: right; font-size: 1.3rem; line-height: 1.8; }
.ads-audience p { margin: 0 0 0.5rem; }
.ads-found { text-align: center; margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 1050px; }
.ads-found .label-cyan { color: var(--cyan); }
.ads-found p { margin: 0 0 0.6rem; }
.ads-found .label-teal { color: var(--teal); }
@media (max-width: 800px) { .ads-two { grid-template-columns: 1fr; } .ads-side, .ads-audience { text-align: left; } }

/* ---------- Web design and development landing page ---------- */
.cap-rows--wd { max-width: 1100px; }
.cap-row .zoom { height: auto; }
.cap-row .zoom img { height: auto; object-fit: contain; }
.wd-block { max-width: 1000px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; text-align: center; }
.wd-block h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 0.6rem; color: var(--teal-dark); }
.wd-block p { font-size: 1.15rem; line-height: 1.6; margin: 0 0 0.8rem; }

.wd-packages { display: flex; gap: 6px; align-items: flex-start; max-width: 1200px; margin: 1.5rem auto 0; }
.wd-packages a { display: block; flex: 1 1 0; min-width: 0; cursor: zoom-in; }
.wd-packages img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .wd-packages { flex-direction: column; } }
.cap-row figcaption a { color: inherit; text-decoration: none; }
.cap-row figcaption a:hover { text-decoration: underline; }
.cap-row figure > a:not(.zoom) { display: block; }

/* ---------- MY Biz Info case study ---------- */
.mbi-meta { max-width: 1000px; margin: 0 auto; text-align: center; }
.mbi-meta p { margin: 0 0 0.5rem; }
.mbi-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 1100px; margin: 6px auto 0; padding: 0; list-style: none; }
.mbi-slides a { display: block; cursor: zoom-in; }
.mbi-slides img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .mbi-slides { grid-template-columns: 1fr; } }

/* ---------- MY Biz Info case study ---------- */
.mbic { max-width: 1100px; margin: 0 auto; text-align: center; }
.mbic h2 { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--teal); margin: clamp(2rem, 5vw, 3.25rem) 0 0.9rem; }
.mbic p { margin: 0 0 0.8rem; font-size: 1.05rem; line-height: 1.65; }
.mbic .big-quote { font-family: var(--font-body); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--teal-dark); margin: 1.5rem 0; }
.mbic .diff-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.mbic .diffs { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem clamp(1.5rem, 4vw, 3rem); margin: 1.5rem auto 0; max-width: 1000px; }
.mbic .diffs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mbic .diffs .n { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; }
.mbic .diffs .t { display: block; margin-bottom: 0.4rem; }
.mbic .diffs p { font-size: 1rem; margin: 0; }
.mbic .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 1.5rem auto 0; }
.mbic .stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mbic .stats .n { display: block; margin-bottom: 0.4rem; }
.mbic .note { font-size: 0.85rem; color: var(--teal); }
.mbic .sig { margin-top: 0.2rem; }
.mbic .mbic-img { margin: 1.5rem auto 0; }
.mbic .mbic-img img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .mbic .diffs, .mbic .stats { grid-template-columns: 1fr; } }

/* Portfolio tiles: one shape so the grid lines up */
.tile-grid { align-items: stretch; }
.tile img { height: auto; aspect-ratio: 1.37 / 1; object-fit: cover; object-position: center top; }

/* Logo pages: captions appear on hover, like the other client pages */
.cap-rows--hover .cap-row figure { position: relative; overflow: hidden; }
.cap-rows--hover .cap-row figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.78), rgba(40, 40, 40, 0));
  color: #fff; font-size: 0.95rem; text-align: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.cap-rows--hover .cap-row figure:hover figcaption,
.cap-rows--hover .cap-row figure:focus-within figcaption { opacity: 1; }
@media (hover: none) {
  .cap-rows--hover .cap-row figure { overflow: visible; }
  .cap-rows--hover .cap-row figcaption { position: static; opacity: 1; background: none; color: var(--teal); padding: 0.6rem 0 0; font-size: 0.85rem; }
}

/* Elite logo page: hover captions like the other logo pages */
.brand-grid--hover .brand-row figure { position: relative; overflow: hidden; }
.brand-grid--hover .brand-row figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.78), rgba(40, 40, 40, 0));
  color: #fff; font-size: 0.95rem; text-align: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.brand-grid--hover .brand-row figure:hover figcaption,
.brand-grid--hover .brand-row figure:focus-within figcaption { opacity: 1; }
@media (hover: none) {
  .brand-grid--hover .brand-row figure { overflow: visible; }
  .brand-grid--hover .brand-row figcaption { position: static; opacity: 1; background: none; color: var(--teal); padding: 0; margin-top: 0.5rem; font-size: 0.85rem; }
}

/* Hover captions on mosaic tiles that have a data-caption (the viewer shows the same text) */
.mosaic--hover .zoom { position: relative; overflow: hidden; }
.mosaic--hover .zoom[data-caption]::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 0.75rem 0.7rem;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.82), rgba(40, 40, 40, 0));
  color: #fff; font-size: 0.9rem; line-height: 1.3; text-align: center;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.mosaic--hover .zoom[data-caption]:hover::after, .mosaic--hover .zoom[data-caption]:focus-visible::after { opacity: 1; }
