/* Effe Mimarlık page CSS: only what sits inside a visual and the kit lacks (taste-skill system.css rules all else). */

/* the client's logo in the bar and the sheet */
.nav__logo img { height: 40px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo img { height: 32px; } }

/* hero photograph box: the words sit in the page ground on the right */
.hero--photo .hero__lead { max-width: 44ch; }

/* project text column */
.project__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; }
.project__text h2 { margin: 0; }

/* photo walls: every tile a link to the full photograph, opened in the lightbox */
.wall { display: grid; gap: 2px; align-content: start; border-radius: var(--r-lg); overflow: clip; }
.wall__item { position: relative; display: block; overflow: clip; background: var(--surface); aspect-ratio: var(--wall-ratio, 4 / 3); }
.wall__item > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
@media (hover: hover) { .wall__item:hover > img, .photo-hover:hover > img { transform: scale(1.03); } }
.wall__item:focus-visible { outline: 3px solid var(--action); outline-offset: -3px; }
.wall--a { grid-template-columns: 1fr 1fr; }
.wall--a > .wall__item--big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.wall--b { grid-template-columns: 1fr 1fr; }
.wall--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .wall--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-hover { overflow: clip; }
.photo-hover > img { transition: transform 600ms var(--ease); }

/* a film plays on a click (kind other) */
.video-frame { position: relative; overflow: clip; border-radius: var(--r-lg); background: #1b1b1b; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-video { display: flex; flex-direction: column; justify-content: flex-start; }
.hero-video .video-frame { width: 100%; }

/* the enquiry form on its panel */
.form--panel { background: var(--bg); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .form--panel { padding: var(--s-5); } }
.visit__address { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); font-style: normal; letter-spacing: var(--display-tracking); }

/* footer: the way there and the Powered by badge */
.footer__way { color: var(--ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.powered-by { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: var(--t-small); font-weight: 500; text-decoration: none; transition: border-color .25s ease, color .25s ease, transform .25s ease; }
.powered-by:hover { color: var(--ink); border-color: rgb(52 211 153 / .6); transform: translateY(-1px); }
.powered-by .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa774; animation: poweredPulse 2s infinite; }
@keyframes poweredPulse { 0% { box-shadow: 0 0 0 0 rgb(31 167 116 / .55); } 70% { box-shadow: 0 0 0 8px rgb(31 167 116 / 0); } 100% { box-shadow: 0 0 0 0 rgb(31 167 116 / 0); } }
@media (prefers-reduced-motion: reduce) { .powered-by .pulse-dot { animation: none; } }

/* the lightbox: a native dialog over a dark veil */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(20 19 15 / .96); color: #f3f2ee; }
.lightbox::backdrop { background: rgb(20 19 15 / .96); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--gut); }
.lightbox__title { font: 500 var(--t-body)/1.3 var(--font-text); }
.lightbox__count { color: #bdbbb4; font-variant-numeric: tabular-nums; font-size: var(--t-small); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 calc(var(--gut) + 56px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__foot { padding: var(--s-4) var(--gut) var(--s-5); text-align: center; color: #d8d6cf; font-size: var(--t-small); min-height: 44px; }
.lightbox button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .06); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.lightbox button:hover { background: rgb(255 255 255 / .16); }
.lightbox button:active { transform: scale(.96); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: var(--gut); } .lightbox__next { right: var(--gut); }
@media (max-width: 639px) {
  .lightbox__stage { padding: 0 var(--s-3); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s-4); translate: none; }
}
body.lb-open { overflow: hidden; }

/* WhatsApp glyph inside a button */
.wa-ic { width: 18px; height: 18px; flex: none; }

