/* Phantom Fish · built from the Figma frame "Phantom Fish final" (page "Final Websites"). */

:root {
  --page: #f7f7f7;
  --ink: #242424;
  --grey: #636363;
  --sea: #03111a;
  --lavender: #beafe6;
  --pink: #ecaacd;
  --peach: #f8beaa;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --wide: 1250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Menu bar */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 131px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  overflow: hidden;
}
.nav__logo { align-self: flex-start; }
.nav__logo img { width: 232px; }
.nav__link {
  color: #faf9fc;
  font-size: 15px;
  text-decoration: none;
}
.nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Soft colour */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}
.glow--lavender { left: 8.3%;  top: 180px; width: 700px; height: 700px; background: var(--lavender); opacity: .75; }
.glow--pink     { left: 43%;   top: 320px; width: 620px; height: 620px; background: var(--pink);     opacity: .60; }
.glow--peach    { left: 62.5%; top: 120px; width: 560px; height: 560px; background: var(--peach);    opacity: .55; }

/* Opening */
.hero {
  position: relative;
  height: 651px;
  background: rgba(255, 255, 255, .9);
}
.hero__words {
  position: relative;
  z-index: 1;
  padding: 299px 20px 0 calc(50% - 435px);
}
.hero h1 {
  max-width: 820px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero__sub {
  margin-top: 28px;
  font-size: 38px;
  color: var(--grey);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 140px 24px;
}
.section__title {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  text-align: left;
  border-bottom: 1px solid #000;
  padding-bottom: 28px;
}
.section__title h2 { font-size: 44px; line-height: 1.2; }

.divider {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #000;
}

/* Products */
.work { display: flex; flex-direction: column; gap: 72px; }
.product {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 80px;
  align-items: center;
}
.product--flip { grid-template-columns: 1fr 520px; }
.product--flip .product__picture { order: 2; }
.product__picture { width: 520px; }
.product__words { display: flex; flex-direction: column; gap: 10px; }
.product__number { font-size: 40px; }
.product h3 { font-size: 44px; line-height: 1.2; }
.product__text { max-width: 420px; font-size: 17px; line-height: 1.5; color: var(--grey); }

/* Buttons: round, in the soft colours of the opening */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(255,255,255,.35), rgba(255,255,255,.15)),
    radial-gradient(70% 120% at 70% 100%, rgba(236,170,205,.55), rgba(236,170,205,.05) 70%),
    radial-gradient(90% 160% at 100% 50%, rgba(248,190,170,.6), rgba(248,190,170,.1)),
    radial-gradient(80% 140% at 15% 20%, rgba(190,175,230,.75), rgba(190,175,230,0) 95%),
    #f6f2fa;
  box-shadow:
    0 8px 30px rgba(190,175,230,.35),
    -10px -6px 30px rgba(248,190,170,.25),
    inset 0 0 8px rgba(255,255,255,.9),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(190,175,230,.5), -10px -6px 30px rgba(248,190,170,.3), inset 0 0 8px rgba(255,255,255,.9); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* About */
.about { padding-bottom: 160px; }
.about__text {
  max-width: 1100px;
  margin: 48px auto 0;
  font-size: 38px;
  line-height: 1.35;
  text-align: center;
}
.about__text + .about__text { margin-top: 51px; }

/* Statement */
.statement {
  position: relative;
  padding: 200px 24px;
  text-align: center;
}
.statement p {
  position: relative;
  z-index: 1;
  font-size: 136px;
  line-height: .95;
  letter-spacing: -0.01em;
}
.glow--white { left: calc(50% - 360px); top: -120px; width: 720px; height: 600px; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); filter: none; }

/* Contact */
.contact {
  padding-bottom: 180px;
  text-align: center;
  background: linear-gradient(to bottom, #f7f7f7 0%, #eae2f4 35%, #d6c8ec 100%);
}
.contact__text {
  max-width: 860px;
  margin: 48px auto;
  font-size: 40px;
  line-height: 1.25;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  height: 400px;
  padding: 90px 64px 0 89px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--sea);
  color: #fff;
  clip-path: inset(-200px 0 0 0);
}
.footer__fish {
  position: absolute;
  left: 103px;
  top: -134px;
  width: 425px;
  pointer-events: none;
}
.footer__name {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 96px;
  line-height: 1.2;
}
.footer__side { position: relative; width: 420px; padding-top: 32px; }
.footer__side .buttons { margin-top: 0; gap: 10px; }
.footer__company { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.2; }

/* Tablet */
@media (max-width: 1180px) {
  .product, .product--flip { grid-template-columns: 1fr 1fr; gap: 48px; }
  .product__picture { width: 100%; }
  .hero__words { padding-left: 64px; }
  .statement p { font-size: 96px; }
  .footer { padding-left: 64px; }
}

/* Phone */
@media (max-width: 760px) {
  .nav { height: 88px; padding: 0 16px; }
  .nav__logo img { width: 156px; }
  .glow { filter: blur(45px); }
  .glow--lavender { left: -30%; top: 140px; width: 380px; height: 380px; }
  .glow--pink     { left: 30%;  top: 260px; width: 340px; height: 340px; }
  .glow--peach    { left: 50%;  top: 90px;  width: 300px; height: 300px; }
  .hero { height: auto; padding-bottom: 72px; }
  .hero__words { padding: 160px 16px 0; }
  .hero h1 { font-size: 36px; }
  .hero__sub { margin-top: 18px; font-size: 22px; }
  .section { padding: 88px 16px; }
  .section__title h2 { font-size: 32px; }
  .section__title { padding-bottom: 18px; }
  .work { gap: 56px; }
  .product, .product--flip { grid-template-columns: 1fr; gap: 28px; }
  .product--flip .product__picture { order: 0; }
  .product__number { font-size: 28px; }
  .product h3 { font-size: 32px; }
  .about__text { margin-top: 32px; font-size: 22px; }
  .about__text + .about__text { margin-top: 28px; }
  .statement { padding: 96px 16px; }
  .statement p { font-size: 44px; }
  .contact__text { margin: 32px auto; font-size: 24px; }
  .footer { height: auto; flex-direction: column; gap: 28px; padding: 64px 16px 48px; }
  .footer__fish { left: 0; top: -60px; width: 260px; }
  .footer__name { font-size: 60px; }
  .footer__side { width: auto; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
