:root {
  --ink: #31252c;
  --paper: #fbf5ef;
  --line: rgba(99,61,67,.23);
  --accent: #9b5b6d;
  --dark: #271f27;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -3rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 2rem; padding: 1rem 1.25rem; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.wordmark { font-size: .75rem; font-weight: 700; letter-spacing: -.04em; line-height: .9; }
.site-nav { display: flex; gap: 1.3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.site-nav a { border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a:focus { border-color: currentColor; }
.menu-toggle { display: none; border: 0; background: none; padding: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.hero { min-height: min(850px, calc(100svh - 48px)); display: grid; grid-template-columns: .95fr 1.05fr; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 6vw, 6rem) 1.25rem 1.5rem; }
.eyebrow { margin: 0; font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; max-width: 8ch; font-size: clamp(3.5rem, 10vw, 9.5rem); font-weight: 400; letter-spacing: -.09em; line-height: .78; text-wrap: balance; }
h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5.7vw, 5.8rem); font-weight: 400; letter-spacing: -.075em; line-height: .83; }
.hero-intro { margin: 0 0 1.2rem; font-size: 1rem; }
.text-link { align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: .25rem; font-size: .82rem; }
/* Four-language Comp Card discovery: no changes to existing gallery or hero photographs. */
.comp-card-discovery { width: 100%; max-width: 32rem; margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fffaf6; }
.comp-card-discovery-copy { margin: .65rem 0 .9rem; font-size: .86rem; line-height: 1.5; }
.comp-card-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.comp-card-shortcuts a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: .55rem .35rem; border: 1px solid var(--line); border-radius: .45rem; font-size: .82rem; text-align: center; overflow-wrap: anywhere; }
.comp-card-shortcuts a:hover, .comp-card-shortcuts a:focus-visible { background: var(--ink); color: #fff; outline-offset: 2px; }

.portfolio-track { position: sticky; top: 61px; z-index: 9; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.portfolio-track a { min-height: 3rem; display: flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-right: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.portfolio-track a:last-child { border-right: 0; }
.portfolio-track a:hover, .portfolio-track a:focus-visible { background: var(--ink); color: var(--paper); }
.portfolio-track span { opacity: .55; }
.commercial-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.portfolio-card { min-width: 0; padding: clamp(2rem, 5vw, 5rem) 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 7.5rem; }
.portfolio-card:nth-child(2n) { border-right: 0; }
.portfolio-card h2 { margin: .75rem 0 1.2rem; font-size: clamp(2.2rem, 5vw, 5rem); }
.portfolio-card > p:not(.eyebrow):not(.portfolio-keywords) { max-width: 39rem; line-height: 1.55; }
.portfolio-keywords { margin: 1.5rem 0 0; max-width: 44rem; font-size: .72rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .045em; opacity: .78; }
.section-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1.6rem; }
.section-media-single { grid-template-columns: 1fr; }
.section-media figure { margin: 0; min-width: 0; }
.section-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #dedbd4; }
.section-media-single img { aspect-ratio: 4 / 3; }
.section-media figcaption { padding-top: .45rem; font-size: .65rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.verification-note { margin: 1.5rem 0 0; padding: .85rem 1rem; border: 1px solid var(--line); font-size: .78rem; line-height: 1.5; }
.backstage-clip { width: min(100%, 405px); margin: 1.25rem 0 0; }
.backstage-clip iframe { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 0; background: #111; }
.backstage-clip figcaption { margin-top: .5rem; font-size: .76rem; line-height: 1.4; }
.backstage-clip a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.hero-image { min-height: 65svh; margin: 0; overflow: hidden; background: #dfd4cc; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.work-section, .profile-section { padding: clamp(3rem, 8vw, 9rem) 1.25rem; }
.section-heading { display: grid; grid-template-columns: .25fr .95fr 1fr; gap: 1rem; padding-bottom: 3rem; align-items: start; }
.section-heading p:last-child { max-width: 28rem; margin-top: .4rem; font-size: .9rem; line-height: 1.45; }
/* Warm editorial detailing, without altering media crop or the mobile two-column grid. */
h1, h2 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.047em; line-height: 1.01; }
.hero-copy { background: linear-gradient(160deg,#fbf5ef 54%,#f4e4e0 100%); }
.hero-note { margin: 0; color: #8c5868; font-family: Georgia, serif; font-size: clamp(1.2rem,2vw,1.65rem); font-style: italic; }
.eyebrow { color: var(--accent); }
.dark-heading .eyebrow { color: #dfb4bc; }
.text-link { border-color: var(--accent); }
.portfolio-track a:hover, .portfolio-track a:focus-visible { background: #9b5b6d; color: #fff; }
.portfolio-card:nth-child(4n+1) { background: #fff9f3; }
.portfolio-card:nth-child(4n+2) { background: #f7ebea; }
.portfolio-card:nth-child(4n+3) { background: #fcf3eb; }
.portfolio-card:nth-child(4n) { background: #f6f0ea; }
.section-media img { border-radius: .5rem; }
.rail-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.rail-intro strong { font: italic 1.4rem/1.2 Georgia,serif; color: var(--accent); font-weight: normal; }
.rail-intro p { margin: 0; color: #6e545e; font-size: .78rem; line-height: 1.5; }
.photo-rail { display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; padding: .2rem .3rem 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rail-item { display: block; flex: 0 0 230px; width: 230px; padding: .4rem; border: 1px solid var(--line); border-radius: .9rem; background: #fffaf5; text-align: left; color: var(--ink); scroll-snap-align: start; box-shadow: 0 5px 18px rgba(93,55,62,.07); cursor: zoom-in; }
.rail-item img { display: block; width: 100%; height: 288px; object-fit: contain; border-radius: .55rem; background: #f2e9e4; }
.rail-item span { display: block; padding: .5rem .15rem .1rem; font-size: .7rem; color: #6e545e; }
.rail-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .rail-intro { display: block; }
  .rail-intro p { margin-top: .4rem; }
  .rail-item { flex-basis: 178px; width: 178px; }
  .rail-item img { height: 236px; }
}
@media (prefers-reduced-motion: reduce) { .photo-rail { scroll-behavior: auto; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: .52rem .74rem; background: transparent; cursor: pointer; font-size: .72rem; }
.filter:hover, .filter:focus-visible, .filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.gallery-item { position: relative; min-height: 16rem; border: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: #dedbd4; text-align: left; }
.gallery-item:nth-child(6n + 1) { grid-column: span 7; min-height: 42rem; }
.gallery-item:nth-child(6n + 2) { grid-column: span 5; min-height: 42rem; }
.gallery-item:nth-child(6n + 3) { grid-column: span 4; }
.gallery-item:nth-child(6n + 4) { grid-column: span 4; }
.gallery-item:nth-child(6n + 5) { grid-column: span 4; }
.gallery-item:nth-child(6n) { grid-column: span 8; min-height: 31rem; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); }
/* Static gallery cards open Instagram; the automatically moving rail retains its lightbox. */
.gallery-item.instagram-photo-link { display: block; cursor: pointer; text-decoration: none; }
.section-media .instagram-photo-link { display: block; position: relative; border-radius: .55rem; overflow: hidden; }
.instagram-photo-link .instagram-image-cta {
  position: absolute;
  top: auto;
  right: .5rem;
  bottom: .5rem;
  left: auto;
  z-index: 1;
  max-width: calc(100% - 1rem);
  padding: .28rem .48rem;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: linear-gradient(115deg, #833ab4 0%, #c13584 34%, #e1306c 65%, #f77737 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: .66rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  box-shadow: 0 2px 7px rgba(0,0,0,.13);
}
.instagram-photo-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.instagram-photo-link:hover .instagram-image-cta,
.instagram-photo-link:focus-visible .instagram-image-cta { filter: brightness(1.1); }

.image-meta { position: absolute; right: .65rem; bottom: .65rem; max-width: calc(100% - 1.3rem); padding: .3rem .45rem; background: rgba(245,243,238,.88); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
/* Static grid captions sit just above the CTA so neither overlaps the other. */
.photo-grid .image-meta { right: .5rem; bottom: 2.35rem; }

@media (max-width: 430px) {
  .instagram-photo-link .instagram-image-cta {
    right: .35rem;
    bottom: .35rem;
    padding: .25rem .4rem;
    font-size: .62rem;
  }
  .photo-grid .image-meta { right: .35rem; bottom: 2rem; font-size: .57rem; }
}
.motion-section { padding: clamp(3rem, 8vw, 9rem) 1.25rem; background: var(--dark); color: var(--paper); }
.dark-heading { grid-template-columns: .25fr .95fr 1fr; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.video-card { background: #222; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #050505; }
.video-card:nth-child(3n + 1) video { aspect-ratio: 16/9; }
.video-meta { display: flex; justify-content: space-between; gap: .7rem; padding: .65rem; font-size: .67rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.profile-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); }
.profile-text { max-width: 30rem; font-size: 1rem; line-height: 1.45; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: .65rem; letter-spacing: .06em; }
.lightbox { width: min(95vw, 1000px); max-height: 92vh; padding: 0; border: 0; background: var(--dark); color: white; }
.lightbox::backdrop { background: rgba(0,0,0,.78); }
.lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-caption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.lightbox-caption p { margin: 0; }
.close-dialog { position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: white; cursor: pointer; font-size: 1.5rem; line-height: 1; }
/* Mobile gallery regression gate: two columns, natural image ratio, no crop */
@media (max-width: 760px) {
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    align-items: start;
    width: 100%;
  }
  .photo-grid .gallery-item,
  .photo-grid .gallery-item:nth-child(n),
  .photo-grid .gallery-item:nth-child(5n + 1),
  .photo-grid .gallery-item:nth-child(6n + 1),
  .photo-grid .gallery-item:nth-child(6n + 2),
  .photo-grid .gallery-item:nth-child(6n + 3),
  .photo-grid .gallery-item:nth-child(6n + 4),
  .photo-grid .gallery-item:nth-child(6n + 5),
  .photo-grid .gallery-item:nth-child(6n) {
    grid-column: span 1;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: transparent;
  }
  .photo-grid .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  .section-media:not(.section-media-single) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    align-items: start;
    width: 100%;
  }
  .section-media:not(.section-media-single) figure {
    min-width: 0;
    width: 100%;
    margin: 0;
  }
  .section-media:not(.section-media-single) img,
  .section-media-single img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  .section-media:not(.section-media-single) img { background: transparent; }
  .section-media-single {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .photo-grid,
  .section-media,
  .gallery-item,
  .section-media figure,
  .gallery-item img,
  .section-media img {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 1rem; min-height: 80px; align-items: center; padding: .75rem 1.25rem; background: var(--paper); }
  .wordmark { font-size: .82rem; line-height: .88; }
  .menu-toggle { display: block; font-size: .76rem; }
  .site-nav { grid-column: 1 / -1; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-top: .65rem; border-top: 1px solid var(--line); }
  .site-nav.is-open { display: grid; }
  .site-nav a { justify-content: center; min-height: 48px; padding: .65rem .45rem; border-right: 1px solid var(--line); text-align: center; }
  .site-nav a:last-child { border-right: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; justify-content: flex-start; gap: 2rem; padding: 2rem 1.25rem 1.5rem; }
  h1 { letter-spacing: -.055em; word-spacing: .06em; line-height: .84; }
  .hero-image { min-height: 0; aspect-ratio: 4 / 5; }
  .section-heading, .dark-heading, .profile-section { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-heading { padding-bottom: 2.2rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .45rem; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 1; min-height: 14rem; }
  .gallery-item:nth-child(5n + 1) { grid-column: span 2; min-height: 31rem; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card video, .video-card:nth-child(n) video { aspect-ratio: auto; }
  .portfolio-track { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .portfolio-track a { min-width: 0; min-height: 48px; padding: .7rem .8rem; white-space: normal; line-height: 1.15; border-bottom: 1px solid var(--line); }
  .portfolio-track a:nth-child(2n) { border-right: 0; }
  .portfolio-track a:nth-last-child(-n + 2) { border-bottom: 0; }
  .commercial-sections { grid-template-columns: 1fr; }
  .portfolio-card { border-right: 0; padding: 2.5rem 1.25rem; scroll-margin-top: 6.5rem; }
  #work, #motion, #profile { scroll-margin-top: 6.5rem; }
  .portfolio-card h2 { margin-top: .65rem; }
  .section-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .section-media-single { grid-template-columns: 1fr; }
  .filter { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .site-nav a { display: flex; align-items: center; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 430px) {
  body { overflow-x: hidden; }
  .site-header { padding: .7rem 1rem; min-height: 76px; }
  .hero-copy { min-height: 0; padding: 1.8rem 1rem 1.25rem; gap: 1.6rem; }
  h1 { font-size: clamp(3.1rem, 17vw, 5rem); line-height: .84; letter-spacing: -.045em; word-spacing: .08em; }
  .hero-image { min-height: 0; aspect-ratio: 4 / 5; }
  .work-section, .profile-section, .motion-section { padding-left: 1rem; padding-right: 1rem; }
  .portfolio-card { padding-left: 1rem; padding-right: 1rem; }
  .portfolio-track a { padding-inline: .75rem; font-size: .7rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; overscroll-behavior-inline: contain; }
  .filter { flex: 0 0 auto; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .gallery-item, .gallery-item:nth-child(n), .gallery-item:nth-child(5n + 1) {
    grid-column: span 1;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }
  .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  .section-heading p:last-child, .portfolio-card > p { overflow-wrap: anywhere; }
  .section-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; align-items: start; }
  .section-media figure { min-width: 0; }
  .section-media img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }
  .section-media-single { grid-template-columns: 1fr; }
  .section-media-single img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: var(--paper); }
  .lightbox { width: 96vw; }
}

@media (max-width: 390px) {
  .wordmark { font-size: .76rem; }
  .hero-intro { font-size: .94rem; }
  .portfolio-track a { padding-inline: .7rem; }
  .portfolio-card h2 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
}

/* The Güldüy Güldüy group photo keeps all faces clear: caption outside the image. */
.photo-grid .gallery-item--event {
  min-height: 0;
  height: auto;
  align-self: start;
  overflow: visible;
  background: transparent;
}
.gallery-item--event .event-photo-frame { display: block; position: relative; width: 100%; }
.photo-grid .gallery-item--event .event-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.photo-grid .gallery-item--event .image-meta {
  position: static;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: .35rem;
  padding: .35rem .45rem;
  background: rgba(255, 250, 245, .95);
  font-size: .62rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gallery-item--event .event-photo-frame .instagram-image-cta {
  right: .35rem;
  bottom: .35rem;
}

/* Duru event photos remain at their natural ratio; descriptions under each photo. */
.section-media-duo { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); gap: .9rem; align-items: start; }
.section-media-duo figure { min-width: 0; margin: 0; }
.section-media-duo img { width: 100%; height: auto; object-fit: contain; display: block; }
.section-media-duo figcaption { padding-top: .45rem; line-height: 1.4; }
/* Only the Güldüy Güldüy pair is stacked on mobile; all other galleries stay two-column. */
@media (max-width: 760px) {
  .section-media.section-media-duo {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
  }
  .section-media.section-media-duo figure:first-child {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }
  .section-media.section-media-duo figure:nth-child(2) {
    width: min(100%, 300px);
    max-width: 100%;
    justify-self: center;
  }
  .section-media.section-media-duo img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .section-media.section-media-duo figure:nth-child(2) .instagram-photo-link img {
    /* Portrait window centers Duru in the lower foreground; original file untouched. */
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 53% 70%;
    transform: scale(1.16);
    transform-origin: 53% 70%;
  }
  .section-media.section-media-duo figure:nth-child(2) figcaption {
    text-align: center;
  }
}
