html { scroll-behavior: smooth; }
body { font-size: 16px; }

/* Save-image / drag-to-desktop deterrent. */
img { -webkit-user-drag: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 6% 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--beige);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
  opacity: 0.7;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to bottom,
  rgba(245, 239, 228, 0.35) 100%,
  rgba(245, 239, 228, 0.65) 100%,
  rgba(245, 239, 228, 0.97) 100%
  );
  z-index: -1;
}
.hero > *:not(.hero-video) { position: relative; z-index: 2; }
.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 900px;
}
.hero h1 em {
  font-style: italic;
  color: var(--violet);
}
.hero-line {
  margin-top: 2.5rem;
  width: 48px;
  height: 1px;
  background: var(--violet-mid);
}
/* ── HIGHLIGHT ── */
#works {
  background: var(--beige);
  padding: 6rem 6%;
}
.highlight-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.highlight-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.highlight-text h2 em {
  font-style: italic;
  color: var(--violet);
}
.highlight-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.highlight-text p strong {
  font-weight: 500;
  color: var(--text);
}
.btn-outline {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.9rem 2.4rem;
  background: transparent;
  color: var(--violet);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--violet-mid);
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  background: var(--violet);
  color: var(--white);
  transform: translateY(-1px);
}
/* Two shots overlapping on a diagonal: the back one high and right, the
front one low and left. No overflow clipping on the wrap — the images
are the rounded cards, not the box that holds them. */
.highlight-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
}
.highlight-shot {
  position: absolute;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--violet-light);
  box-shadow: 0 18px 50px rgba(28, 26, 36, 0.18);
  will-change: transform, opacity;
}
.highlight-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.highlight-shot--back {
  top: 0;
  right: 0;
  width: 58%;
}
.highlight-shot--mid {
  top: 26%;
  left: 0;
  width: 48%;
  z-index: 2;
}
.highlight-shot--front {
  bottom: 0;
  left: 44%;
  width: 44%;
  z-index: 3;
}
/* Without JS the pair still reads as a composition, just without motion. */
@media (prefers-reduced-motion: reduce) {
  .highlight-shot { opacity: 1 !important; transform: none !important; }
}
/* ── SCROLL REVEAL ── */
.reveal {
  will-change: transform, opacity;
}
/* ── ABOUT ── */
#about {
  background: var(--white);
  padding: 8rem 6%;
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  align-items: start;
}
.about-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 7rem;
}
/* Wrapper only exists to carry the LinkedIn href; flex kills the inline
baseline gap under the image and keeps the circular hit area. */
.about-photo-link {
  display: flex;
  border-radius: 50%;
}
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--violet-light);
  box-shadow: 0 8px 40px rgba(124, 107, 158, 0.15);
}
/* placeholder shown when photo.webp is missing */
.about-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--violet-light);
  border: 4px solid var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}
.about-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
}
.about-role {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about-content {
  padding-top: 0.5rem;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6a5a8a;
  margin-bottom: 2rem;
  display: block;
}
.about-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--text);
}
.about-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.about-content h2 em {
  font-style: italic;
  color: var(--violet);
}
.about-content p strong {
  font-weight: 500;
  color: var(--text);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tag {
  padding: 0.35rem 0.9rem;
  background: var(--violet-light);
  color: var(--violet);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* ── CAPABILITIES ── */
#capabilities {
  background-color: var(--beige);
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  padding: 8rem 6%;
  position: relative;
  overflow: hidden;
}
#capabilities::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to bottom,
  rgba(245, 239, 228, 0.45) 0%,
  rgba(245, 239, 228, 0.75) 60%,
  rgba(245, 239, 228, 0.97) 100%
  );
  z-index: 0;
}
.capabilities-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.capabilities-header {
  margin-bottom: 4rem;
  max-width: 600px;
}
.capabilities-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}
.capabilities-header h2 em {
  font-style: italic;
  color: var(--violet);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* The whole card is one <a> to its product page, so the click target is the
   card and not a "read more" link. text-decoration must be reset here: the UA
   underline on the anchor propagates to every descendant, and the h3 and p set
   their own colour but not their own decoration. */
.capability-card {
  background: var(--white);
  padding: 2.4rem 2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--beige-dark);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
/* Keyboard users get the same affordance the mouse gets, plus a ring. */
.capability-card:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 107, 158, 0.12);
}
.capability-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 107, 158, 0.12);
}
.capability-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
.capability-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.capability-tags span {
  padding: 0.3rem 0.8rem;
  background: var(--violet-light);
  color: var(--violet);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* ── SERVICES ── */
#services {
  background: var(--beige);
  padding: 8rem 6%;
}
.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.services-header {
  margin-bottom: 4rem;
  max-width: 600px;
}
.services-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.services-header h2 em {
  font-style: italic;
  color: var(--violet);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-image-wrap {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.service-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.service-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.2rem;
  background: var(--violet-light);
}
.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.service-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}
.services-extra {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.services-extra-header {
  max-width: 650px;
  margin-bottom: 2.5rem;
}
.services-extra-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin: 0.4rem 0 0.8rem;
}
.services-extra-header p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}
.services-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card-small h3 {
  font-size: 0.95rem;
}
.service-card-small p {
  font-size: 0.82rem;
}
/* ── AUDIENCES ── */
#audiences {
  background: var(--white);
  padding: 8rem 6%;
}
.audiences-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.audiences-header {
  margin-bottom: 3rem;
  max-width: 600px;
}
.audiences-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.audiences-header h2 em {
  font-style: italic;
  color: var(--violet);
}
.audience-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.audience-tab-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid var(--violet-mid);
  background: transparent;
  color: var(--violet);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.audience-tab-btn:hover {
  background: var(--violet-light);
}
.audience-tab-btn.active {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}
.audience-panels {
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: 1.2rem;
  padding: 2.4rem;
}
.audience-panel {
  display: none;
}
.audience-panel.active {
  display: block;
  animation: audience-fade-in 0.4s ease;
}
@keyframes audience-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.audience-panel h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}
.audience-panel p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  /* The box widened from 900 to 1100 to share the landing's axis; this
  keeps the reading measure where it was instead of running to ~125
  characters per line. */
  max-width: 820px;
}
/* ── CONTACT ── */
#contact {
  background: var(--white);
  padding: 8rem 6%;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.contact-left h2 em {
  font-style: italic;
  color: var(--violet);
}
.contact-left p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}
.contact-left a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 500;
}
/* form */
form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; }
label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
/* Text fields only. Checkboxes and radios used to be caught by this rule,
which gave them the 9999px pill radius, 100% width and -webkit-appearance:
none — the last one strips the native tick, so they rendered as empty
capsules with no way to tell they were checked. */
input:not([type="checkbox"]):not([type="radio"]), select {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 9999px;
  padding: 0.85rem 1.2rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 1.2rem;
  padding: 0.85rem 1.2rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  resize: vertical;
  min-height: 120px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--violet-mid);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}
