/* =============================================================================
   Gigogne — site.css
   Public stylesheet for the first Gigogne site.
   Fonts → custom properties → layout → sections → pieces → responsive
   ============================================================================= */


/* -----------------------------------------------------------------------------
   Fonts
   Self-hosted in /assets/fonts/. No external font requests.
   ----------------------------------------------------------------------------- */

@font-face {
  font-family: 'HelveticaNeue';
  src: url('/assets/fonts/HelveticaNeueThin.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('/assets/fonts/HelveticaNeueUltraLight.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}


/* -----------------------------------------------------------------------------
   Custom properties
   Annotated with @gig-param where they appear in the Style panel.
   Unannotated properties are internal — not exposed to the editor.
   ----------------------------------------------------------------------------- */

:root {

  /* --- Typography --- */

  /* @gig-param
     label: Body font
     type: font
     group: Typography
  */
  --font-body: 'HelveticaNeue', Helvetica, Arial, sans-serif;

  /* @gig-param
     label: Body weight
     type: select
     options: Thin=200, Ultra Light=100
     group: Typography
  */
  --font-weight-body: 200;

  /* @gig-param
     label: Display weight
     type: select
     options: Ultra Light=100, Thin=200
     group: Typography
  */
  --font-weight-display: 100;

  /* @gig-param
     label: Body size
     type: range
     min: 12
     max: 22
     unit: px
     group: Typography
  */
  --font-size-base: 16px;

  /* @gig-param
     label: Title size
     type: range
     min: 1
     max: 5
     unit: rem
     group: Typography
  */
  --font-size-display: 2rem;

  /* @gig-param
     label: Line height
     type: range
     min: 1.2
     max: 2.4
     unit:
     group: Typography
  */
  --line-height-body: 1.6;

  /* --- Colours --- */

  /* @gig-param
     label: Background
     type: color
     group: Colours
  */
  --color-background: #ffffff;

  /* @gig-param
     label: Text
     type: color
     group: Colours
  */
  --color-text: #111111;

  /* @gig-param
     label: Accent
     type: color
     group: Colours
  */
  --color-accent: #111111;

  /* @gig-param
     label: Muted
     type: color
     group: Colours
  */
  --color-muted: #888888;

  /* @gig-param
     label: Border
     type: color
     group: Colours
  */
  --color-border: #e5e5e5;

  /* --- Spacing --- */

  /* @gig-param
     label: Section spacing
     type: range
     min: 40
     max: 160
     unit: px
     group: Spacing
  */
  --spacing-section: 80px;

  /* @gig-param
     label: Item gap
     type: range
     min: 8
     max: 64
     unit: px
     group: Spacing
  */
  --spacing-item-gap: 24px;

  /* @gig-param
     label: Max width
     type: range
     min: 800
     max: 1600
     unit: px
     group: Spacing
  */
  --max-width: 1200px;

  /* --- Shape --- */

  /* @gig-param
     label: Rounded corners
     type: select
     options: None=0px, Small=4px, Medium=8px
     group: Shape
  */
  --border-radius: 0px;

  /* Internal — not exposed in Style panel */
  --spacing-unit: 8px;
  --font-size-nav: 0.875rem;
  --font-size-caption: 0.75rem;
  --header-height: 64px;

}


/* -----------------------------------------------------------------------------
   Reset and base
   ----------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-display);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}


/* -----------------------------------------------------------------------------
   Header
   Two-row structure: __identity (title + subtitle), then __bar (site nav).
   ----------------------------------------------------------------------------- */

.gig-header {
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 5);
  /* background-color: var(--color-background); */
  /* Top/bottom rules: animated in lara.css (lara.js assigns --lara-i-header-*). */
}

.gig-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(var(--spacing-unit) * 6);
  padding-bottom: calc(var(--spacing-unit) * 2);
}

.gig-header__identity {
  margin-top: 0;
}

.gig-header__title {
  font-weight: var(--font-weight-display);
  font-size: var(--font-size-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gig-header__subtitle {
  margin-top: calc(var(--spacing-unit) * 1);
  font-size: var(--font-size-base);
  color: var(--color-muted);
}

.gig-header__name {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-nav);
  text-decoration: none;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.gig-header__nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
  list-style: none;
}

.gig-nav__link {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-nav);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.gig-nav__link:hover {
  /* opacity: 0.6; */
}

/* Active page: reduced opacity — no bold, no underline */
.gig-nav__link--active {
  /* opacity: 0.4; */
}


/* -----------------------------------------------------------------------------
   Main
   ----------------------------------------------------------------------------- */

.gig-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-section) calc(var(--spacing-unit) * 5);
}


