/* ───────── SEACLAY ───────── */

@font-face {
  font-family: "GT Sectra";
  src: url("fonts/GT-Sectra-Fine-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-blue: #001fb1;
  --dark-blue: #0a1678;
  --yellow: #eeff00;
  --grey: #efefed;
  --black: #000;
  --white: #fff;

  --serif: "GT Sectra", "Iowan Old Style", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 2.6vw, 40px);
  --edge-text: clamp(15px, 2.4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ───── Shared frame: corner links ───── */

.frame {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.corners {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--edge-text);
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.corners a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.corners a:hover,
.corners a:focus-visible,
.corners a[aria-current="page"] { background-size: 100% 1px; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Logo: recoloured via mask so one file serves every page */
.logo {
  display: block;
  aspect-ratio: 2000 / 319;
  background-color: currentColor;
  -webkit-mask: url("img/seaclay-logo.png") center / contain no-repeat;
          mask: url("img/seaclay-logo.png") center / contain no-repeat;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ───── Homepage ───── */

.home {
  background: var(--deep-blue);
  color: var(--white);
  overflow: hidden;
}

.home .stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.home .shell {
  height: min(84svh, 150vw);
  width: auto;
  max-width: none;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.home .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(19vw, 30svh);
  animation: fade 1s 0.4s ease both;
}

/* Mobile: shell sits higher, matching the design */
@media (max-width: 640px) {
  .home .stage { place-items: start center; padding-top: 22svh; }
  .home .shell { height: 60svh; }
  .home .logo { top: 52svh; width: min(46vw, 21svh); }
}

/* ───── About ───── */

.about { background: var(--grey); color: var(--black); }

.intro {
  background: var(--yellow);
  color: var(--black);
}

.intro .content {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(48px, 6vw, 96px);
}

.intro h1 { margin: 0; }

.intro .logo {
  width: clamp(120px, 18vw, 270px);
  margin-bottom: clamp(32px, 5vw, 72px);
}

.intro p {
  margin: 0 auto;
  max-width: 13.5em;
  font-size: clamp(24px, 4.3vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro p + p { margin-top: 0.9em; }

.gallery {
  padding: clamp(24px, 3vw, 48px) var(--gutter) var(--gutter);
}

.gallery h2 {
  margin: 0 0 clamp(20px, 2.4vw, 36px);
  text-align: center;
  font-weight: 400;
  font-size: var(--edge-text);
  letter-spacing: -0.01em;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.2vw, 32px);
}

.grid li {
  aspect-ratio: 3 / 4;
  background: #d9d9d5;
  overflow: hidden;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.grid li:hover img { transform: scale(1.03); }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* ───── Motion ───── */

@keyframes rise {
  from { opacity: 0; transform: translateY(3%) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
