.hero {
  --hero-ink: #f9f4e9;
  --hero-deep: #102840;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: clamp(28rem, 42vw, 37rem);
  margin-block: clamp(1.25rem, 3.6vw, 3.15rem) clamp(1.7rem, 4vw, 3.6rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--hero-deep);
  color: var(--hero-ink);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.8rem) clamp(1.75rem, 4.5vw, 4.5rem) 5.5rem;
  background: radial-gradient(ellipse at 90% 112%, #2a5278, transparent 65%);
}

.hero-message { position: relative; }

.hero h1 {
  margin-bottom: 1.25rem;
  font: 500 clamp(3.35rem, 6.7vw, 7rem)/.94 var(--serif);
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

.hero h1 span { display: block; }

.professional-title {
  color: #dbe7f3;
  font-size: clamp(1rem, 1.55vw, 1.21rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 1.65rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: #f2ebdc;
  color: #163550;
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-link:hover { background: #fff9ed; }
.profile-link span { font: 400 1.15rem/1 var(--sans); }

.hero-appointment-link {
  border: 1px solid #9eafc1;
  background: #ffffff0b;
  color: #f4f8fd;
}
.hero-appointment-link:hover { background: #ffffff20; }

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.05rem;
  margin-top: .52rem;
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  color: #e5edf7;
  font-size: .93rem;
  font-weight: 700;
}
.hero-contact a:hover { color: white; }
.hero-actions a:focus-visible, .hero-contact a:focus-visible { outline-color: #f9d4a7; }
.hero a:focus-visible { outline: 2px solid #ffe0b8; outline-offset: 5px; }

.hero-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #6c8296;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: .8rem;
  bottom: .8rem;
  padding: .2rem .65rem;
  border-radius: .25rem;
  background: #102840;
  color: var(--hero-ink);
  font-size: .75rem;
}

.hero-image::after {
  position: absolute;
  inset: -18%;
  background: linear-gradient(125deg, transparent 33%, #ffeed41f 47%, #fff5e22b 51%, transparent 68%);
  pointer-events: none;
  animation: photo-light 20s ease-in-out infinite alternate paused;
  content: "";
}

@keyframes photo-light {
  from { transform: translate(-14%, 2%); }
  to { transform: translate(15%, -4%); }
}

.hero-waves {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 14rem;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(100deg, #0005, #000 52%);
}

.hero-wave {
  --wave-offset: 0rem;
  --wave-phase: 0s;
  position: absolute;
  bottom: calc(-11.3rem + var(--wave-offset));
  left: -24%;
  width: 158%;
  height: 17rem;
  border: 1px solid #8eafcf81;
  border-radius: 49% 57% 43% 51%;
  animation: home-wave 15s ease-in-out var(--wave-phase) infinite alternate paused;
}

.hero-wave:nth-child(2) { --wave-offset: .8rem; --wave-phase: -1.2s; }
.hero-wave:nth-child(3) { --wave-offset: 1.6rem; --wave-phase: -2.4s; }
.hero-wave:nth-child(4) { --wave-offset: 2.4rem; --wave-phase: -3.6s; }
.hero-wave:nth-child(5) { --wave-offset: 3.25rem; --wave-phase: -4.8s; }
.hero-wave:nth-child(6) { --wave-offset: 4.1rem; --wave-phase: -6s; border-color: #d6b58b99; }
.motion-playing [data-wave-stage][data-motion-visible] .hero-wave,
.motion-playing [data-wave-stage][data-motion-visible] .hero-image::after { animation-play-state: running; }

@keyframes home-wave {
  from { transform: translate(-4%, 5%) rotate(-12deg) scaleY(.88); }
  to { transform: translate(6%, -5%) rotate(6deg) scaleY(1.14); }
}

.wave-toggle {
  position: absolute;
  bottom: .6rem;
  left: clamp(1.75rem, 4.5vw, 4.5rem);
  background: var(--hero-deep);
}

.topic-carousel { margin-block: 0 clamp(1.8rem, 4vw, 3.5rem); }

.topic-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.topic-carousel-heading h2 {
  font: 500 clamp(1.85rem, 4vw, 3.25rem)/1.05 var(--serif);
  letter-spacing: -.045em;
}

.topic-carousel-controls {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1vw, .7rem);
}

.topic-carousel-controls button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #acbfd1;
  border-radius: 50%;
  background: #fbfaf4;
  color: #173957;
  font: 500 1.2rem/1 var(--sans);
  cursor: pointer;
}

.topic-carousel-controls button:hover:not([aria-disabled="true"]) {
  background: var(--navy);
  color: #fff9ed;
}

.topic-carousel-controls button[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

[data-carousel-autoplay] { display: grid; place-items: center; }

.topic-carousel-pause {
  width: .62rem;
  height: .78rem;
  border-inline: 2px solid currentColor;
}

.topic-carousel-play {
  margin-inline-start: .16rem;
  border-block: .39rem solid transparent;
  border-inline-start: .59rem solid currentColor;
}

.topic-carousel-status {
  min-width: 2rem;
  color: var(--muted);
  font-size: .81rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.topic-carousel-track {
  --card-gap: clamp(.65rem, 1.4vw, 1.1rem);
  --card-width: calc((100% - 2 * var(--card-gap)) / 3);
  display: flex;
  gap: var(--card-gap);
  margin-top: .35rem;
  padding-block: 1.15rem .85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.topic-carousel-track::-webkit-scrollbar { display: none; }

.topic-carousel-track::before,
.topic-carousel-track::after {
  flex: 0 0 max(0px, calc((100% - var(--card-width)) / 2 - var(--card-gap)));
  content: "";
}

.topic-carousel-track:focus-visible,
.topic-carousel-controls button:focus-visible {
  outline: 2px solid #316592;
  outline-offset: 3px;
}

.topic-carousel-track:focus-visible { outline-offset: -2px; }

.topic-card { flex: 0 0 var(--card-width); min-width: 0; scroll-snap-align: center; }
.topic-card a:focus-visible { outline-offset: -4px; }
.topic-card[data-active] a:focus-visible { outline-color: #ffe0b8; }

.topic-card a {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 14rem;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  overflow: hidden;
  border: 1px solid #bbccdd;
  border-radius: .7rem;
  background: #e8eff7;
  color: #213b56;
  text-decoration: none;
  transition: transform .28s ease, background-color .28s ease, color .28s ease;
}

.topic-card a::before {
  position: absolute;
  z-index: -1;
  right: -4rem;
  bottom: -6rem;
  width: 14rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 1.2rem #7d9cbe30, 0 0 0 2.45rem #7d9cbe25;
  opacity: .22;
  content: "";
}

.topic-card:nth-of-type(2n) a { background: #f1ece0; border-color: #d3cbbb; }

.topic-card[data-active] a {
  border-color: #244e74;
  background: #244e74;
  color: #fcf6e9;
}

.topic-card[data-active] a::before {
  box-shadow: 0 0 0 1.2rem #e4c49355, 0 0 0 2.45rem #e4c49333;
  opacity: .45;
  animation: card-ripple 8s ease-in-out infinite alternate paused;
}

.motion-playing .topic-carousel[data-motion-visible] .topic-card[data-active] a::before {
  animation-play-state: running;
}

@keyframes card-ripple {
  from { transform: translate(0, 3%) scale(.89); }
  to { transform: translate(-12%, -6%) scale(1.13); }
}

.topic-card a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }

.topic-card h3 {
  max-width: none;
  font: 500 clamp(1.6rem, 3vw, 2rem)/1.05 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.topic-card p { margin-block: .7rem 1.05rem; font-size: .94rem; line-height: 1.44; }

.topic-card-arrow {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  margin-top: auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}

.home-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line);
}

.home-directory article { padding: 1.25rem clamp(1rem, 2.6vw, 2.15rem); }
.home-directory article:first-child { padding-inline-start: 0; }
.home-directory article + article { border-left: 1px solid var(--line); }

.home-directory h2 {
  margin-bottom: .3rem;
  font-size: clamp(1.16rem, 2.15vw, 1.48rem);
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: initial;
}

.home-directory h2 a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.home-directory h2 a:hover { text-decoration: underline; }
.home-directory p { color: var(--muted); }

@media (min-width: 90rem) {
  body { --home-content-width: min(90%, 118rem); }
  .shell { width: var(--home-content-width); }

  #icerik { position: relative; isolation: isolate; }
  #icerik::before,
  #icerik::after {
    position: absolute;
    z-index: -1;
    width: calc((100% - var(--home-content-width)) / 2);
    height: 38rem;
    pointer-events: none;
    content: "";
  }

  #icerik::before {
    top: 1.5rem;
    left: 0;
    background:
      repeating-radial-gradient(ellipse at -15% 48%, transparent 0 1rem, #7697ba59 1.06rem 1.12rem, transparent 1.18rem 1.63rem),
      radial-gradient(ellipse at left center, #dce8f4, transparent 74%);
    mask-image: radial-gradient(ellipse at left center, #000 14%, #000b 35%, transparent 78%);
  }

  #icerik::after {
    top: 12rem;
    right: 0;
    background:
      repeating-radial-gradient(ellipse at 115% 60%, transparent 0 1rem, #849fbe4d 1.06rem 1.12rem, transparent 1.18rem 1.63rem),
      radial-gradient(ellipse at right center, #ebe4d7, transparent 74%);
    mask-image: radial-gradient(ellipse at right center, #000 14%, #000b 35%, transparent 78%);
  }
}

@media (max-width: 730px) {
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: .75rem; }
  .hero-copy { min-height: 22rem; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(2.95rem, 11vw, 5.4rem); }
  .hero-image { aspect-ratio: 1.5; }
  .topic-carousel-track { --card-width: clamp(16rem, 77vw, 22rem); width: 100%; }
  .topic-card[data-active] a { transform: translateY(-.55rem); }
  .home-directory { grid-template-columns: 1fr; }
  .home-directory article { padding: 1.05rem 0; }
  .home-directory article + article { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave { animation: none; transform: rotate(-9deg); }
  .hero-image::after,
  .topic-card[data-active] a::before { animation: none; }
  .topic-card a { transition: none; }
}

@media (max-width: 385px) {
  .topic-carousel-heading { flex-wrap: wrap; }
  .topic-carousel-heading h2 { flex-basis: 100%; }
}

@media print {
  #icerik::before,
  #icerik::after,
  .hero-waves,
  .hero-image::after,
  .topic-card a::before { display: none; }
}
