:root {
  --background: #f2f2f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
}

.stage {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/*
 * Device frame, sized to fit the viewport with 10% padding on every side
 * (10% of viewport width left/right, 10% of viewport height top/bottom).
 * An iPad frame shows in landscape orientation; an iPhone frame shows in
 * portrait orientation.
 */
.device {
  --btn: clamp(3px, 0.6vw, 5px);
  position: relative;
  box-sizing: border-box;
  background: linear-gradient(155deg, #2c2c2e 0%, #0a0a0a 55%, #000000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.device__button {
  position: absolute;
  border-radius: 3px;
  background: linear-gradient(90deg, #3a3a3c 0%, #5c5c5f 45%, #3a3a3c 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #111111;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

/* iPad — landscape, 4:3 */
.device--ipad {
  --grid-gap: clamp(8px, 1.2vw, 16px);
  --btn: clamp(1px, 0.2vw, 2px);
  display: block;
  width: min(80vw, calc(80vh * 4 / 3));
  height: min(80vh, calc(80vw * 3 / 4));
  padding: clamp(13px, 2vw, 23px);
  border-radius: clamp(20px, 3.2vw, 42px);
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.device--ipad.device--locked {
  transform: scale(0.99);
}

.device--ipad .device__screen {
  border-radius: clamp(10px, 1.5vw, 20px);
  overflow: hidden;
  background: #1c1c1e;
}

/* Blurred wallpaper layer behind the grid containers — oversized past the
   screen edges so the blur doesn't fade to transparent at the border */
.device--ipad .device__screen::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("https://images.unsplash.com/photo-1778149813239-665a0a61ecde?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
  filter: blur(16px);
  z-index: 0;
}

.page-template .device--ipad .device__screen::before {
  background: url("https://images.unsplash.com/photo-1621020015822-e1610d568f7c?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-home .device--ipad .device__screen::before {
  background: url("https://images.unsplash.com/photo-1591249255126-13936dd2e37d?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-apps .device--ipad .device__screen::before {
  background: url("https://images.unsplash.com/photo-1668173274044-b1d9ba21765b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-apps .red-screen {
  background: #ff3b30 url("https://images.unsplash.com/photo-1668173274044-b1d9ba21765b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-portfolio .device--ipad .device__screen::before {
  background: url("https://images.unsplash.com/photo-1547234935-80c7145ec969?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-portfolio .red-screen {
  background: #ff3b30 url("https://images.unsplash.com/photo-1547234935-80c7145ec969?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

/* Lock screen — drag/swipe up to reveal the grid underneath */
.lockscreen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 9%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%),
    #1c1c1e url("https://images.unsplash.com/photo-1778149813239-665a0a61ecde?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.page-template .lockscreen {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%),
    #1c1c1e url("https://images.unsplash.com/photo-1621020015822-e1610d568f7c?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-home .lockscreen {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%),
    #1c1c1e url("https://images.unsplash.com/photo-1591249255126-13936dd2e37d?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.page-portfolio .lockscreen {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%),
    #1c1c1e url("https://images.unsplash.com/photo-1547234935-80c7145ec969?q=80&w=2074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center / cover no-repeat;
}

.lockscreen--dragging {
  transition: none;
  cursor: grabbing;
}

.lockscreen__time {
  color: #fff;
  font-weight: 600;
  font-size: clamp(42px, 8.25vw, 77px);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.device--iphone .lockscreen {
  padding-top: 60px;
}

.device--iphone .lockscreen__time {
  font-size: 48px;
}

.lockscreen__date {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: clamp(11px, 1.6vw, 16px);
  margin-top: 0.4em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lockscreen__notification {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  width: min(78%, 620px);
  margin-top: 1.6em;
  padding: 0.65em 0.8em;
  border-radius: clamp(12px, 1.6vw, 18px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.85);
  animation: lockscreen-notification-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 1s forwards;
}

@keyframes lockscreen-notification-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lockscreen__notification-icon {
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.55em;
  object-fit: cover;
  display: block;
}

.lockscreen__notification-body {
  flex: 1;
  min-width: 0;
}

.lockscreen__notification-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
}

.lockscreen__notification-app {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 700;
  font-size: clamp(10px, 1.2vw, 13px);
}

.lockscreen__notification-time {
  flex: none;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
  font-size: clamp(9px, 1vw, 11px);
}

.lockscreen__notification-text {
  margin: 0.15em 0 0;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1.3;
}

.lockscreen__hint {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 500;
  animation: lockscreen-bounce 2.2s ease-in-out infinite;
}

.lockscreen__chevron {
  width: clamp(11px, 1.35vw, 15px);
  height: auto;
}

.lockscreen__pill {
  margin-top: 0.5em;
  width: clamp(53px, 7.5vw, 83px);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

@keyframes lockscreen-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

/* Placeholder content revealed once the iPhone lock screen is swiped up */
.red-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ff3b30;
}

/*
 * Grid — fixed-aspect-ratio boxes (1:1, 2:1, 1:1, 1:1) alongside boxes that
 * fill the remaining space, spaced with the same gap as the outer padding.
 */
.grid {
  /* status bar bottom edge (8px top + 14px height) + one gap, so row 1's
     clearance from the status bar matches the gap between containers */
  --status-bar-clearance: calc(22px + var(--grid-gap));
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: var(--status-bar-clearance) var(--grid-gap) var(--grid-gap) var(--grid-gap);
  display: flex;
  gap: var(--grid-gap);
}

.grid__col {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  height: 100%;
}

.grid__col--left {
  flex: 0 0 33%;
}

.grid__col--right {
  flex: 1 1 auto;
}

.grid__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--grid-gap);
  flex: 0 0 auto;
}

.grid__box {
  position: relative;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 24px);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.grid__photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  display: block;
}

.grid__fill-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.grid__name {
  position: absolute;
  top: 2.6em;
  left: 0.7em;
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 2.6vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.grid__label {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: clamp(12px, 1.6vw, 18px);
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.grid__box--bio {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1em;
}

.grid__quad {
  position: absolute;
  inset: var(--grid-gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.grid__quad span {
  background: #ff3b30;
  border-radius: clamp(3px, 0.5vw, 6px);
}

/* Job history — a reusable card, all internal spacing and edge padding equal */
.grid__box--jobs {
  --job-gap: clamp(2px, 0.35vw, 5px);
  display: flex;
  flex-direction: column;
  gap: var(--job-gap);
  padding: var(--grid-gap);
}

.job-card {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: var(--job-gap);
  padding: var(--job-gap) calc(var(--job-gap) * 2);
  background: #d6d6d8;
  border-radius: clamp(4px, 0.7vw, 8px);
  overflow: hidden;
}

.job-card__text {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--job-gap);
}

.job-card__title,
.job-card__date {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-size: clamp(5px, 0.7vw, 8px);
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.job-card__company {
  color: #fff;
  font-weight: 600;
  font-size: clamp(8px, 1.2vw, 13px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.job-card__square {
  flex: none;
  align-self: center;
  height: calc(100% - var(--job-gap) * 2);
  width: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff3b30;
  border-radius: clamp(3px, 0.5vw, 6px);
  color: #fff;
  font-weight: 700;
  font-size: clamp(6px, 0.9vw, 10px);
}

.grid__bio {
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: clamp(8px, 1.35vw, 15px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.grid__hl {
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid__hl--blue-1 {
  background-image: linear-gradient(180deg, #5bb8f5, #9cd6fb);
}

.grid__hl--orange-1 {
  background-image: linear-gradient(180deg, #e8975a, #f3c199);
}

.grid__hl--blue-2 {
  background-image: linear-gradient(180deg, #5a7de0, #8aa8f0);
}

.grid__hl--orange-2 {
  background-image: linear-gradient(180deg, #c9683f, #e0916a);
}

.grid__col--left .grid__box--ratio {
  width: 100%;
}

.grid__row .grid__box--ratio {
  width: 100%;
}

.grid__box--fill {
  flex: 1;
  min-height: 0;
}

/* power button and volume rocker both sit on the top edge, toward the right corner */
.device--ipad .device__button--power {
  top: calc(var(--btn) * -1);
  right: 20%;
  width: 6%;
  height: var(--btn);
  background: #0a0a0a;
}

.device--ipad .device__button--volume-up {
  top: calc(var(--btn) * -1);
  right: 9.5%;
  width: 2.5%;
  height: var(--btn);
  background: #0a0a0a;
}

/*
 * iPhone Air — portrait, ~0.478 width/height (156.2mm x 74.7mm).
 * The screen radius is derived from the frame radius minus the bezel
 * thickness so the two stay concentric (equal visual bezel) at every size.
 */
.device--iphone {
  --radius: 55px;
  --bezel: 10px;
  display: none;
  width: min(80vw, calc(80vh * 0.478));
  height: min(80vh, calc(80vw / 0.478));
  padding: var(--bezel);
  border-radius: var(--radius);
}

.device--iphone .device__screen {
  border-radius: calc(var(--radius) - var(--bezel));
  overflow: hidden;
  z-index: 1;
}

/* side/power button on the right edge; mute switch and volume rocker on the left */
.device--iphone .device__button--power {
  right: calc(var(--btn) * -1);
  top: 20%;
  width: var(--btn);
  height: 11%;
}

.device--iphone .device__button--mute,
.device--iphone .device__button--volume-up,
.device--iphone .device__button--volume-down {
  left: calc(var(--btn) * -1);
  width: var(--btn);
}

.device--iphone .device__button--mute {
  top: 14%;
  height: 4%;
}

.device--iphone .device__button--volume-up {
  top: 22%;
  height: 8%;
}

.device--iphone .device__button--volume-down {
  top: 33%;
  height: 8%;
}

.device--iphone .device__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  z-index: 11;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device--iphone .device__home-indicator {
  position: absolute;
  bottom: clamp(6px, 1.5vw, 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: clamp(3px, 0.8vw, 5px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

/* iOS-style status bar: time on the left, signal/wifi/battery on the right */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  z-index: 2;
}

.status-time {
  display: flex;
  align-items: center;
  line-height: 1;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.status-signal {
  display: flex;
  align-items: flex-end;
  gap: 0.12em;
  height: 0.72em;
}

.status-signal span {
  width: 0.16em;
  background: currentColor;
  border-radius: 0.05em;
}

.status-signal span:nth-child(1) { height: 40%; }
.status-signal span:nth-child(2) { height: 60%; }
.status-signal span:nth-child(3) { height: 80%; }
.status-signal span:nth-child(4) { height: 100%; }

.status-wifi {
  width: 1.1em;
  height: 1.1em;
  display: block;
}

.status-battery {
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.status-battery__body {
  box-sizing: border-box;
  width: 1.7em;
  height: 0.85em;
  border: 0.1em solid currentColor;
  border-radius: 0.22em;
  padding: 0.1em;
}

.status-battery__fill {
  height: 100%;
  background: currentColor;
  border-radius: 0.06em;
}

.status-battery__nub {
  width: 0.14em;
  height: 0.4em;
  background: currentColor;
  border-radius: 0 0.1em 0.1em 0;
}

.device--ipad .status-bar {
  top: 8px;
  left: var(--grid-gap);
  right: var(--grid-gap);
  height: 14px;
  font-size: 11px;
}

.device--iphone .status-bar {
  top: 20px;
  left: 0;
  right: 0;
  height: 16px;
  font-size: 12px;
}

/* Time sits centered in the space to the left of the (fixed 100px-wide) island */
.device--iphone .status-time {
  position: absolute;
  left: calc(25% - 25px);
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Icons sit centered in the space to the right of the (fixed 100px-wide) island */
.device--iphone .status-icons {
  position: absolute;
  left: calc(75% + 25px);
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Settings screen — a grouped list card matching iOS's Settings root row */
.settings {
  position: absolute;
}

.settings__title {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.settings__card {
  background: #1c1c1e;
  border-radius: var(--card-radius);
}

.settings__row {
  display: flex;
  align-items: center;
}

.settings__row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.settings__row-title {
  color: #fff;
  font-weight: 700;
}

.settings__row-title--regular {
  font-weight: 400;
}

.settings__row-subtitle {
  color: #8e8e93;
  font-weight: 400;
}

.settings__chevron {
  flex: none;
  color: #636366;
}

.settings__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.settings__avatar {
  flex: none;
  border-radius: 50%;
  background: linear-gradient(165deg, #ff6961 0%, #ff3b30 55%, #d70015 100%);
}

.settings__avatar-group {
  flex: none;
  display: flex;
}

.settings__avatar-group .settings__avatar {
  border: 2px solid #1c1c1e;
}

.settings__avatar-group .settings__avatar:not(:first-child) {
  margin-left: -0.4em;
}

.settings__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22.5%;
}

.settings__icon svg {
  width: 60%;
  height: 60%;
  display: block;
}

.settings__icon--gray {
  background: linear-gradient(165deg, #9a9aa0 0%, #7c7c82 100%);
}

.settings__icon--blue {
  background: linear-gradient(165deg, #3aa8ff 0%, #0a6fe0 100%);
}

.settings__icon--black {
  background: linear-gradient(165deg, #3a3a3c 0%, #000000 100%);
}

.settings__icon--teal {
  background: linear-gradient(165deg, #22d3ee 0%, #0891b2 100%);
}

.settings__icon--siri {
  background: radial-gradient(circle at 30% 25%, #8ad9ff 0%, #7c8cff 30%, #c084fc 55%, #f472b6 75%, #60a5fa 100%);
}

.device--ipad .settings {
  top: 60px;
  left: 24px;
  right: 24px;
  --card-radius: 34px;
}

.device--ipad .settings__title {
  font-size: 42px;
  margin: 0 0 20px;
}

.device--ipad .settings__row {
  gap: 20px;
  padding: 17px 26px;
}

.device--ipad .settings__row-text {
  gap: 6px;
}

.device--ipad .settings__row-title {
  font-size: 32px;
}

.device--ipad .settings__row-subtitle {
  font-size: 19px;
}

.device--ipad .settings__chevron {
  width: 19px;
}

.device--ipad .settings__divider {
  margin-left: 129px;
}

.device--ipad .settings__avatar--lg {
  width: 83px;
  height: 83px;
}

.device--ipad .settings__avatar--sm {
  width: 42px;
  height: 42px;
}

.device--ipad .settings__card--second {
  margin-top: 28px;
}

.device--ipad .settings__icon {
  width: 42px;
  height: 42px;
}

.device--ipad .settings__divider--icon {
  margin-left: 88px;
}

.device--ipad .settings__row-title--list {
  font-size: 26px;
}

.device--iphone .settings {
  top: 56px;
  left: 20px;
  right: 20px;
  --card-radius: 20px;
}

.device--iphone .settings__title {
  font-size: 24px;
  margin: 0 0 12px;
}

.device--iphone .settings__row {
  gap: 12px;
  padding: 11px 16px;
}

.device--iphone .settings__row-text {
  gap: 2px;
}

.device--iphone .settings__row-title {
  font-size: 17px;
}

.device--iphone .settings__row-subtitle {
  font-size: 10px;
}

.device--iphone .settings__chevron {
  width: 10px;
}

.device--iphone .settings__divider {
  margin-left: 64px;
}

.device--iphone .settings__avatar--lg {
  width: 36px;
  height: 36px;
}

.device--iphone .settings__avatar--sm {
  width: 20px;
  height: 20px;
}

.device--iphone .settings__card--second {
  margin-top: 16px;
}

.device--iphone .settings__icon {
  width: 20px;
  height: 20px;
}

.device--iphone .settings__divider--icon {
  margin-left: 48px;
}

.device--iphone .settings__row-title--list {
  font-size: 13px;
}

/* Generic macOS-style window, e.g. for template pages */
.mac-window {
  position: absolute;
  inset: 6%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #ececec;
  border-radius: clamp(8px, 1.2vw, 14px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.mac-window__titlebar {
  flex: none;
  display: flex;
  align-items: center;
  height: clamp(20px, 2.4vw, 28px);
  padding: 0 clamp(10px, 1.4vw, 14px);
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-window__traffic-lights {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 8px);
  padding: clamp(4px, 0.6vw, 6px);
  margin: clamp(-4px, -0.6vw, -6px);
  cursor: pointer;
}

.mac-window__dot {
  width: clamp(8px, 1vw, 12px);
  height: clamp(8px, 1vw, 12px);
  border-radius: 50%;
}

.mac-window__dot--red {
  background: #ff5f57;
}

.mac-window__dot--yellow {
  background: #febc2e;
}

.mac-window__dot--green {
  background: #28c840;
}

.mac-window__content {
  flex: 1;
  min-height: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
}

.mac-window__content--fill {
  display: block;
  padding: 0;
}

.mac-window__iframe {
  width: 166.6667%;
  height: 166.6667%;
  border: none;
  display: block;
  transform: scale(0.6);
  transform-origin: top left;
}

.framed-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4em;
  max-width: 70%;
}

.framed-quote__painting {
  display: block;
  width: clamp(110px, 18vw, 200px);
  height: auto;
  flex: none;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.framed-quote__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.framed-quote__text {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  color: #2c2c2e;
  font-size: clamp(11px, 1.3vw, 15px);
  line-height: 1.55;
  font-family: Georgia, "Times New Roman", serif;
}

.framed-quote__attribution {
  color: #6b6b6e;
  font-weight: 500;
  font-size: clamp(10px, 1.1vw, 13px);
  font-family: Georgia, "Times New Roman", serif;
}

@media (orientation: portrait) {
  .device--ipad {
    display: none;
  }

  .device--iphone {
    display: block;
  }
}
