/* ============================================================
   YILMAZ HUKUK BÜROSU — monochrome design system
   Ground #000 · Light #FFF · Hairline #222 · Glass rgba(255,255,255,.06)
   Type: Archivo variable (wdth 62–125) + Spline Sans Mono
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --hairline: #222222;
  --glass: rgba(255, 255, 255, 0.06);
  --dim: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.32);

  --font-sans: "Archivo", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-pad: clamp(6rem, 14vh, 11rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--black);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: 0 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 340;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--white); color: var(--black); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-weight: 340;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

/* ============ SCALES RIG (fixed signature layer) ============ */

.scales-rig {
  position: fixed;
  top: 50%;
  right: 1vw;
  width: min(34vw, 560px);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  perspective: 1200px;
}

.scales-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.scales-img {
  width: 100%;
  height: auto;
  /* black pixels dissolve into the black page */
  mix-blend-mode: screen;
  filter: grayscale(1);
}

.scales-img--echo {
  position: absolute;
  inset: 0;
  filter: grayscale(1) blur(28px);
  opacity: 0.5;
  transform: translateZ(-120px) scale(1.06);
}

.scales-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(ellipse 50% 42% at 50% 55%, rgba(255,255,255,0.09), transparent 68%);
  transform: translateZ(-200px);
}

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.logo {
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.logo-thin {
  font-weight: 300;
  font-variation-settings: "wdth" 110;
  color: var(--dim);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.site-nav > a:not(.btn) {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.25s var(--ease-out);
}

.site-nav > a:not(.btn):hover { color: var(--white); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.72rem 1.5rem;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn--solid {
  background: var(--white);
  color: var(--black);
}

.btn--solid:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--hairline);
}

.btn--ghost:hover {
  border-color: var(--white);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

/* mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.2rem;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.mobile-menu a:not(.btn) {
  font-size: 2rem;
  font-weight: 700;
  font-variation-settings: "wdth" 116;
  letter-spacing: 0.02em;
}

.mobile-menu.open { display: flex; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ HERO ============ */

main { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 7.5rem var(--gutter) 4rem;
  position: relative;
}

.hero-left {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.eyebrow { margin-bottom: 2.2rem; }

.hero-name {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.shine-text {
  --shine-base: #ffffff;
  --shine-highlight: rgba(255, 255, 255, 0.2);

  background: linear-gradient(
    110deg,
    var(--shine-base) 0%,
    var(--shine-base) 38%,
    var(--shine-highlight) 47%,
    var(--shine-highlight) 53%,
    var(--shine-base) 62%,
    var(--shine-base) 100%
  );
  background-size: 300% auto;
  background-position: 100% center;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s 1 forwards;
  display: inline-block;
}

.hero-firm.shine-text {
  --shine-base: var(--dim);
  --shine-highlight: #ffffff;
  animation-delay: 0.8s;
}

@keyframes shine {
  0% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-tagline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--dim);
  margin: 1.5rem 0 2.5rem;
}

.hero-credential {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scroll-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--faint);
}

.hero-tagline {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem 0 3rem;
  max-width: 32ch;
  line-height: 1.5;
}

.hero-firm {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 300;
  font-variation-settings: "wdth" 118;
  letter-spacing: 0.42em;
  color: var(--dim);
}

.hero-tagline {
  margin-top: 2.6rem;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 460;
  line-height: 1.35;
}

.hero-credential {
  margin-top: 1.6rem;
  font-size: 0.68rem;
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.62rem;
}

.scroll-line {
  display: inline-block;
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--white), transparent);
  animation: scrollPulse 2.4s var(--ease-out) infinite;
  transform-origin: left;
}

@keyframes scrollPulse {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(24px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
}

/* ============ SECTION COMMONS ============ */

.section-label {
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 750;
  font-variation-settings: "wdth" 118;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 3.5rem;
  max-width: 18ch;
}

/* ============ ABOUT ============ */

.about {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, rgba(0,0,0,0.72), rgba(0,0,0,0.55));
}

.kinetic {
  font-size: clamp(2.4rem, 6.8vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 122;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 4.5rem;
}

.kinetic-line { display: block; overflow: hidden; }

.kword {
  display: inline-block;
  will-change: transform, opacity;
}

.about-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-portrait {
  flex: 0 0 auto;
  width: min(100%, 340px);
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.about-body {
  flex: 1 1 auto;
  max-width: 680px;
}

.about-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-text {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.about-facts {
  margin: 3.2rem 0;
  border-top: 1px solid var(--hairline);
}

.fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.fact dt { padding-top: 0.2rem; }
.fact dd { font-weight: 440; }

.btn--linkedin svg { flex-shrink: 0; }

/* ============ PRACTICE — BENTO ============ */

.practice {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.82);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.cell {
  position: relative;
  background: linear-gradient(135deg, var(--glass), var(--black) 55%);
  padding: 1.6rem 1.5rem 1.5rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.cell:hover {
  outline-color: var(--white);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.10), inset 0 0 24px rgba(255, 255, 255, 0.03);
  z-index: 2;
}

.cell-no {
  font-size: 0.66rem;
  margin-bottom: auto;
  padding-bottom: 1.6rem;
}

.cell h3 {
  font-size: 1.02rem;
  font-weight: 620;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.015em;
  line-height: 1.25;
}

.cell-tr {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}

.cell-desc {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--dim);
  max-width: 42ch;
}

/* ============ CONTACT ============ */

.contact {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.88);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2.4rem;
}

.field label { font-size: 0.62rem; }

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 380;
  padding: 0.5rem 0 0.7rem;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.btn--submit { margin-top: 0.6rem; }

.form-note {
  margin-top: 1.1rem;
  font-size: 0.62rem;
}

.info-block { margin-bottom: 2.2rem; }

.info-label { font-size: 0.62rem; margin-bottom: 0.45rem; }

.info-value {
  font-size: 1.05rem;
  font-weight: 460;
}

.info-value a {
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.25s var(--ease-out);
}

.info-value a:hover { border-color: var(--white); }

.map-frame {
  margin-top: 2.6rem;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* dark-mode map: invert + desaturate */
  filter: invert(0.92) grayscale(1) contrast(0.88) brightness(0.9);
}

/* ============ FOOTER ============ */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.2rem var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--black);
  position: relative;
  z-index: 1;
}

.site-footer .mono { font-size: 0.62rem; }

/* ============ WHATSAPP FAB ============ */

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.whatsapp-fab:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .scales-rig { width: 46vw; opacity: 0.8; }
  .about-content { gap: 2.5rem; }
  .bento { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    padding-top: 6.5rem;
    gap: 0;
  }

  .hero-left { flex: none; width: 100%; padding-bottom: 3.5rem; }
  
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  .about-portrait {
    width: min(100%, 200px);
    margin: 0 auto;
  }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .scales-rig {
    width: 88vw;
    right: -18vw;
    opacity: 0.38;
  }

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

  /* bento → horizontal snap slider */
  .bento {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1px;
    border: none;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .cell {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
    border: 1px solid var(--hairline);
    min-height: 190px;
  }

  .bento::-webkit-scrollbar { height: 3px; }
  .bento::-webkit-scrollbar-thumb { background: var(--hairline); }

  .fact { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.9rem 0; }

  .scroll-hint { display: none; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
