/* Teyo — teyo.surf */

:root {
  --black: #111214;
  --graphite: #2e3236;
  --grey-1: #5f666c;
  --grey-2: #8a9095;
  --grey-3: #c9cdd0;
  --grey-4: #e6e8e9;
  --grey-5: #f1f2f3;
  --white: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1320px;
  --section: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { opacity: .65; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .32em;
  text-decoration: none;
  color: var(--black);
}

/* Linocut logo (raster with the print texture kept) */
.logo { display: inline-block; line-height: 0; }
.logo img { width: auto; height: 36px; }
.logo--small img { height: 28px; }
@media (min-width: 760px) { .logo img { height: 44px; } .logo--small img { height: 32px; } .brand { gap: 20px; } .brand__place { font-size: 14px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--white); padding: 6px 10px; }

/* Top bar */

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__place { font-size: 13px; color: var(--grey-2); }

.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: none;
}
.lang a {
  padding: 2px;
  text-decoration: none;
  color: var(--grey-2);
}
.lang a + a::before {
  content: "/";
  margin-right: 6px;
  color: var(--grey-3);
}
.lang a[aria-current] { color: var(--black); }

/* Section heads: one readable size, left column on wide screens */

.side-head {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--black);
}

/* Intro — one title (name + subtitle as a single heading), then text, then the action */

.intro { padding: 48px 0 48px; }

.intro__title {
  margin: 0 0 48px -.04em;              /* optical: pull the big T onto the text edge */
  font-weight: 500;
  color: var(--black);
}

.intro__title .line:first-child [data-line] {
  font-size: clamp(36px, 9.6vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.intro__sub [data-line] {
  margin-top: .3em;
  font-weight: 400;
  margin-left: .06em;                    /* undo the optical pull for the smaller line */
  font-size: clamp(20px, 4.2vw, 30px);   /* about 0.4 of the name */
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--grey-1);
}

.intro__text {
  max-width: 40ch;
  font-size: clamp(17px, 1rem + .2vw, 19px);
  line-height: 1.5;
  color: var(--black);
}

.intro__text p { margin: 0; }
.intro__text p + p { margin-top: .6em; }

/* Primary action: a real button, square like the form's submit */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  transition: background var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:hover { opacity: 1; color: var(--black); background: transparent; }

@media (max-width: 759px) {
  .button { display: flex; justify-content: space-between; width: 100%; }
}
.button:active { transform: scale(.98); }
.button__arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.button:hover .button__arrow { transform: translateX(4px); }

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

/* Photos — grey placeholder until the image file exists */

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: var(--section);
}

.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--grey-5);
  overflow: hidden;
}

/* Mobile: first photo full width, then pairs */
.photos .photo:first-child { grid-column: 1 / -1; }

.photo::before {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-2);
}

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

.photo--zoom { cursor: zoom-in; }
.photo--zoom:not(:has(img)) { cursor: default; }
.photo--zoom img { transition: opacity .2s; }

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overscroll-behavior: contain;
}

.lightbox::backdrop { background: var(--white); }

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 64px 16px;
}

.lightbox__img {
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  flex: 0 0 auto;
  display: none;
  width: 100%;
  max-width: 560px;
  padding-top: 16px;
}

.lightbox--captioned .lightbox__caption { display: block; }

.lightbox__close,
.lightbox__arrow {
  position: fixed;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  font: 300 22px/1 var(--font);
  color: var(--black);
  background: none;
  border: 0;
  cursor: pointer;
}

.lightbox__close { top: 12px; right: 12px; font-size: 32px; }

/* Mobile: arrows in the bottom corners, clear of the photo */
.lightbox__arrow { bottom: 10px; }
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }
.lightbox--single .lightbox__arrow { display: none; }

.lightbox__close:hover,
.lightbox__arrow:hover { opacity: .55; }

.lightbox__count {
  position: fixed;
  top: 26px;
  left: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .lightbox__stage { padding: 72px 88px; }
  .lightbox__arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__arrow--prev { left: 24px; }
  .lightbox__arrow--next { right: 24px; }
  .lightbox__count { left: 40px; }
}

/* About — its own field, a tone step away from the white page */

.about {
  padding: var(--section) 0;
  background: var(--grey-5);
}

.about__text {
  max-width: 52ch;
  font-size: clamp(18px, 1rem + .4vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--black);
}

.about__text p { margin: 0 0 1em; }
.about__text p:last-child { margin: 0; }

/* Features carousel */

.features { padding: calc(var(--section) * 1.5) 0 var(--section); }

.features__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.features__head .side-head { margin: 0; }


