/* Giant IT Solutions website styles.
   Colors come straight from the logo. No build step and no outside services. */

@font-face {
  font-family: "Geologica";
  src: url("assets/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171a1b;
  --text: #434a4c;
  --mist: #edf2f3;
  --white: #ffffff;
  --rule: #d5dee0;
  --deep-teal: #3a5a65;
  --stone-teal: #6a8993;
  --stone-bronze: #987757;
  --stone-grey: #5f605d;
  --sky: #67bbde;
  --amber: #df954b;
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 500; }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

h3 { font-size: 1.125rem; line-height: 1.35; }

a { color: var(--deep-teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100%, calc(var(--wide) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
}
.skip:focus { top: 12px; color: var(--white); }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-nav a { color: var(--ink); font-size: 0.9375rem; font-weight: 400; text-decoration: none; }
.site-nav a:hover { color: var(--deep-teal); text-decoration: underline; }

/* Hero: the four stones that grow from a small idea to something giant */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 128px);
}
.hero-copy { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.1vw, 5.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero p { margin-top: 26px; max-width: 54ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--deep-teal); color: var(--white); }

.stones {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52vw, 760px);
  height: auto;
  display: block;
}
.ground { height: 3px; background: linear-gradient(90deg, var(--sky), var(--stone-grey) 50%, var(--amber)); }

.stone, .ground { animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); animation-fill-mode: both; }
.stone { transform-box: fill-box; transform-origin: 50% 100%; animation-name: rise; }
.stone-2 { animation-delay: 0.14s; }
.stone-3 { animation-delay: 0.28s; }
.stone-4 { animation-delay: 0.42s; }
.ground { transform-origin: 0 50%; animation-name: draw; }

@keyframes rise { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #c6ced0; }
.section-ink h2, .section-ink h3 { color: var(--white); }

.statement {
  max-width: 28ch;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-intro { margin-top: 18px; max-width: 58ch; }

/* Process: same four stones, now named */
.path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.path-step { display: contents; }
.path-mark {
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  height: 158px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--rule);
}
.path-copy { grid-row: 2; padding-top: 20px; }
.path-copy p { margin-top: 8px; font-size: 1rem; }
.mark { display: block; flex: none; }
.mark-1 { width: 15px; height: 15px; margin-left: 4px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.mark-2 { width: 46px; height: 46px; border-radius: 42%; background: var(--stone-teal); }
.mark-3 { width: 86px; height: 86px; border-radius: 42%; background: var(--stone-bronze); }
.mark-4 { width: 130px; height: 130px; border-radius: 50%; background: var(--stone-grey); }

/* Services */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); }
.service-list p { margin-top: 8px; font-size: 1rem; }

/* Example problems */
.examples { width: 100%; margin-top: clamp(32px, 4vw, 52px); border-collapse: collapse; text-align: left; }
.examples th, .examples td { padding: 22px 28px 22px 0; vertical-align: top; border-top: 1px solid var(--rule); }
.examples thead th { padding-block: 0 12px; border-top: 0; color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.examples tbody th { width: 24%; color: var(--ink); font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
.examples td { width: 38%; font-size: 1rem; }
.examples tr > :last-child { padding-right: 0; }

/* Ways to start */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); }
.options h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.options p { margin-top: 10px; font-size: 1rem; }
.options ul { margin-top: 18px; padding-left: 18px; list-style: disc; font-size: 1rem; }
.options li + li { margin-top: 6px; }
.options li::marker { color: var(--stone-teal); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 56px); }
.principles p { margin-top: 8px; font-size: 1rem; }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(28px, 4vw, 56px); }
.contact-list dt { color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.contact-list dd { margin-top: 4px; overflow-wrap: anywhere; }
.contact-lead { margin-top: 18px; max-width: 46ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 26px; }

/* Plain text pages */
.page { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; }
.page h2 { margin-top: 38px; font-size: 1.375rem; letter-spacing: -0.01em; max-width: none; }
.page p { margin-top: 12px; max-width: 66ch; }
.page .updated { margin-top: 14px; font-size: 0.9375rem; }

/* Tablets and phones */
@media (max-width: 960px) {
  .hero .wrap { padding-bottom: 0; }
  .stones { position: static; width: min(100%, 560px); margin-left: auto; margin-top: 16px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .path-step { display: block; margin-bottom: 36px; }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .options, .principles, .contact-list, .service-list { grid-template-columns: minmax(0, 1fr); }
  .examples thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .examples, .examples tbody, .examples tr, .examples th, .examples tbody th, .examples td { display: block; width: auto; }
  .examples tr { padding-block: 20px; border-top: 1px solid var(--rule); }
  .examples th, .examples td, .examples tbody th { padding: 0; border: 0; }
  .examples td { margin-top: 10px; }
  .examples td::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 500; }
}

@media (max-width: 480px) {
  .brand img { height: 56px; }
  .path { grid-template-columns: minmax(0, 1fr); }
  .path-mark { height: auto; min-height: 60px; }
}

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

@media print {
  .stones, .skip, .site-nav { display: none; }
}