/* ---- screens at tablet and phone (layout-v4: each section one or two screens) ---- */
#surec .panel { --p-h: clamp(220px, 24vw, 360px); }
@media (min-width: 1024px) and (max-width: 1279px) { #surec .grid > .card.span-4:has(> .panel) { grid-column: auto / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) {
  #surec { --h: 2; }
  #ekip .grid > .tile.span-4 { grid-column: auto / span 4; }
  .project .wall--a, .project .wall--b { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project .wall--a > .wall__item--big { grid-column: span 2; aspect-ratio: auto; }
  .wall--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  #surec { --hm: 2; }
  #surec .panel { --p-h: 260px; }
  #uzmanlik { --hm: 2; }
  #hizmetler .frame--fill { height: auto; aspect-ratio: 2 / 1; }
  .project .wall--a > .wall__item:not(.wall__item--big) { display: none; }
  .project .wall--b > .wall__item:nth-child(n+3) { display: none; }
  .project .wall--a > .wall__item--big { aspect-ratio: 16 / 10; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #ofis .grid > .frame.span-4 { grid-column: auto / span 6; }
  #ofis .grid > .frame.span-4:nth-child(3) { display: none; }
  #ekip .grid > .tile.span-4 { --tile-ratio: 3 / 5; }
}

/* the close's big button keeps its height; the footer nav sits on the column lines on a phone */
.closing__cta > .btn--xl { flex: none; }
@media (max-width: 639px) {
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
}
@media (max-width: 639px) { #hizmetler .rows > li > p { display: none; } }

/* the team as rows beside the founder's photograph (index) */
.team-list { list-style: none; margin: 0; padding: 0; display: grid; }
.team-row { display: flex; align-items: center; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.team-row:first-child { padding-top: 0; }
.team-row img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; object-position: 50% 25%; background: var(--surface); flex: none; }
.team-row > span { display: grid; gap: 2px; }
.team-row__role { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) {
  #ekip .grid > .frame--fill { height: auto; aspect-ratio: 3 / 2; }
  #ekip .project__lead, #ekip .stack-6 > p:last-child { display: none; }
  #ekip .team-row { padding-block: var(--s-2); }
  #ekip .stack-6 { gap: var(--s-5); }
}

.video-frame:has(video:focus-visible) { outline: 2px solid var(--action); outline-offset: 3px; }
.video-frame video:focus-visible { outline: 3px solid #ffffff; outline-offset: -3px; }

/* program and form columns carry one wide photograph under the words */
.program__pic { aspect-ratio: 16 / 9; height: auto; }
.program__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a phone: every section grows with what it holds (the .fill block never caps its content) */
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero) > .wrap > .fill { flex: 1 0 auto; }
  .grid > .frame--fill { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  #yazin, #staj, #mezun { --hm: 2; }
}

/* hero box: a lighter, see-through panel over the photograph (desktop; on a phone the words sit under it) */
@media (min-width: 1024px) {
  .hero--photo:not([data-box="none"]) .hero__text {
    background: rgb(223 222 219 / .58);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgb(255 255 255 / .38);
    box-shadow: 0 24px 60px -32px rgb(20 19 15 / .45);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 1024px) { .hero--photo:not([data-box="none"]) .hero__text { background: rgb(223 222 219 / .86); } }
}

/* ---- Apple-like glass: the bar and the chapter panels let the photographs through ---- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:not(.nav-locked) header.nav:not(.is-open) {
    background: rgb(223 222 219 / .74);
    -webkit-backdrop-filter: saturate(1.6) blur(20px);
    backdrop-filter: saturate(1.6) blur(20px);
  }
  main [data-moment="photo-chapters"].is-live .mo-ph__panel {
    background: rgb(223 222 219 / .62);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    border: 1px solid rgb(255 255 255 / .4);
  }
}
/* a phone: the panel shrinks to the chapter's number and name, so the building stays in view */
@media (max-width: 639px) {
  main [data-moment="photo-chapters"].is-live .mo-ph__panel { left: var(--s-3); right: auto; bottom: var(--s-3); width: auto; max-width: calc(100% - 2 * var(--s-3)); padding: var(--s-3) var(--s-4); gap: var(--s-1); }
  main [data-moment="photo-chapters"].is-live .mo-ph__ch p { display: none; }
  main [data-moment="photo-chapters"].is-live .mo-ph__ch h3 { font-size: 22px; }
  main [data-moment="photo-chapters"] .mo-ph__head p { font-size: 16px; line-height: 1.5; }
}
