/* Secret Seed Company
   Layout: bold portfolio. Full-screen black hero with the SSC cat as the subject and the
   company name set huge in condensed caps along the bottom edge; then colour-blocked
   sections (jade, black, paper, black) with giant condensed section titles.
   Fonts: Archivo (variable width) for display, Anuphan (Cadson Demak, has Thai) for text. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/anuphan-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/anuphan-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/anuphan-thai-wght-normal.woff2) format("woff2-variations"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  --black: #0d0e0d;
  --paper: #ecede8;
  --jade: #a8dcb6;      /* the cat */
  --orchid: #c48fcb;    /* lotus petals */
  --dim: rgb(236 237 232 / .62);
  --line: rgb(236 237 232 / .16);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lead: clamp(1.6rem, 1rem + 2.1vw, 2.75rem);
  --t-giant: clamp(4.5rem, 2rem + 13vw, 15rem);
  --t-hero: clamp(4rem, 14.2vw, 19rem);

  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --section: clamp(5rem, 3rem + 7vw, 9rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 var(--t-base)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--jade); color: var(--black); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--jade); color: var(--black); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; padding-inline: var(--gutter); }

/* condensed caps: the one display treatment, used at two sizes */
.giant, .hero__name, .person__name, .grow__handle, .grow__title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .82;
}
.giant { font-size: var(--t-giant); margin-left: -.03em; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  font: 600 var(--t-sm)/1 var(--display);
  font-stretch: 100%;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pill:hover { transform: translateY(-2px); }
.pill--light { background: var(--paper); color: var(--black); }
.pill--light:hover { background: var(--jade); }
.pill--dark { background: var(--black); color: var(--paper); }
.pill--dark:hover { background: var(--jade); color: var(--black); }
.pill--jade { background: var(--jade); color: var(--black); }
.pill--jade:hover { background: var(--paper); }
.pill--ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(42% 55% at 74% 62%, rgb(168 220 182 / .13), transparent 70%),
    var(--black);
}
.bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem var(--gutter);
  font: 600 var(--t-sm)/1 var(--display);
}
.bar__home { font-weight: 800; font-stretch: 75%; font-size: 1.35rem; letter-spacing: .02em; text-decoration: none; margin-right: auto; }
.bar ul { display: flex; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.bar ul a { color: var(--dim); text-decoration: none; transition: color .2s; }
.bar ul a:hover { color: var(--paper); }

.hero__intro, .hero__aside {
  position: relative; z-index: 3;
  font: 500 var(--t-md)/1.35 var(--display);
  font-stretch: 100%;
}
.hero__intro { padding: clamp(1.5rem, 5vh, 3.5rem) var(--gutter) 0; color: var(--paper); max-width: 34ch; }
.hero__aside { position: absolute; z-index: 3; top: 50%; left: var(--gutter); max-width: 22ch; color: var(--dim); font-size: var(--t-base); }

/* the subject: the cat, standing on the bottom edge, in front of the name */
.hero__cat {
  position: absolute; z-index: 2;
  bottom: 0;
  right: clamp(1rem, 4vw, 5rem);
  width: min(30vw, 28rem, calc(80svh * .78));
}
.hero__cat img { width: 100%; filter: drop-shadow(0 40px 60px rgb(0 0 0 / .6)); }

.hero__name {
  position: relative; z-index: 1;
  grid-row: 3;
  font-size: var(--t-hero);
  padding-inline: calc(var(--gutter) - .04em);
  line-height: .88;
  margin-bottom: -.035em;    /* the baseline sits on the bottom edge */
}
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero__name .line > span { animation: lift 1.1s var(--ease) both; }
  .hero__name .line:nth-child(2) > span { animation-delay: .1s; }
  .hero__cat picture { animation: rise 1.3s var(--ease) .3s both; }
  .hero__intro, .hero__aside, .bar { animation: fade .9s ease .7s both; }
}
@keyframes lift { from { transform: translateY(100%); } }
@keyframes rise { from { transform: translateY(18%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* portrait tablets: stack the cat above the name, like phones */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { grid-template-rows: auto auto auto auto auto; min-height: 0; }
  .hero__aside { position: static; grid-row: 3; padding: .5rem var(--gutter) 0; }
  .hero__cat { position: relative; grid-row: 4; right: auto; width: min(48vw, 26rem); margin: 3rem auto 1.5rem; }
  .hero__name { grid-row: 5; }
}
@media (max-width: 760px) {
  .bar ul { display: none; }
  .hero { grid-template-rows: auto auto auto auto auto; min-height: 0; }
  .hero__aside { position: static; grid-row: 3; padding: .5rem var(--gutter) 0; }
  .hero__cat { position: relative; grid-row: 4; right: auto; width: min(70vw, 20rem); margin: 2rem auto .75rem; }
  .hero__name { grid-row: 5; font-size: 17.4vw; }
}

/* ----------------------------------------------------------------- about */
.about { background: var(--jade); color: var(--black); padding-block: var(--section); }
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.about__lead { grid-column: 1 / 8; grid-row: 1; align-self: start; font: 600 var(--t-lead)/1.12 var(--display); font-stretch: 90%; letter-spacing: -.015em; text-wrap: balance; }
.about__body { grid-column: 1 / 7; grid-row: 2; align-self: start; max-width: 36em; }
.about__photo { grid-column: 8 / 13; grid-row: 1 / 3; border-radius: clamp(1rem, 2vw, 1.75rem); overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: clamp(3rem, 7vw, 6rem);
}
.facts div { border-top: 2px solid var(--black); padding-top: 1rem; display: flex; flex-direction: column-reverse; gap: .5rem; }
.facts dt { font-size: var(--t-sm); }
.facts dd { font: 800 clamp(2.5rem, 1rem + 4.5vw, 5.5rem)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; }

@media (max-width: 900px) {
  .about__lead, .about__body, .about__photo { grid-column: 1 / -1; grid-row: auto; }
  .about__photo img { aspect-ratio: 4 / 5; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
}

/* ---------------------------------------------------------------- people */
.people { padding-block: var(--section); }
.people .giant { margin-bottom: clamp(2rem, 5vw, 4rem); }
.person {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1rem;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.person__name {
  grid-column: 1 / 7; grid-row: 1 / 3;
  font-size: clamp(5rem, 2rem + 14vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  transition: color .5s var(--ease);
}
.person:hover .person__name, .person:focus-within .person__name { color: var(--paper); }
.person__role {
  grid-column: 7 / 13;
  justify-self: start;
  font: 600 var(--t-sm)/1 var(--display);
  padding: .55rem .9rem; border-radius: 999px;
  background: var(--jade); color: var(--black);
}
.person__text { grid-column: 7 / 12; display: grid; gap: .9em; color: var(--dim); max-width: 36em; }
.person__text .mail { color: var(--paper); }

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .person__name, .person__role, .person__text { grid-column: 1; grid-row: auto; }
  .person__name { font-size: 30vw; color: var(--paper); -webkit-text-stroke: 0; }
}

.mail { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--jade); overflow-wrap: anywhere; transition: color .2s; }
.mail:hover { color: var(--jade); }

/* clips: poster first, video swapped in by main.js */
.clip { position: relative; overflow: hidden; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip video + picture { display: none; }

/* ------------------------------------------------------------------ grow */
.grow { background: var(--paper); color: var(--black); padding-top: var(--section); overflow: hidden; }
.grow__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; align-items: end; }
.grow__title { grid-column: 1 / 7; font-size: clamp(3.5rem, 1.5rem + 7vw, 8rem); }
.grow__text { grid-column: 8 / 13; display: grid; gap: 1.25rem; justify-items: start; }
.grow__text > p { max-width: 30em; }

.tiles {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, 1rem);
}
.tile { border-radius: clamp(.75rem, 1.4vw, 1.25rem); overflow: hidden; aspect-ratio: 4 / 5; background: var(--black); }
.tile > picture, .tile > .clip { width: 100%; height: 100%; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .tile:hover img, .tile:hover video { transform: scale(1.04); } }

.grow__handle {
  display: block;
  font-size: clamp(3rem, 9.6vw, 13rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) calc(var(--gutter) - .03em) 0;
  line-height: .9;
  margin-bottom: -.05em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.grow__handle:hover { color: #3d7b52; }

@media (max-width: 760px) {
  .grow__title, .grow__text { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .grow__handle { font-size: 10.2vw; }
}

/* --------------------------------------------------------------- contact */
.contact { padding-block: var(--section); }
.contact .giant { margin-bottom: clamp(2rem, 5vw, 4rem); }
.contact__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: .75rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact__topic { grid-column: 1 / 5; font: 600 var(--t-md)/1.25 var(--display); }
.contact__topic span { display: block; font: 400 var(--t-base)/1.5 var(--text); color: var(--dim); margin-top: .2rem; }
.contact__mail { grid-column: 5 / -1; font: 700 clamp(1.6rem, .5rem + 3.6vw, 4.25rem)/1 var(--display); font-stretch: 75%; letter-spacing: -.01em; }
.contact__mail .mail { text-decoration-thickness: 2px; text-underline-offset: .14em; }
.findus { grid-column: 5 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; }
.findus address { font: 500 var(--t-md)/1.45 var(--display); font-style: normal; color: var(--dim); }
.channels { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 760px) {
  .contact__topic, .contact__mail, .findus { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); font-size: var(--t-sm); color: var(--dim); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2.5rem; }
.footer__mark { width: min(100%, 24rem); }
.footer__meta { display: grid; gap: .4rem; text-align: right; }
.footer__meta p:first-child { color: var(--paper); font: 600 var(--t-md)/1.3 var(--display); }
.footer a { text-underline-offset: .25em; }
@media (max-width: 760px) { .footer__meta { text-align: left; } }

/* ------------------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: start; padding: var(--gutter); gap: 1.5rem; }
.notfound h1 { font-size: clamp(3rem, 12vw, 10rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
