@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/oswald-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/oswald-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/roboto-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/roboto-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url(../fonts/roboto-800.woff2) format('woff2');
}

:root {
  --black: #050505;
  --black-soft: #0d0d0e;
  --panel: #131315;
  --white: #f4f2ef;
  --muted: #aaa7a4;
  --red: #d20b13;
  --red-dark: #83030a;
  --line: rgba(255,255,255,.18);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999;
  transform: translateY(-160%); padding: .7rem 1rem;
  color: #000; background: #fff;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative; min-height: min(900px, 100svh);
  display: grid; align-content: center; gap: 28px;
  padding: 32px clamp(20px, 8vw, 150px) 80px;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,219,160,.22), rgba(255,219,160,0) 12%),
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 40%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28)),
    url("../img/gallery/img-25.jpg") right center / cover no-repeat; 
}
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(32vw, 380px); background: repeating-linear-gradient(90deg, rgba(75,0,0,.96) 0 38px, rgba(150,0,10,.88) 38px 68px, rgba(100,0,4,.96) 68px 96px); opacity: .55; filter: blur(2px); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; z-index: -1; background: linear-gradient(transparent, var(--black)); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 48%, rgba(0,0,0,.18), rgba(0,0,0,.7) 72%), linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.1)); }
.hero__content { position: relative; z-index: 1; width: min(850px, 100%); margin-inline: auto; display: grid; justify-items: center; text-align: center; }
.hero__logo { position: relative; width: clamp(180px, 20vw, 280px); height: auto; margin: 0 auto; pointer-events: none; filter: drop-shadow(0 16px 40px rgba(0,0,0,.45)); }
.eyebrow { margin: 0 0 14px; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow--dark { color: #2d2d2d; }
.hero h1, .section-heading h2, .info-tile h2, .contacts h2 {
  margin: 0; font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .018em; line-height: .96;
}
.hero h1 { font-size: clamp(3.2rem, 8.1vw, 8.9rem); text-shadow: 0 8px 36px #000; }
.hero h1 em { color: var(--red); font-style: normal; white-space: nowrap; }
.hero__lead { width: min(680px, 100%); margin: 30px auto 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 52px; padding: 14px 24px; border: 1px solid; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { border-color: var(--red); background: var(--red); }
.button--primary:hover { background: #f0141e; }
.button--ghost { border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.22); }
.button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 34px; height: 50px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.35); border-radius: 20px; }
.hero__scroll span { position: absolute; top: 10px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scroll 1.7s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

.tile-section { display: grid; grid-template-columns: 1fr 1fr 1.35fr; min-height: 440px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-tile { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 90px); border-right: 1px solid var(--line); }
.info-tile h2 { font-size: clamp(2.2rem, 4.6vw, 5rem); }
.info-tile p:last-child { max-width: 490px; margin: 24px 0 0; font-size: 1rem; }
.info-tile--light { color: #111; background: #eeeae5; }
.info-tile--light p:last-child { color: #484544; }
.info-tile--red { background: linear-gradient(135deg, #b4050c, #720006); }
.info-tile--red p:last-child { color: rgba(255,255,255,.8); }
.image-tile { min-height: 360px; background-position: center; background-size: cover; }
.image-tile--about { background-image: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)), url("../img/gallery/img-22.jpg"); }

.directions { padding: clamp(72px, 9vw, 145px) clamp(20px, 5vw, 80px); }
.section-heading { width: min(var(--max), 100%); margin: 0 auto 48px; }
.section-heading h2 { font-size: clamp(3rem, 6vw, 6.4rem); }
.section-heading--split { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading--split > p { width: min(470px, 100%); margin: 0 0 8px; color: var(--muted); }
.directions__grid { width: min(var(--max), 100%); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.direction-card { position: relative; min-height: 360px; padding: clamp(32px, 4vw, 62px); overflow: hidden; border-right: 1px solid var(--line); background: var(--black-soft); }
.direction-card:last-child { border-right: 0; }
.direction-card--accent { background: linear-gradient(150deg, #c70810, #760006); }
.direction-card__number { color: rgba(255,255,255,.3); font-family: 'Oswald', sans-serif; font-size: 4.5rem; line-height: 1; }
.direction-card h3 { margin: 80px 0 12px; font-family: 'Oswald', sans-serif; font-size: clamp(2.45rem, 3.5vw, 4.2rem); font-weight: 400; line-height: .92; text-transform: uppercase; overflow-wrap: anywhere; }
.direction-card--education h3 { font-size: clamp(2.05rem, 2.7vw, 3.55rem); max-width: 100%; }
.direction-card p { max-width: 330px; margin: 0; color: rgba(255,255,255,.68); }
.direction-card--accent p { color: rgba(255,255,255,.82); }

.gallery-section { padding: clamp(72px, 9vw, 145px) clamp(12px, 2.4vw, 40px); background: #080808; }
.media-grid { width: min(1720px, 100%); margin: auto; columns: 4; column-gap: 4px; }
.media-card { position: relative; min-width: 0; min-height: 0; padding: 0; overflow: hidden; text-align: left; border: 0; background: #111; cursor: zoom-in; isolation: isolate; display: block; width: 100%; margin: 0 0 4px; break-inside: avoid; }
.media-card img { width: 100%; height: auto; object-fit: contain; filter: saturate(.78) contrast(1.08); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s; }
.media-card::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--red); transition: border-width .25s; pointer-events: none; }
.media-card:hover::after, .media-card:focus-visible::after { border-width: 3px; }
.media-card:hover img, .media-card:focus-visible img { filter: saturate(1) contrast(1.04); }

.contacts { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 560px; border-top: 1px solid var(--line); background: linear-gradient(120deg, #9d050b, #5a0004); }
.contacts__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 9vw, 145px); }
.contacts h2 { font-size: clamp(3.6rem, 7vw, 7.5rem); }
.contacts__content > p:not(.eyebrow) { max-width: 650px; margin: 28px 0; color: rgba(255,255,255,.76); }
.contacts__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__links a { padding: 13px 18px; border: 1px solid rgba(255,255,255,.45); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contacts__links a:hover { color: #111; background: #fff; }
.contacts__mark { display: grid; place-items: center; overflow: hidden; border-left: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.08); font-family: 'Oswald', sans-serif; font-size: clamp(7rem, 17vw, 20rem); writing-mode: vertical-rl; text-orientation: mixed; }
.site-footer { min-height: 100px; display: flex; align-items: center; gap: 22px; padding: 20px clamp(20px, 5vw, 80px); border-top: 1px solid var(--line); color: #989898; font-size: .8rem; background: #050505; }
.site-footer img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.site-footer a { margin-left: auto; color: #fff; }


.photo-error { display: block; padding: 40px 20px; color: var(--white); text-align: center; }
.modal[hidden] { display: none; }
.modal { --viewer-top: calc(76px + env(safe-area-inset-top, 0px)); --viewer-bottom: max(12px, env(safe-area-inset-bottom, 0px)); position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: var(--viewer-top) clamp(8px, 3vw, 40px) var(--viewer-bottom); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); }
.modal__dialog { position: relative; z-index: 1; width: min(1500px, 100%); display: flex; flex-direction: column; }
.modal__dialog, .modal__content, .modal__content > img { max-height: calc(100svh - var(--viewer-top) - var(--viewer-bottom)); }
.modal__content { display: grid; place-items: center; min-height: 0; overflow: hidden; background: #000; box-shadow: 0 24px 100px rgba(0,0,0,.7); cursor: grab; user-select: none; }
.modal__content:active { cursor: grabbing; }
.modal__content > img { max-width: 100%; width: auto; height: auto; object-fit: contain; }
.modal__caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.modal__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 4; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.72); font-size: 2rem; line-height: 1; cursor: pointer; }
.modal__nav { position: absolute; top: 50%; z-index: 4; width: 54px; height: 76px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.48); font-size: 3rem; cursor: pointer; }
.modal__nav--prev { left: 8px; }
.modal__nav--next { right: 8px; }
.modal__close:hover, .modal__nav:hover { background: var(--red); }
@keyframes reveal { from { transform: translateY(18px); } to { transform: none; } }
.reveal { animation: reveal .65s ease both; }
/* Desktop emblem intentionally sits behind the heading when they overlap. */
@media (min-width: 1101px) {
  .hero__logo { position: absolute; top: 24px; left: clamp(20px, 4vw, 64px); z-index: 0; width: min(320px, 26vw); max-width: 340px; margin: 0; opacity: .94; }
}
@media (max-width: 1100px) {
  .tile-section { grid-template-columns: 1fr 1fr; }
  .image-tile { grid-column: 1 / -1; }
  .image-tile--about { min-height: 0; aspect-ratio: 1621 / 1080; background-size: contain; background-repeat: no-repeat; }
  .media-grid { columns: 3; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__mark, .modal__nav { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 760px; padding-inline: 18px; background-position: 72% center; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.6rem); }
  .hero__lead { font-size: .98rem; }
  .button { min-width: 150px; }
  .tile-section, .directions__grid { grid-template-columns: 1fr; }
  .info-tile { min-height: 370px; border-right: 0; border-bottom: 1px solid var(--line); }
  .image-tile { grid-column: auto; }
  .direction-card { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .direction-card:last-child { border-bottom: 0; }
  .direction-card h3 { margin-top: 48px; }
  .section-heading--split { display: block; }
  .section-heading--split > p { margin-top: 20px; }
  .media-grid { columns: 2; }
  .contacts__content { padding-inline: 24px; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .button { width: 100%; }
  .media-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Native, non-blocking section snapping; long sections remain freely scrollable. */
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.section-snapping { scroll-snap-type: y proximity; }
  .hero, .tile-section, .directions { scroll-snap-align: start; scroll-snap-stop: normal; }
  .hero, .tile-section, .directions, .contacts { min-height: 100svh; }
  .directions { display: flex; flex-direction: column; justify-content: center; }
  .directions__grid { margin-block: 0; }
  .hero { background-position: center, center, center, right var(--parallax-position, 50%); }
  .image-tile--about { background-position: center, center var(--parallax-position, 50%); }
}