.features__nav {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.features__nav[hidden] { display: none; }

.features__btn {
  padding: 0 2px;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: var(--black);
  background: none;
  border: 0;
  cursor: pointer;
}
.features__btn:hover { opacity: .55; }

.features__count {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.features__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--graphite);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.features__track::-webkit-scrollbar { display: none; }

.feature {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  scroll-snap-align: start;
}

.feature__no {
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.feature__title {
  margin: 6px 0 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
}

.feature__photo { margin-top: 16px; }

.feature__text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-1);
}

@media (min-width: 760px) {
  .features__track {
    grid-auto-columns: calc((100% - 2 * 32px) / 3);
    gap: 32px;
  }
}

/* Waitlist */

.waitlist { padding: var(--section) 0; }

.waitlist h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--black);
  text-wrap: balance;
}

.waitlist__lead { margin: 0 0 40px; font-size: 18px; color: var(--black); }

.waitlist__form { min-width: 0; max-width: 520px; }

.waitlist__note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--grey-1);
}

/* Footer — a designed close: the name returns at full width */

.footer {
  padding: 56px 0 0;
  font-size: 15px;
  background: var(--grey-5);
  overflow: hidden;
}

.footer__grid { display: grid; gap: 18px; }

.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li + li { margin-top: 4px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; opacity: 1; }
.footer__small { margin: 0; color: var(--grey-1); font-size: 14px; }

.footer__name {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 64px auto 0;
  padding-bottom: 56px;
}
.footer__name img { width: min(46%, 260px); height: auto; }

/* "Made in Poland" with the flag sticker from the board */
.made {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--black);
  white-space: nowrap;
}
.made__flag {
  width: 24px;
  height: 15px;
  background: linear-gradient(#fff 50%, #d4213d 50%);
  box-shadow: inset 0 0 0 .5px rgba(17, 18, 20, .25);
}

/* Motion. Hidden states apply only under .js, so without JavaScript everything is visible.
   Transform and opacity only; prefers-reduced-motion keeps content and drops the travel. */

/* Section entrances: parts arrive in reading order (--d = order) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Photos settle from a slight scale instead of rising */
.js .reveal--settle { transform: none; }
.js .reveal--settle img {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-soft), opacity var(--t-hover) ease;
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal--settle.in img { transform: scale(1); }

/* Signature: the headline rises line by line from behind its own baseline */
.lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines [data-line] { display: block; }
.js .lines [data-line] {
  transform: translateY(105%);
  animation: line-rise 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}
@keyframes line-rise { to { transform: none; } }

/* One moving picture: the Baltic photo drifts very slowly */
.photo--drift img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { scale: 1; } to { scale: 1.06; } }

/* Feedback under the hand */
.photos .photo--zoom img,
.features .photo--zoom img { transition: transform 900ms var(--ease-soft), opacity var(--t-hover) ease; }
.photos .photo--zoom:hover img,
.features .photo--zoom:hover img { transform: scale(1.035); }
.photo--zoom:active img { opacity: .9; }

.lang a,
.footer a,
.waitlist__note a { position: relative; text-decoration: none; }
.lang a::after,
.footer a::after,
.waitlist__note a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-ui) var(--ease-out);
}
.lang a[aria-current]::after,
.waitlist__note a::after { transform: scaleX(1); }
.lang a:hover::after,
.footer a:hover::after,
.waitlist__note a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang a + a::before { position: static; }
.footer a:hover { text-decoration: none; }

.logo { transition: transform var(--t-ui) var(--ease-out); }
.logo:hover { opacity: 1; transform: rotate(-3deg); }

.features__btn { transition: transform var(--t-hover) var(--ease-out), opacity var(--t-hover) ease; }
.features__btn[data-dir="-1"]:hover { transform: translateX(-3px); }
.features__btn[data-dir="1"]:hover { transform: translateX(3px); }
.features__btn:active { transform: scale(.88); transition-duration: var(--t-press); }

.feature__title { transition: transform var(--t-ui) var(--ease-out); }
.feature:hover .feature__title { transform: translateX(4px); }

.waitlist .formkit-form .formkit-submit:active { transform: scale(.98); }