.form-consent a { color: var(--violet); }
/* Circular consent checkbox. The native input is kept and restyled with
appearance:none — never display:none — so it stays focusable, keeps the
required validation and stays in the accessibility tree. */
.consent-check {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.16rem 0 0;
  padding: 0;
  border: 1px solid var(--violet-mid);
  border-radius: 50%;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 62%;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-check:checked {
  background-color: var(--violet);
  border-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFDF9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5,8.5 6.5,11.5 12.5,4.5'/%3E%3C/svg%3E");
}
/* The generic input rule sets outline:none, so put the focus ring back. */
.consent-check:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.btn-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.9rem 2.4rem;
  background: var(--violet);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover {
  background: #6a5a8a;
  transform: translateY(-1px);
}
#form-success {
  display: none;
  padding: 1rem 1.2rem;
  background: var(--violet-light);
  border: 1px solid var(--violet-mid);
  border-radius: 1.2rem;
  font-size: 0.9rem;
  color: var(--violet);
  text-align: center;
  width: 100%;
}
/* ── STUDIOS ── */
#studios {
  background: #E8E2D9;
  /* 6% like every other section: .studios-inner (1100px) holds both the
  header and the track, so the band needs the padding for the section
  to keep the common axis below ~1250px. */
  padding: 6rem 6% 5rem;
  overflow: hidden;
}
.studios-inner {
  max-width: 1100px;
  padding: 0;
  margin: 0 auto;
  align-items: start;
}
.studios-header {
  padding: 0 ;
  margin-bottom: 3rem;
}
#software {
  background: blank;
  /* 6% like every other section: .studios-inner (1100px) holds both the
  header and the track, so the band needs the padding for the section
  to keep the common axis below ~1250px. */
  padding: 6rem 6% 5rem;
  overflow: hidden;
}
/* Both carousels scroll natively so they can be dragged, swiped and
trackpad-scrolled; the JS at the end of the page advances scrollLeft and
wraps at half the track width. No CSS animation is involved. */
.carousel-track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carousel-track-wrap::-webkit-scrollbar { display: none; }
.carousel-track-wrap.is-dragging { cursor: grabbing; }
.carousel-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
}
.studio-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.software-logo {
  height: 120px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.studio-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.software-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
/* ── WORK CAROUSEL ── (reuses .carousel-track-wrap / .carousel-track) */
#work-carousel {
  background: var(--beige);
  padding: 6rem 0 5rem;
  overflow: hidden;
}
/* Same geometry as every other section: the 6% lives on the full-width
band and the max-width box is centred inside it. #work-carousel itself
keeps no horizontal padding so .carousel-track-wrap stays full-bleed. */
.work-carousel-header,
.work-carousel-footer {
  padding: 0 6%;
}
.work-carousel-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.work-carousel-header { margin-bottom: 2.5rem; }
.work-carousel-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.work-carousel-header h2 em {
  font-style: italic;
  color: var(--violet);
}
.work-carousel-footer { margin-top: 2.5rem; }
.carousel-track--work {
  gap: 1.5rem;
}
.work-shot {
  height: 320px;
  width: auto;
  border-radius: 1.2rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 820px) {
  .about-inner,
  .contact-inner,
  .highlight-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .highlight-image-wrap {
    order: -1;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  #capabilities { padding: 5rem 6%; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .services-extra-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  #services { padding: 5rem 6%; }
  #studios { padding: 5rem 6% 4rem; }
  #work-carousel { padding: 5rem 0 4rem; }
  .work-shot { height: 220px; }
  .about-photo-wrap { position: static; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
}