/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.gig-footer {
  /* Top rule: animated in lara.css (--lara-i-footer-top). */
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 5);
  font-size: var(--font-size-caption);
  color: var(--color-muted);
  font-weight: var(--font-weight-body);
}


/* -----------------------------------------------------------------------------
   16:9 aspect ratio helper
   Used by showreel, row items, and embed pieces.
   ----------------------------------------------------------------------------- */

.gig-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9 / 16 */
  overflow: hidden;
  background: var(--color-border);
}

.gig-aspect > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Image pieces share .gig-aspect with embeds, but photos are not always 16:9.
   Without this, the fixed-ratio box + overflow:hidden clips non-wide images. */
.gig-block--image .gig-aspect {
  padding-top: 0;
  overflow: visible;
}

.gig-block--image .gig-aspect > img {
  position: static;
  top: auto;
  left: auto;
  height: auto;
}


/* -----------------------------------------------------------------------------
   Row section  (.gig-module--row)
   ----------------------------------------------------------------------------- */

.gig-module--row {
  display: grid;
  gap: var(--spacing-item-gap);
  margin-bottom: var(--spacing-section);
}

/* Column count modifier classes */
.gig-module--row-cols-1 {
  grid-template-columns: 1fr;
}

.gig-module--row-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gig-module--row-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Row item */
.gig-row__item {
  transition: opacity 0.2s ease;
}

.gig-row__item:hover {
  /* opacity: 0.8; */
}

.gig-row__item--linked {
  cursor: pointer;
}

.gig-row__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gig-row__item .gig-aspect {
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-row__item .gig-block--image {
  margin: 0;
}

.gig-row__item .gig-block--image .gig-aspect {
  margin-bottom: 0;
}

.gig-row__item__content {
  /* content wrapper — no styles needed, structure only */
}

.gig-block--heading-3 + .gig-block--paragraph {
  /* description under title — handled by block margins */
}

/* Title and description inside row items */
.gig-row__item .gig-block--heading-3 {
  margin-top: calc(var(--spacing-unit) * 2);
  font-weight: var(--font-weight-display);
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.gig-row__item .gig-block--paragraph {
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}


/* -----------------------------------------------------------------------------
   Text section  (.gig-module--text)
   Narrower than full — comfortable reading measure.
   ----------------------------------------------------------------------------- */

.gig-module--text {
  max-width: 680px;
  margin-bottom: var(--spacing-section);
}


/* -----------------------------------------------------------------------------
   Pieces  (.gig-block)
   ----------------------------------------------------------------------------- */

.gig-block--paragraph {
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-block--heading-2 {
  font-weight: var(--font-weight-display);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.gig-block--heading-3 {
  font-weight: var(--font-weight-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-block--list-unordered,
.gig-block--list-ordered {
  padding-left: calc(var(--spacing-unit) * 3);
  line-height: var(--line-height-body);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-block--list-unordered li,
.gig-block--list-ordered li {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.gig-block--image {
  width: 100%;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-block--image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.gig-block--image figcaption {
  margin-top: calc(var(--spacing-unit) * 1);
  font-size: var(--font-size-caption);
  color: var(--color-muted);
  line-height: 1.4;
}

.gig-block--embed {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.gig-block--embed .gig-aspect {
  border-radius: var(--border-radius);
}


/* -----------------------------------------------------------------------------
   Responsive — single breakpoint at 768px
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   data-gig-animated — staggered gradient pulse (splitIntoSpans in site.js)
   ----------------------------------------------------------------------------- */

:root {
  --gig-anim-grad-a: var(--color-text, #222);
  --gig-anim-grad-b: var(--color-muted, #777);
}

[data-gig-animated] {
  display: inline-block;
}

[data-gig-animated] > .gig-animated-char {
  display: inline-block;
  animation: gigCharGrad 5.5s ease-in-out infinite;
  color: var(--gig-anim-grad-a);
}

@keyframes gigCharGrad {
  0%,
  100% {
    color: var(--gig-anim-grad-a);
  }

  50% {
    color: var(--gig-anim-grad-b);
  }
}


@media (max-width: 768px) {

  /* Collapse all row grids to single column */
  .gig-module--row,
  .gig-module--row-cols-1,
  .gig-module--row-cols-2,
  .gig-module--row-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Scale down display sizes on small screens */
  :root {
    --font-size-display: 1.5rem;
    --spacing-section: 48px;
  }

}



#gig-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
} 