/* Lightbox opens from a slight scale, controls answer the pointer */
.lightbox[open] .lightbox__stage { animation: lb-in 380ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox__img { transition: opacity var(--t-hover) ease; }
.lightbox__close { transition: transform var(--t-ui) var(--ease-out), opacity var(--t-hover) ease; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__arrow:active { transform: scale(.88); }
@media (min-width: 760px) {
  .lightbox__arrow:active { transform: translateY(-50%) scale(.88); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity .3s; transition-delay: 0s; }
  .js .reveal--settle img,
  .js .lines [data-line] { transform: none; animation: none; transition: none; }
  .photo--drift img { animation: none; }
  .photos .photo--zoom:hover img,
  .features .photo--zoom:hover img,
  .feature:hover .feature__title,
  .logo:hover,
  .features__btn:hover,
  .lightbox__close:hover { transform: none; }
  .lightbox[open] .lightbox__stage { animation: none; }
  .button:hover .button__arrow,
  .button:active { transform: none; }
}

@media (min-width: 760px) {
  :root { --gutter: clamp(40px, 8vw, 128px); --section: 152px; }

  .topbar .wrap { padding-top: 32px; padding-bottom: 32px; }
  .intro { padding: 112px 0 104px; }
  .intro__title { margin-bottom: 56px; }

  /* Desktop: two large photos, then five */
  .photos {
    grid-template-columns: repeat(10, 1fr);
    gap: 16px;
  }
  .photos .photo { grid-column: span 2; }
  .photos .photo:nth-child(-n+2) { grid-column: span 5; }

  .footer__grid {
    grid-template-columns: 1fr auto auto;
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .intro__title .line:first-child [data-line] { font-size: clamp(56px, 6.4vw, 104px); }
  .intro__sub [data-line] { font-size: clamp(24px, 2.6vw, 40px); }

  /* Every section: head in the left quarter, content in the rest */
  .section-grid {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 32px;
    align-items: start;
  }
  .section-grid > .side-head { margin: 0; padding-top: .3em; }

  .waitlist__body {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }
}

/* Privacy page */

.legal { padding: 40px 0 96px; }
.legal .wrap { max-width: 720px; }

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--black);
}

.legal h2 {
  margin: 44px 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
}

.legal ul { padding-left: 1.1em; }
.legal li { margin-bottom: 4px; }
.legal .updated { color: var(--grey-2); font-size: 14px; margin: 0; }

/* Kit form overrides
   Kit ships its own styles (and inline styles), so these use !important.
   Works for both the JavaScript embed and the HTML embed. */

.waitlist .formkit-form {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font) !important;
  color: var(--graphite) !important;
}

.waitlist .formkit-form [data-style],
.waitlist .formkit-form .formkit-column {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.waitlist .formkit-form .formkit-header,
.waitlist .formkit-form .formkit-subheader,
.waitlist .formkit-form .formkit-guarantee,
.waitlist .formkit-form .formkit-disclaimer,
.waitlist .formkit-form .formkit-background { display: none !important; }

.waitlist .formkit-form .formkit-fields,
.waitlist .formkit-form [data-element="fields"] {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 0 !important;
}

.waitlist .formkit-form .formkit-field,
.waitlist .formkit-form .formkit-submit {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
}

.waitlist .formkit-form .formkit-input,
.waitlist .formkit-form .formkit-select,
.waitlist .formkit-form select,
.waitlist .formkit-form input[type="text"],
.waitlist .formkit-form input[type="email"] {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  font-family: var(--font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--black) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--grey-3) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.waitlist .formkit-form .formkit-input::placeholder {
  color: var(--grey-2) !important;
  opacity: 1 !important;
}

.waitlist .formkit-form .formkit-input:focus,
.waitlist .formkit-form select:focus {
  border-bottom-color: var(--black) !important;
}

.waitlist .formkit-form select {
  padding-right: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a9095' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  cursor: pointer;
}

.waitlist .formkit-form .formkit-input:-webkit-autofill {
  -webkit-text-fill-color: var(--black) !important;
  -webkit-box-shadow: 0 0 0 100px var(--white) inset !important;
}

.waitlist .formkit-form .formkit-submit {
  position: relative !important;
  height: 52px !important;
  margin-top: 16px !important;
  padding: 0 24px !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  background: var(--black) !important;
  border: 1px solid var(--black) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.waitlist .formkit-form .formkit-submit:hover {
  color: var(--black) !important;
  background: transparent !important;
}

.waitlist .formkit-form .formkit-submit > span {
  display: block !important;
  padding: 0 !important;
  background: none !important;
  transition: none !important;
}

.waitlist .formkit-form .formkit-submit:hover > span,
.waitlist .formkit-form .formkit-submit:focus > span { background: none !important; }

.waitlist .formkit-form .formkit-spinner { display: none; }
.waitlist .formkit-form[data-active] .formkit-spinner { display: flex; }

.waitlist .formkit-form .formkit-alert {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  text-align: left !important;
  border-radius: 0 !important;
  list-style: none !important;
}

.waitlist .formkit-form .formkit-alert:empty { display: none !important; }

.waitlist .formkit-form .formkit-alert-success {
  color: var(--graphite) !important;
  background: var(--grey-5) !important;
  border: 1px solid var(--grey-4) !important;
}

.waitlist .formkit-form .formkit-alert-error {
  color: var(--graphite) !important;
  background: transparent !important;
  border: 1px solid var(--grey-3) !important;
}

.waitlist .formkit-form .formkit-powered-by-convertkit-container {
  justify-content: flex-start !important;
  margin: 12px 0 0 !important;
  opacity: .4;
}

.waitlist .formkit-form .formkit-powered-by-convertkit {
  transform: scale(.65) !important;
  transform-origin: left center !important;
}
