/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(30%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(10,132,255,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(10,132,255,0); }
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 strong { font-weight: 800; }

.hero h1 em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-blue {
  background: var(--gradient);
  color: var(--white);
  position: relative;
}

.btn-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-blue:hover::before { opacity: 1; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(10,132,255,0.35), 0 2px 10px rgba(90,200,250,0.2); }

.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,0.45);
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 2px;
  height: 6px;
  background: var(--gradient);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.3; }
}



/* ─── MARQUEE ─── */
.marquee {
  background: var(--white);
  padding: 1.2rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--grey-200);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.marquee-item::after {
  content: '✦';
  font-size: 0.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* ─── SERVICES - FOUR CARDS IN A LINE ─── */
/* white cards on a grey section, matching the client review cards */
.services { background: var(--light); }

/* wider than the standard container so the photographs get more room */
.services .container { max-width: 1480px; }

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}

/* all three homepage section headings: What I offer, Recent projects, What clients say */
.section-heading {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.services-top .section-desc {
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--grey-700);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--dark);
  text-decoration: none;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* the deeper hover shadow fades in on its own layer, so the card's
   scroll-in animation (.reveal) keeps its own timing */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 10px 40px rgba(0,0,0,0.09);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--light);
}

/* --focal is set per photograph in front-page.php so the 4:5 crop keeps its subject */
.service-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  transition: transform 0.9s cubic-bezier(0.3,0.7,0.2,1);
}

.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.4rem 1.2rem;
}

.service-card h3 {
  font-weight: 800;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-card p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--grey-700);
  margin: 0.45rem 0 1.25rem;
}

/* its own row along the bottom of the card, so the four links line up whatever the description length */
.service-card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-200);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.service-card-cta .arrow-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0866c6, #08739b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.3,0.7,0.2,1);
}

.service-card:hover .service-card-cta .arrow-icon {
  transform: translateX(4px);
}

.service-card-cta .arrow-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
}



/* ─── IMAGE BAND (client logos) ─── */
.image-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.image-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.72) 45%, rgba(10,10,10,0.78) 100%);
}

.image-band-bg {
  position: absolute;
  inset: -60px;
  z-index: -2;
  transition: transform 0.1s linear;
  will-change: transform;
}

.image-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(100%);
  opacity: 0.3;
}

.image-band-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.image-band-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.image-band-label::before,
.image-band-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.16);
}

/* Each logo has its own height, in em, so that all six carry the same visual
   weight whatever their shape. The font-size here scales the whole set. */
.image-band-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(13px, 1.15vw, 16px);
}

.image-band-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-band-logos img {
  flex: none;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.client-logo--ms   { height: 3.3em; }   /* Marks & Spencer: stacked, compact */
.client-logo--dod  { height: 1.5em; }   /* Doddie Foundation: long wordmark */
.client-logo--gym  { height: 4.2em; }   /* Scottish Gymnastics: figure above small type */
.client-logo--park { height: 2.4em; }   /* Parkinson's UK */
.client-logo--bah  { height: 4.3em; }   /* University of Bahrain: crest */
.client-logo--cfo  { height: 1.95em; }  /* Scottish CFO Awards: long, with small type */

@media (max-width: 960px) {
  .image-band-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.75rem 1.5rem;
    font-size: 14px;
  }
}

/* Two across on phones: swap the middle pair so long and compact logos alternate down each column. */
@media (max-width: 560px) {
  .image-band-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
    font-size: 12px;
  }
  .image-band-logos li:nth-child(1) { order: 1; }
  .image-band-logos li:nth-child(2) { order: 2; }
  .image-band-logos li:nth-child(3) { order: 4; }
  .image-band-logos li:nth-child(4) { order: 3; }
  .image-band-logos li:nth-child(5) { order: 5; }
  .image-band-logos li:nth-child(6) { order: 6; }
}



/* ─── ABOUT ─── */
.about { background: var(--light); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-photo {
  aspect-ratio: 4/5;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  max-height: 480px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.about-photo:hover img { transform: scale(1.04); }

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
}

/* gradient ring decoration */
.about-photo::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: var(--gradient);
  z-index: 2;
  border-radius: 0 0 20px 20px;
}

.about-text h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--grey-500);
  margin-bottom: 1rem;
}

.about-text p strong { color: var(--dark); font-weight: 600; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.chip {
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--white);
  color: var(--grey-500);
  border: 1px solid var(--grey-200);
  transition: all 0.3s;
}

.chip:hover {
  border-color: rgba(10,132,255,0.3);
  color: var(--blue);
  background: rgba(10,132,255,0.04);
}

.about-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}



/* ─── PORTFOLIO ─── */
.portfolio { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.portfolio-grid .p-item {
  aspect-ratio: 4 / 3;
}

.p-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.p-item:hover img { transform: scale(1.06); }

/* Info overlay (visible by default, hides on hover) */
.p-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
  opacity: 1;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  z-index: 3;
}

.p-item:hover .p-item-overlay { opacity: 0; }

.p-item-title {
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white);
  margin-bottom: 0.3rem;
}

.p-item-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.p-item-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.p-item-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Tags (show on hover, top-left) */
.p-item-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.3rem;
  z-index: 4;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.p-item:hover .p-item-tags { opacity: 1; transform: translateY(0); }

.p-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}



/* Grid items - equal 3-col, no asymmetric placement */



/* ─── FULL-WIDTH PHOTO BREAK ─── */
.photo-break {
  position: relative;
  height: 50vh;
  min-height: 350px;
  overflow: hidden;
}


.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 55%, rgba(10,10,10,0.25) 100%);
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 6vw, 6rem);
}

.photo-break-text {
  max-width: 420px;
}

.photo-break-text blockquote {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.photo-break-text blockquote em {
  font-style: normal;
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photo-break-text cite {
  font-size: 0.78rem;
  font-weight: 500;
  font-style: normal;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}



/* ─── TESTIMONIALS ─── */
.testimonials-section {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.testimonials-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* Draggable testimonial track */
.t-marquee-wrap {
  overflow: hidden;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.t-marquee-wrap:active { cursor: grabbing; }

.t-marquee-row {
  display: flex;
  gap: clamp(1.5rem, 2.5vw, 2rem);
  will-change: transform;
  padding-left: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(2rem, 5vw, 4rem);
}

/* Individual testimonial card - large, borderless, soft shadow */
.t-card {
  flex: 0 0 clamp(340px, 42vw, 520px);
  background: var(--white);
  border-radius: 24px;
  padding: clamp(2.2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  min-height: 300px;
  transition: box-shadow 0.4s;
}

.t-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.t-card-top {
  flex: 1;
}

.t-card-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.5rem;
}

.t-card-stars svg {
  width: 16px;
  height: 16px;
  fill: url(#starGold);
}

.t-card-quote {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--grey-700);
}

.t-card-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.t-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.t-card-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.t-card-author-role {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--grey-500);
}

/* Swipe/drag hint */
.t-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-bottom: 0;
  color: var(--grey-400);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: opacity 0.5s;
}

.t-swipe-hint svg {
  animation: swipeNudge 1.8s ease-in-out infinite;
}

@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}

.t-swipe-hint.hidden { opacity: 0; pointer-events: none; }



/* ─── SECTION POSITIONING ─── */
.services { position: relative; }
.about { position: relative; }
.portfolio { position: relative; }



/* ─── RESPONSIVE (homepage) ─── */
/* ─── RESPONSIVE ─── */
/* the padded cards need two columns sooner than the rest of the page, or the headings wrap */
@media (max-width: 1150px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

@media (max-width: 1000px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { max-height: 400px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .t-card { flex: 0 0 clamp(300px, 70vw, 420px); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { aspect-ratio: 4 / 3; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 90vh; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .t-card { flex: 0 0 85vw; }
  .photo-break { height: 40vh; min-height: 280px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-card .cta-actions { flex-direction: column; align-items: center; }
  .cta-card .cta-actions .btn { width: 100%; justify-content: center; }
}
